Changeset 39038 in webkit for trunk/JavaScriptCore/interpreter
- Timestamp:
- Dec 5, 2008, 12:27:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/interpreter/Interpreter.cpp
r38975 r39038 3209 3209 else { 3210 3210 int32_t value = JSImmediate::getTruncatedInt32(scrutinee); 3211 vPC += callFrame->codeBlock()->immediateSwitchJumpTable s[tableIndex].offsetForValue(value, defaultOffset);3211 vPC += callFrame->codeBlock()->immediateSwitchJumpTable(tableIndex).offsetForValue(value, defaultOffset); 3212 3212 } 3213 3213 NEXT_INSTRUCTION(); … … 3232 3232 vPC += defaultOffset; 3233 3233 else 3234 vPC += callFrame->codeBlock()->characterSwitchJumpTable s[tableIndex].offsetForValue(value->data()[0], defaultOffset);3234 vPC += callFrame->codeBlock()->characterSwitchJumpTable(tableIndex).offsetForValue(value->data()[0], defaultOffset); 3235 3235 } 3236 3236 NEXT_INSTRUCTION(); … … 3251 3251 vPC += defaultOffset; 3252 3252 else 3253 vPC += callFrame->codeBlock()->stringSwitchJumpTable s[tableIndex].offsetForValue(asString(scrutinee)->value().rep(), defaultOffset);3253 vPC += callFrame->codeBlock()->stringSwitchJumpTable(tableIndex).offsetForValue(asString(scrutinee)->value().rep(), defaultOffset); 3254 3254 NEXT_INSTRUCTION(); 3255 3255 } … … 5971 5971 if (JSImmediate::isNumber(scrutinee)) { 5972 5972 int32_t value = JSImmediate::getTruncatedInt32(scrutinee); 5973 return codeBlock->immediateSwitchJumpTable s[tableIndex].ctiForValue(value);5974 } 5975 5976 return codeBlock->immediateSwitchJumpTable s[tableIndex].ctiDefault;5973 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiForValue(value); 5974 } 5975 5976 return codeBlock->immediateSwitchJumpTable(tableIndex).ctiDefault; 5977 5977 } 5978 5978 … … 5986 5986 CodeBlock* codeBlock = callFrame->codeBlock(); 5987 5987 5988 void* result = codeBlock->characterSwitchJumpTable s[tableIndex].ctiDefault;5988 void* result = codeBlock->characterSwitchJumpTable(tableIndex).ctiDefault; 5989 5989 5990 5990 if (scrutinee->isString()) { 5991 5991 UString::Rep* value = asString(scrutinee)->value().rep(); 5992 5992 if (value->size() == 1) 5993 result = codeBlock->characterSwitchJumpTable s[tableIndex].ctiForValue(value->data()[0]);5993 result = codeBlock->characterSwitchJumpTable(tableIndex).ctiForValue(value->data()[0]); 5994 5994 } 5995 5995 … … 6006 6006 CodeBlock* codeBlock = callFrame->codeBlock(); 6007 6007 6008 void* result = codeBlock->stringSwitchJumpTable s[tableIndex].ctiDefault;6008 void* result = codeBlock->stringSwitchJumpTable(tableIndex).ctiDefault; 6009 6009 6010 6010 if (scrutinee->isString()) { 6011 6011 UString::Rep* value = asString(scrutinee)->value().rep(); 6012 result = codeBlock->stringSwitchJumpTable s[tableIndex].ctiForValue(value);6012 result = codeBlock->stringSwitchJumpTable(tableIndex).ctiForValue(value); 6013 6013 } 6014 6014
Note:
See TracChangeset
for help on using the changeset viewer.