Changeset 11527 in webkit for trunk/JavaScriptCore/kjs/interpreter.cpp
- Timestamp:
- Dec 10, 2005, 6:06:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/interpreter.cpp
r11304 r11527 52 52 } 53 53 54 ObjectImp*Context::variableObject() const54 JSObject *Context::variableObject() const 55 55 { 56 56 return rep->variableObject(); 57 57 } 58 58 59 ObjectImp*Context::thisValue() const59 JSObject *Context::thisValue() const 60 60 { 61 61 return rep->thisValue(); … … 69 69 // ------------------------------ Interpreter ---------------------------------- 70 70 71 Interpreter::Interpreter( ObjectImp*global)71 Interpreter::Interpreter(JSObject *global) 72 72 : rep(0) 73 73 , m_argumentsPropertyName(&argumentsPropertyName) … … 82 82 , m_specialPrototypePropertyName(&specialPrototypePropertyName) 83 83 { 84 rep = new InterpreterImp(this, new ObjectImp);84 rep = new InterpreterImp(this, new JSObject); 85 85 } 86 86 … … 90 90 } 91 91 92 ObjectImp*Interpreter::globalObject() const92 JSObject *Interpreter::globalObject() const 93 93 { 94 94 return rep->globalObject(); … … 110 110 } 111 111 112 Completion Interpreter::evaluate(const UString &code, ValueImp*thisV, const UString &)112 Completion Interpreter::evaluate(const UString &code, JSValue *thisV, const UString &) 113 113 { 114 114 return evaluate(UString(), 0, code, thisV); 115 115 } 116 116 117 Completion Interpreter::evaluate(const UString &sourceURL, int startingLineNumber, const UString &code, ValueImp*thisV)117 Completion Interpreter::evaluate(const UString &sourceURL, int startingLineNumber, const UString &code, JSValue *thisV) 118 118 { 119 119 Completion comp = rep->evaluate(code,thisV, sourceURL, startingLineNumber); … … 134 134 } 135 135 136 ObjectImp*Interpreter::builtinObject() const136 JSObject *Interpreter::builtinObject() const 137 137 { 138 138 return rep->builtinObject(); 139 139 } 140 140 141 ObjectImp*Interpreter::builtinFunction() const141 JSObject *Interpreter::builtinFunction() const 142 142 { 143 143 return rep->builtinFunction(); 144 144 } 145 145 146 ObjectImp*Interpreter::builtinArray() const146 JSObject *Interpreter::builtinArray() const 147 147 { 148 148 return rep->builtinArray(); 149 149 } 150 150 151 ObjectImp*Interpreter::builtinBoolean() const151 JSObject *Interpreter::builtinBoolean() const 152 152 { 153 153 return rep->builtinBoolean(); 154 154 } 155 155 156 ObjectImp*Interpreter::builtinString() const156 JSObject *Interpreter::builtinString() const 157 157 { 158 158 return rep->builtinString(); 159 159 } 160 160 161 ObjectImp*Interpreter::builtinNumber() const161 JSObject *Interpreter::builtinNumber() const 162 162 { 163 163 return rep->builtinNumber(); 164 164 } 165 165 166 ObjectImp*Interpreter::builtinDate() const166 JSObject *Interpreter::builtinDate() const 167 167 { 168 168 return rep->builtinDate(); 169 169 } 170 170 171 ObjectImp*Interpreter::builtinRegExp() const171 JSObject *Interpreter::builtinRegExp() const 172 172 { 173 173 return rep->builtinRegExp(); 174 174 } 175 175 176 ObjectImp*Interpreter::builtinError() const176 JSObject *Interpreter::builtinError() const 177 177 { 178 178 return rep->builtinError(); 179 179 } 180 180 181 ObjectImp*Interpreter::builtinObjectPrototype() const181 JSObject *Interpreter::builtinObjectPrototype() const 182 182 { 183 183 return rep->builtinObjectPrototype(); 184 184 } 185 185 186 ObjectImp*Interpreter::builtinFunctionPrototype() const186 JSObject *Interpreter::builtinFunctionPrototype() const 187 187 { 188 188 return rep->builtinFunctionPrototype(); 189 189 } 190 190 191 ObjectImp*Interpreter::builtinArrayPrototype() const191 JSObject *Interpreter::builtinArrayPrototype() const 192 192 { 193 193 return rep->builtinArrayPrototype(); 194 194 } 195 195 196 ObjectImp*Interpreter::builtinBooleanPrototype() const196 JSObject *Interpreter::builtinBooleanPrototype() const 197 197 { 198 198 return rep->builtinBooleanPrototype(); 199 199 } 200 200 201 ObjectImp*Interpreter::builtinStringPrototype() const201 JSObject *Interpreter::builtinStringPrototype() const 202 202 { 203 203 return rep->builtinStringPrototype(); 204 204 } 205 205 206 ObjectImp*Interpreter::builtinNumberPrototype() const206 JSObject *Interpreter::builtinNumberPrototype() const 207 207 { 208 208 return rep->builtinNumberPrototype(); 209 209 } 210 210 211 ObjectImp*Interpreter::builtinDatePrototype() const211 JSObject *Interpreter::builtinDatePrototype() const 212 212 { 213 213 return rep->builtinDatePrototype(); 214 214 } 215 215 216 ObjectImp*Interpreter::builtinRegExpPrototype() const216 JSObject *Interpreter::builtinRegExpPrototype() const 217 217 { 218 218 return rep->builtinRegExpPrototype(); 219 219 } 220 220 221 ObjectImp*Interpreter::builtinErrorPrototype() const221 JSObject *Interpreter::builtinErrorPrototype() const 222 222 { 223 223 return rep->builtinErrorPrototype(); 224 224 } 225 225 226 ObjectImp*Interpreter::builtinEvalError() const226 JSObject *Interpreter::builtinEvalError() const 227 227 { 228 228 return rep->builtinEvalError(); 229 229 } 230 230 231 ObjectImp*Interpreter::builtinRangeError() const231 JSObject *Interpreter::builtinRangeError() const 232 232 { 233 233 return rep->builtinRangeError(); 234 234 } 235 235 236 ObjectImp*Interpreter::builtinReferenceError() const236 JSObject *Interpreter::builtinReferenceError() const 237 237 { 238 238 return rep->builtinReferenceError(); 239 239 } 240 240 241 ObjectImp*Interpreter::builtinSyntaxError() const241 JSObject *Interpreter::builtinSyntaxError() const 242 242 { 243 243 return rep->builtinSyntaxError(); 244 244 } 245 245 246 ObjectImp*Interpreter::builtinTypeError() const246 JSObject *Interpreter::builtinTypeError() const 247 247 { 248 248 return rep->builtinTypeError(); 249 249 } 250 250 251 ObjectImp*Interpreter::builtinURIError() const251 JSObject *Interpreter::builtinURIError() const 252 252 { 253 253 return rep->builtinURIError(); 254 254 } 255 255 256 ObjectImp*Interpreter::builtinEvalErrorPrototype() const256 JSObject *Interpreter::builtinEvalErrorPrototype() const 257 257 { 258 258 return rep->builtinEvalErrorPrototype(); 259 259 } 260 260 261 ObjectImp*Interpreter::builtinRangeErrorPrototype() const261 JSObject *Interpreter::builtinRangeErrorPrototype() const 262 262 { 263 263 return rep->builtinRangeErrorPrototype(); 264 264 } 265 265 266 ObjectImp*Interpreter::builtinReferenceErrorPrototype() const266 JSObject *Interpreter::builtinReferenceErrorPrototype() const 267 267 { 268 268 return rep->builtinReferenceErrorPrototype(); 269 269 } 270 270 271 ObjectImp*Interpreter::builtinSyntaxErrorPrototype() const271 JSObject *Interpreter::builtinSyntaxErrorPrototype() const 272 272 { 273 273 return rep->builtinSyntaxErrorPrototype(); 274 274 } 275 275 276 ObjectImp*Interpreter::builtinTypeErrorPrototype() const276 JSObject *Interpreter::builtinTypeErrorPrototype() const 277 277 { 278 278 return rep->builtinTypeErrorPrototype(); 279 279 } 280 280 281 ObjectImp*Interpreter::builtinURIErrorPrototype() const281 JSObject *Interpreter::builtinURIErrorPrototype() const 282 282 { 283 283 return rep->builtinURIErrorPrototype(); … … 322 322 323 323 324 void *Interpreter::createLanguageInstanceForValue(ExecState *exec, int language, ObjectImp*value, const Bindings::RootObject *origin, const Bindings::RootObject *current)324 void *Interpreter::createLanguageInstanceForValue(ExecState *exec, int language, JSObject *value, const Bindings::RootObject *origin, const Bindings::RootObject *current) 325 325 { 326 326 return Bindings::Instance::createLanguageInstanceForValue (exec, (Bindings::Instance::BindingLanguage)language, value, origin, current);
Note:
See TracChangeset
for help on using the changeset viewer.