Changeset 70703 in webkit for trunk/JavaScriptCore/interpreter/CachedCall.h
- Timestamp:
- Oct 27, 2010, 1:46:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/CachedCall.h
r51672 r70703 35 35 class CachedCall : public Noncopyable { 36 36 public: 37 CachedCall(CallFrame* callFrame, JSFunction* function, int argCount , JSValue* exception)37 CachedCall(CallFrame* callFrame, JSFunction* function, int argCount) 38 38 : m_valid(false) 39 39 , m_interpreter(callFrame->interpreter()) 40 , m_exception(exception)41 40 , m_globalObjectScope(callFrame, function->scope().globalObject()) 42 41 { 43 42 ASSERT(!function->isHostFunction()); 44 m_closure = m_interpreter->prepareForRepeatCall(function->jsExecutable(), callFrame, function, argCount, function->scope().node() , exception);45 m_valid = ! *exception;43 m_closure = m_interpreter->prepareForRepeatCall(function->jsExecutable(), callFrame, function, argCount, function->scope().node()); 44 m_valid = !callFrame->hadException(); 46 45 } 47 46 … … 49 48 { 50 49 ASSERT(m_valid); 51 return m_interpreter->execute(m_closure , m_exception);50 return m_interpreter->execute(m_closure); 52 51 } 53 52 void setThis(JSValue v) { m_closure.setArgument(0, v); } … … 70 69 bool m_valid; 71 70 Interpreter* m_interpreter; 72 JSValue* m_exception;73 71 DynamicGlobalObjectScope m_globalObjectScope; 74 72 CallFrameClosure m_closure;
Note:
See TracChangeset
for help on using the changeset viewer.