Changeset 11527 in webkit for trunk/JavaScriptCore/kjs/interpreter.h
- Timestamp:
- Dec 10, 2005, 6:06:17 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/interpreter.h
r11525 r11527 32 32 class ContextImp; 33 33 class InterpreterImp; 34 class RuntimeMethod Imp;34 class RuntimeMethod; 35 35 class ScopeChain; 36 36 … … 78 78 * @return The execution context's variable object 79 79 */ 80 ObjectImp*variableObject() const;80 JSObject *variableObject() const; 81 81 82 82 /** … … 95 95 * @return The execution context's "this" value 96 96 */ 97 ObjectImp*thisValue() const;97 JSObject *thisValue() const; 98 98 99 99 /** … … 152 152 * @param global The object to use as the global object for this interpreter 153 153 */ 154 Interpreter( ObjectImp*global);154 Interpreter(JSObject *global); 155 155 /** 156 156 * Creates a new interpreter. A global object will be created and … … 164 164 * execution performed by this interpreter 165 165 */ 166 ObjectImp*globalObject() const;166 JSObject *globalObject() const; 167 167 168 168 void initGlobalObject(); … … 204 204 * @return A completion object representing the result of the execution. 205 205 */ 206 Completion evaluate(const UString &sourceURL, int startingLineNumber, const UString &code, ValueImp*thisV = NULL);206 Completion evaluate(const UString &sourceURL, int startingLineNumber, const UString &code, JSValue *thisV = NULL); 207 207 208 208 // Overload of evaluate to keep JavaScriptGlue both source and binary compatible. 209 Completion evaluate(const UString &code, ValueImp*thisV = NULL, const UString &sourceFilename = UString());209 Completion evaluate(const UString &code, JSValue *thisV = NULL, const UString &sourceFilename = UString()); 210 210 211 211 /** … … 225 225 * @return The builtin "Object" object 226 226 */ 227 ObjectImp*builtinObject() const;227 JSObject *builtinObject() const; 228 228 229 229 /** 230 230 * Returns the builtin "Function" object. 231 231 */ 232 ObjectImp*builtinFunction() const;232 JSObject *builtinFunction() const; 233 233 234 234 /** 235 235 * Returns the builtin "Array" object. 236 236 */ 237 ObjectImp*builtinArray() const;237 JSObject *builtinArray() const; 238 238 239 239 /** 240 240 * Returns the builtin "Boolean" object. 241 241 */ 242 ObjectImp*builtinBoolean() const;242 JSObject *builtinBoolean() const; 243 243 244 244 /** 245 245 * Returns the builtin "String" object. 246 246 */ 247 ObjectImp*builtinString() const;247 JSObject *builtinString() const; 248 248 249 249 /** 250 250 * Returns the builtin "Number" object. 251 251 */ 252 ObjectImp*builtinNumber() const;252 JSObject *builtinNumber() const; 253 253 254 254 /** 255 255 * Returns the builtin "Date" object. 256 256 */ 257 ObjectImp*builtinDate() const;257 JSObject *builtinDate() const; 258 258 259 259 /** 260 260 * Returns the builtin "RegExp" object. 261 261 */ 262 ObjectImp*builtinRegExp() const;262 JSObject *builtinRegExp() const; 263 263 264 264 /** 265 265 * Returns the builtin "Error" object. 266 266 */ 267 ObjectImp*builtinError() const;267 JSObject *builtinError() const; 268 268 269 269 /** 270 270 * Returns the builtin "Object.prototype" object. 271 271 */ 272 ObjectImp*builtinObjectPrototype() const;272 JSObject *builtinObjectPrototype() const; 273 273 274 274 /** 275 275 * Returns the builtin "Function.prototype" object. 276 276 */ 277 ObjectImp*builtinFunctionPrototype() const;277 JSObject *builtinFunctionPrototype() const; 278 278 279 279 /** 280 280 * Returns the builtin "Array.prototype" object. 281 281 */ 282 ObjectImp*builtinArrayPrototype() const;282 JSObject *builtinArrayPrototype() const; 283 283 284 284 /** 285 285 * Returns the builtin "Boolean.prototype" object. 286 286 */ 287 ObjectImp*builtinBooleanPrototype() const;287 JSObject *builtinBooleanPrototype() const; 288 288 289 289 /** 290 290 * Returns the builtin "String.prototype" object. 291 291 */ 292 ObjectImp*builtinStringPrototype() const;292 JSObject *builtinStringPrototype() const; 293 293 294 294 /** 295 295 * Returns the builtin "Number.prototype" object. 296 296 */ 297 ObjectImp*builtinNumberPrototype() const;297 JSObject *builtinNumberPrototype() const; 298 298 299 299 /** 300 300 * Returns the builtin "Date.prototype" object. 301 301 */ 302 ObjectImp*builtinDatePrototype() const;302 JSObject *builtinDatePrototype() const; 303 303 304 304 /** 305 305 * Returns the builtin "RegExp.prototype" object. 306 306 */ 307 ObjectImp*builtinRegExpPrototype() const;307 JSObject *builtinRegExpPrototype() const; 308 308 309 309 /** 310 310 * Returns the builtin "Error.prototype" object. 311 311 */ 312 ObjectImp*builtinErrorPrototype() const;312 JSObject *builtinErrorPrototype() const; 313 313 314 314 /** 315 315 * The initial value of "Error" global property 316 316 */ 317 ObjectImp*builtinEvalError() const;318 ObjectImp*builtinRangeError() const;319 ObjectImp*builtinReferenceError() const;320 ObjectImp*builtinSyntaxError() const;321 ObjectImp*builtinTypeError() const;322 ObjectImp*builtinURIError() const;323 324 ObjectImp*builtinEvalErrorPrototype() const;325 ObjectImp*builtinRangeErrorPrototype() const;326 ObjectImp*builtinReferenceErrorPrototype() const;327 ObjectImp*builtinSyntaxErrorPrototype() const;328 ObjectImp*builtinTypeErrorPrototype() const;329 ObjectImp*builtinURIErrorPrototype() const;317 JSObject *builtinEvalError() const; 318 JSObject *builtinRangeError() const; 319 JSObject *builtinReferenceError() const; 320 JSObject *builtinSyntaxError() const; 321 JSObject *builtinTypeError() const; 322 JSObject *builtinURIError() const; 323 324 JSObject *builtinEvalErrorPrototype() const; 325 JSObject *builtinRangeErrorPrototype() const; 326 JSObject *builtinReferenceErrorPrototype() const; 327 JSObject *builtinSyntaxErrorPrototype() const; 328 JSObject *builtinTypeErrorPrototype() const; 329 JSObject *builtinURIErrorPrototype() const; 330 330 331 331 enum CompatMode { NativeMode, IECompat, NetscapeCompat }; … … 376 376 * security checks. 377 377 */ 378 virtual bool isGlobalObject( ValueImp*v) { return false; }378 virtual bool isGlobalObject(JSValue *v) { return false; } 379 379 380 380 /** … … 385 385 * override of this method is currently in WebCore. 386 386 */ 387 virtual Interpreter *interpreterForGlobalObject (const ValueImp*imp) { return 0; }387 virtual Interpreter *interpreterForGlobalObject (const JSValue *imp) { return 0; } 388 388 389 389 /** … … 395 395 virtual bool isSafeScript (const Interpreter *target) { return true; } 396 396 397 virtual void *createLanguageInstanceForValue (ExecState *exec, int language, ObjectImp*value, const Bindings::RootObject *origin, const Bindings::RootObject *current);397 virtual void *createLanguageInstanceForValue (ExecState *exec, int language, JSObject *value, const Bindings::RootObject *origin, const Bindings::RootObject *current); 398 398 #endif 399 399 … … 436 436 friend class FunctionImp; 437 437 #if APPLE_CHANGES 438 friend class RuntimeMethod Imp;438 friend class RuntimeMethod; 439 439 #endif 440 440 … … 466 466 Context context() const { return _context; } 467 467 468 void setException( ValueImp*e) { _exception = e; }468 void setException(JSValue *e) { _exception = e; } 469 469 void clearException() { _exception = NULL; } 470 ValueImp*exception() const { return _exception; }470 JSValue *exception() const { return _exception; } 471 471 bool hadException() const { return _exception; } 472 472 … … 476 476 Interpreter *_interpreter; 477 477 ContextImp *_context; 478 ValueImp*_exception;478 JSValue *_exception; 479 479 }; 480 480
Note:
See TracChangeset
for help on using the changeset viewer.