Changeset 35309 in webkit for trunk/JavaScriptCore/VM/CodeBlock.h
- Timestamp:
- Jul 23, 2008, 5:49:46 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/CodeBlock.h
r35245 r35309 67 67 }; 68 68 69 typedef HashMap<RefPtr<UString::Rep>, int32_t> StringJumpTable; 70 struct SimpleJumpTable { 71 Vector<int32_t> branchOffsets; 72 int32_t min; 73 int32_t offsetForValue(int32_t value, int32_t defaultOffset); 74 void add(int32_t key, int32_t offset) { 75 if (!branchOffsets[key]) 76 branchOffsets[key] = offset; 77 } 78 }; 79 69 80 struct CodeBlock { 70 81 CodeBlock(ScopeNode* ownerNode_, CodeType codeType_, PassRefPtr<SourceProvider> source_, unsigned sourceOffset_) … … 113 124 Vector<LineInfo> lineInfo; 114 125 126 Vector<SimpleJumpTable> immediateSwitchJumpTables; 127 Vector<SimpleJumpTable> characterSwitchJumpTables; 128 Vector<StringJumpTable> stringSwitchJumpTables; 129 115 130 private: 116 131 void dump(ExecState*, const Vector<Instruction>::const_iterator& begin, Vector<Instruction>::const_iterator&) const;
Note:
See TracChangeset
for help on using the changeset viewer.