Changeset 11614 in webkit for trunk/JavaScriptCore/kjs/interpreter.h
- Timestamp:
- Dec 16, 2005, 12:08:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/interpreter.h
r11527 r11614 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, JSValue *thisV = NULL); 207 208 // Overload of evaluate to keep JavaScriptGlue both source and binary compatible. 209 Completion evaluate(const UString &code, JSValue *thisV = NULL, const UString &sourceFilename = UString()); 206 Completion evaluate(const UString& sourceURL, int startingLineNumber, const UChar* code, int codeLength, JSValue* thisV = 0); 207 Completion evaluate(const UString& sourceURL, int startingLineNumber, const UString& code, JSValue* thisV = 0); 210 208 211 209 /** … … 360 358 #endif 361 359 362 #if APPLE_CHANGES363 360 static bool shouldPrintExceptions(); 364 361 static void setShouldPrintExceptions(bool); 365 #endif366 362 367 363 void saveBuiltins (SavedBuiltins &) const; 368 364 void restoreBuiltins (const SavedBuiltins &); 369 365 370 #if APPLE_CHANGES371 366 /** 372 367 * Determine if the value is a global object (for any interpreter). This may … … 395 390 virtual bool isSafeScript (const Interpreter *target) { return true; } 396 391 397 virtual void *createLanguageInstanceForValue (ExecState *exec, int language, JSObject *value, const Bindings::RootObject *origin, const Bindings::RootObject *current); 398 #endif 392 virtual void *createLanguageInstanceForValue(ExecState*, int language, JSObject* value, const Bindings::RootObject* origin, const Bindings::RootObject* current); 399 393 400 394 // This is a workaround to avoid accessing the global variables for these identifiers in … … 435 429 friend class InterpreterImp; 436 430 friend class FunctionImp; 437 #if APPLE_CHANGES 438 friend class RuntimeMethod; 439 #endif 440 431 friend class RuntimeMethodImp; 441 432 friend class GlobalFuncImp; 442 433 public: … … 466 457 Context context() const { return _context; } 467 458 468 void setException(JSValue *e) { _exception = e; }469 void clearException() { _exception = NULL; }470 JSValue *exception() const { return _exception; }459 void setException(JSValue* e) { _exception = e; } 460 void clearException() { _exception = 0; } 461 JSValue* exception() const { return _exception; } 471 462 bool hadException() const { return _exception; } 472 463 473 464 private: 474 ExecState(Interpreter *interp, ContextImp *con)475 : _interpreter(interp), _context(con), _exception( NULL) { }476 Interpreter *_interpreter;477 ContextImp *_context;478 JSValue *_exception;465 ExecState(Interpreter* interp, ContextImp* con) 466 : _interpreter(interp), _context(con), _exception(0) { } 467 Interpreter* _interpreter; 468 ContextImp* _context; 469 JSValue* _exception; 479 470 }; 480 471
Note:
See TracChangeset
for help on using the changeset viewer.