Changeset 60117 in webkit for trunk/JavaScriptCore/runtime/Executable.h
- Timestamp:
- May 24, 2010, 8:04:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/Executable.h
r60105 r60117 94 94 friend class JIT; 95 95 public: 96 static PassRefPtr<NativeExecutable> create(MacroAssemblerCodePtr thunk, NativeFunction function)97 { 98 return adoptRef(new NativeExecutable(JITCode::HostFunction( thunk), function));96 static PassRefPtr<NativeExecutable> create(MacroAssemblerCodePtr callThunk, NativeFunction function, MacroAssemblerCodePtr constructThunk, NativeFunction constructor) 97 { 98 return adoptRef(new NativeExecutable(JITCode::HostFunction(callThunk), function, JITCode::HostFunction(constructThunk), constructor)); 99 99 } 100 100 … … 104 104 105 105 private: 106 NativeExecutable(JITCode thunk, NativeFunction function)106 NativeExecutable(JITCode callThunk, NativeFunction function, JITCode constructThunk, NativeFunction constructor) 107 107 : ExecutableBase(NUM_PARAMETERS_IS_HOST) 108 108 , m_function(function) 109 { 110 m_jitCodeForCall = thunk; 111 m_jitCodeForConstruct = thunk; 109 , m_constructor(constructor) 110 { 111 m_jitCodeForCall = callThunk; 112 m_jitCodeForConstruct = constructThunk; 112 113 } 113 114 114 115 NativeFunction m_function; 116 // Probably should be a NativeConstructor, but this will currently require rewriting the JIT 117 // trampoline. It may be easier to make NativeFunction be passed 'this' as a part of the ArgList. 118 NativeFunction m_constructor; 115 119 }; 116 120 #endif
Note:
See TracChangeset
for help on using the changeset viewer.