Ignore:
Timestamp:
Dec 6, 2008, 2:19:22 PM (16 years ago)
Author:
[email protected]
Message:

2008-12-06 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich.

Split JumpTable code into its own file.

  • GNUmakefile.am:
  • JavaScriptCore.pri:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • JavaScriptCoreSources.bkl:
  • bytecode/CodeBlock.cpp:
  • bytecode/CodeBlock.h:
  • bytecode/JumpTable.cpp: Copied from bytecode/CodeBlock.cpp.
  • bytecode/JumpTable.h: Copied from bytecode/CodeBlock.h.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecode/CodeBlock.cpp

    r39070 r39071  
    12061206}
    12071207
    1208 int32_t SimpleJumpTable::offsetForValue(int32_t value, int32_t defaultOffset)
    1209 {
    1210     if (value >= min && static_cast<uint32_t>(value - min) < branchOffsets.size()) {
    1211         int32_t offset = branchOffsets[value - min];
    1212         if (offset)
    1213             return offset;
    1214     }
    1215     return defaultOffset;       
    1216 }
    1217 
    12181208} // namespace JSC
Note: See TracChangeset for help on using the changeset viewer.