Changeset 108358 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.h
- Timestamp:
- Feb 21, 2012, 8:26:12 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.h
r108309 r108358 35 35 #include "JSValue.h" 36 36 #include "JSObject.h" 37 #include "LLIntData.h"38 37 #include "Opcode.h" 39 38 #include "RegisterFile.h" … … 48 47 class FunctionExecutable; 49 48 class JSGlobalObject; 50 class LLIntOffsetsExtractor;51 49 class ProgramExecutable; 52 50 class Register; … … 161 159 class Interpreter { 162 160 WTF_MAKE_FAST_ALLOCATED; 161 friend class JIT; 163 162 friend class CachedCall; 164 friend class LLIntOffsetsExtractor;165 friend class JIT;166 163 public: 167 164 Interpreter(); 168 ~Interpreter(); 169 170 void initialize(LLInt::Data*, bool canUseJIT); 165 166 void initialize(bool canUseJIT); 171 167 172 168 RegisterFile& registerFile() { return m_registerFile; } … … 175 171 { 176 172 ASSERT(m_initialized); 177 #if ENABLE(COMPUTED_GOTO_CLASSIC_INTERPRETER) || ENABLE(LLINT)173 #if ENABLE(COMPUTED_GOTO_CLASSIC_INTERPRETER) 178 174 return m_opcodeTable[id]; 179 175 #else … … 185 181 { 186 182 ASSERT(m_initialized); 187 #if ENABLE( LLINT)183 #if ENABLE(COMPUTED_GOTO_CLASSIC_INTERPRETER) 188 184 ASSERT(isOpcode(opcode)); 189 return m_opcodeIDTable.get(opcode); 190 #elif ENABLE(COMPUTED_GOTO_CLASSIC_INTERPRETER) 191 ASSERT(isOpcode(opcode)); 192 if (!m_classicEnabled) 185 if (!m_enabled) 193 186 return static_cast<OpcodeID>(bitwise_cast<uintptr_t>(opcode)); 194 187 … … 197 190 return opcode; 198 191 #endif 199 }200 201 bool classicEnabled()202 {203 return m_classicEnabled;204 192 } 205 193 … … 272 260 RegisterFile m_registerFile; 273 261 274 #if ENABLE(LLINT) 275 Opcode* m_opcodeTable; // Maps OpcodeID => Opcode for compiling 276 HashMap<Opcode, OpcodeID> m_opcodeIDTable; // Maps Opcode => OpcodeID for decompiling 277 #elif ENABLE(COMPUTED_GOTO_CLASSIC_INTERPRETER) 262 #if ENABLE(COMPUTED_GOTO_CLASSIC_INTERPRETER) 278 263 Opcode m_opcodeTable[numOpcodeIDs]; // Maps OpcodeID => Opcode for compiling 279 264 HashMap<Opcode, OpcodeID> m_opcodeIDTable; // Maps Opcode => OpcodeID for decompiling … … 283 268 bool m_initialized; 284 269 #endif 285 bool m_ classicEnabled;270 bool m_enabled; 286 271 }; 287 272
Note:
See TracChangeset
for help on using the changeset viewer.