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