Changeset 38461 in webkit for trunk/JavaScriptCore/runtime
- Timestamp:
- Nov 16, 2008, 5:48:55 PM (17 years ago)
- Location:
- trunk/JavaScriptCore/runtime
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/ExecState.h
r38423 r38461 83 83 const CommonIdentifiers& propertyNames() const { return *globalData().propertyNames; } 84 84 const ArgList& emptyList() const { return *globalData().emptyList; } 85 BytecodeInterpreter* interpreter() { return globalData().interpreter; }85 Interpreter* interpreter() { return globalData().interpreter; } 86 86 Heap* heap() { return &globalData().heap; } 87 87 … … 98 98 friend class JSActivation; 99 99 friend class JSGlobalObject; 100 friend class BytecodeInterpreter;100 friend class Interpreter; 101 101 102 102 static CallFrame* create(Register* callFrameBase) { return static_cast<CallFrame*>(callFrameBase); } -
trunk/JavaScriptCore/runtime/JSCell.h
r38440 r38461 39 39 friend class JSString; 40 40 friend class JSValue; 41 friend class BytecodeInterpreter;41 friend class Interpreter; 42 42 43 43 private: -
trunk/JavaScriptCore/runtime/JSFunction.h
r38440 r38461 40 40 class JSFunction : public InternalFunction { 41 41 friend class CTI; 42 friend class BytecodeInterpreter;42 friend class Interpreter; 43 43 44 44 typedef InternalFunction Base; -
trunk/JavaScriptCore/runtime/JSGlobalData.cpp
r38440 r38461 65 65 66 66 JSGlobalData::JSGlobalData(bool isShared) 67 : interpreter(new BytecodeInterpreter)67 : interpreter(new Interpreter) 68 68 , exception(noValue()) 69 69 , arrayTable(new HashTable(JSC::arrayTable)) -
trunk/JavaScriptCore/runtime/JSGlobalData.h
r38440 r38461 48 48 class JSObject; 49 49 class Lexer; 50 class BytecodeInterpreter;50 class Interpreter; 51 51 class Parser; 52 52 class ParserRefCounted; … … 64 64 ~JSGlobalData(); 65 65 66 BytecodeInterpreter* interpreter;66 Interpreter* interpreter; 67 67 68 68 JSValue* exception; -
trunk/JavaScriptCore/runtime/JSImmediate.h
r38148 r38461 87 87 class JSImmediate { 88 88 private: 89 friend class CTI; // Whooo!89 friend class CTI; 90 90 91 91 static const uintptr_t TagMask = 0x3u; // primary tag is 2 bits long -
trunk/JavaScriptCore/runtime/JSString.h
r38440 r38461 61 61 class JSString : public JSCell { 62 62 friend class CTI; 63 friend class BytecodeInterpreter;63 friend class Interpreter; 64 64 65 65 public: -
trunk/JavaScriptCore/runtime/JSValue.h
r38137 r38461 29 29 #include "UString.h" 30 30 #include <stddef.h> // for size_t 31 32 // The magic number 0x4000 is not important here, it is being subtracted back out (avoiding using zero since this33 // can have unexpected effects in this type of macro, particularly where multiple-inheritance is involved).34 #define OBJECT_OFFSET(class, member) (reinterpret_cast<ptrdiff_t>(&(reinterpret_cast<class*>(0x4000)->member)) - 0x4000)35 31 36 32 namespace JSC { -
trunk/JavaScriptCore/runtime/JSVariableObject.h
r38440 r38461 42 42 43 43 class JSVariableObject : public JSObject { 44 friend class CTI; 45 44 46 public: 45 47 SymbolTable& symbolTable() const { return *d->symbolTable; } … … 73 75 OwnArrayPtr<Register> registerArray; // Independent copy of registers, used when a variable object copies its registers out of the register file. 74 76 75 static inline ptrdiff_t offsetOf_registers()76 {77 return OBJECT_OFFSET(JSVariableObjectData, registers);78 }79 80 77 private: 81 78 JSVariableObjectData(const JSVariableObjectData&); … … 98 95 99 96 JSVariableObjectData* d; 100 101 public:102 static inline ptrdiff_t offsetOf_d()103 {104 return OBJECT_OFFSET(JSVariableObject, d);105 }106 107 static inline ptrdiff_t offsetOf_Data_registers()108 {109 return JSVariableObjectData::offsetOf_registers();110 }111 97 }; 112 98 -
trunk/JavaScriptCore/runtime/RegExp.cpp
r38438 r38461 22 22 #include "RegExp.h" 23 23 24 #include "CTI.h"25 24 #include "Lexer.h" 26 25 #include <pcre/pcre.h> … … 28 27 #include <stdlib.h> 29 28 #include <string.h> 30 #include <wrec/WREC.h>31 29 #include <wtf/Assertions.h> 32 30 #include <wtf/OwnArrayPtr.h> … … 46 44 { 47 45 #if ENABLE(WREC) 48 m_wrecFunction = WREC::compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError);46 m_wrecFunction = compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError); 49 47 if (m_wrecFunction) 50 48 return; … … 89 87 90 88 #if ENABLE(WREC) 91 m_wrecFunction = WREC::compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError, (m_flagBits & IgnoreCase), (m_flagBits & Multiline));89 m_wrecFunction = compileRegExp(globalData->interpreter, pattern, &m_numSubpatterns, &m_constructionError, (m_flagBits & IgnoreCase), (m_flagBits & Multiline)); 92 90 if (m_wrecFunction) 93 91 return; … … 110 108 #if ENABLE(WREC) 111 109 if (m_wrecFunction) 112 WTF::fastFreeExecutable( m_wrecFunction);110 WTF::fastFreeExecutable(reinterpret_cast<void*>(m_wrecFunction)); 113 111 #endif 114 112 } … … 137 135 ovector->set(offsetVector); 138 136 139 int result = reinterpret_cast<WRECFunction>(m_wrecFunction)(s.data(), i, s.size(), offsetVector);137 int result = m_wrecFunction(s.data(), i, s.size(), offsetVector); 140 138 141 139 if (result < 0) { -
trunk/JavaScriptCore/runtime/RegExp.h
r38137 r38461 23 23 24 24 #include "UString.h" 25 #include "WREC.h" 25 26 #include <wtf/Forward.h> 26 27 #include <wtf/RefCounted.h> … … 67 68 68 69 #if ENABLE(WREC) 69 // Called as a WRECFunction 70 void* m_wrecFunction; 70 WREC::RegExpFunction m_wrecFunction; 71 71 #endif 72 72 };
Note:
See TracChangeset
for help on using the changeset viewer.