Changeset 119858 in webkit for trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
- Timestamp:
- Jun 8, 2012, 1:02:57 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
r119779 r119858 732 732 if (interpreter->getOpcodeID(putInstruction->u.opcode) == op_call_put_result) { 733 733 m_currentProfilingIndex = m_currentIndex + OPCODE_LENGTH(op_call); 734 prediction = get Speculation();734 prediction = getPrediction(); 735 735 } 736 736 … … 751 751 } 752 752 753 SpeculatedType get SpeculationWithoutOSRExit(NodeIndex nodeIndex, unsigned bytecodeIndex)753 SpeculatedType getPredictionWithoutOSRExit(NodeIndex nodeIndex, unsigned bytecodeIndex) 754 754 { 755 755 UNUSED_PARAM(nodeIndex); … … 763 763 } 764 764 765 SpeculatedType get Speculation(NodeIndex nodeIndex, unsigned bytecodeIndex)766 { 767 SpeculatedType prediction = get SpeculationWithoutOSRExit(nodeIndex, bytecodeIndex);765 SpeculatedType getPrediction(NodeIndex nodeIndex, unsigned bytecodeIndex) 766 { 767 SpeculatedType prediction = getPredictionWithoutOSRExit(nodeIndex, bytecodeIndex); 768 768 769 769 if (prediction == SpecNone) { … … 776 776 } 777 777 778 SpeculatedType get SpeculationWithoutOSRExit()779 { 780 return get SpeculationWithoutOSRExit(m_graph.size(), m_currentProfilingIndex);781 } 782 783 SpeculatedType get Speculation()784 { 785 return get Speculation(m_graph.size(), m_currentProfilingIndex);778 SpeculatedType getPredictionWithoutOSRExit() 779 { 780 return getPredictionWithoutOSRExit(m_graph.size(), m_currentProfilingIndex); 781 } 782 783 SpeculatedType getPrediction() 784 { 785 return getPrediction(m_graph.size(), m_currentProfilingIndex); 786 786 } 787 787 … … 1156 1156 usesResult = true; 1157 1157 m_currentProfilingIndex = nextOffset; 1158 prediction = get Speculation();1158 prediction = getPrediction(); 1159 1159 nextOffset += OPCODE_LENGTH(op_call_put_result); 1160 1160 } … … 2042 2042 2043 2043 case op_get_by_val: { 2044 SpeculatedType prediction = get Speculation();2044 SpeculatedType prediction = getPrediction(); 2045 2045 2046 2046 NodeIndex base = get(currentInstruction[2].u.operand); … … 2067 2067 Instruction* getInstruction = currentInstruction + OPCODE_LENGTH(op_method_check); 2068 2068 2069 SpeculatedType prediction = get Speculation();2069 SpeculatedType prediction = getPrediction(); 2070 2070 2071 2071 ASSERT(interpreter->getOpcodeID(getInstruction->u.opcode) == op_get_by_id); … … 2103 2103 } 2104 2104 case op_get_scoped_var: { 2105 SpeculatedType prediction = get Speculation();2105 SpeculatedType prediction = getPrediction(); 2106 2106 int dst = currentInstruction[1].u.operand; 2107 2107 int slot = currentInstruction[2].u.operand; … … 2121 2121 } 2122 2122 case op_get_by_id: { 2123 SpeculatedType prediction = get SpeculationWithoutOSRExit();2123 SpeculatedType prediction = getPredictionWithoutOSRExit(); 2124 2124 2125 2125 NodeIndex base = get(currentInstruction[2].u.operand); … … 2238 2238 2239 2239 case op_get_global_var: { 2240 SpeculatedType prediction = get Speculation();2240 SpeculatedType prediction = getPrediction(); 2241 2241 2242 2242 NodeIndex getGlobalVar = addToGraph( … … 2488 2488 if (interpreter->getOpcodeID(putInstruction->u.opcode) == op_call_put_result) { 2489 2489 m_currentProfilingIndex = m_currentIndex + OPCODE_LENGTH(op_call_varargs); 2490 prediction = get Speculation();2490 prediction = getPrediction(); 2491 2491 } 2492 2492 … … 2523 2523 2524 2524 case op_resolve: { 2525 SpeculatedType prediction = get Speculation();2525 SpeculatedType prediction = getPrediction(); 2526 2526 2527 2527 unsigned identifier = m_inlineStackTop->m_identifierRemap[currentInstruction[2].u.operand]; … … 2534 2534 2535 2535 case op_resolve_base: { 2536 SpeculatedType prediction = get Speculation();2536 SpeculatedType prediction = getPrediction(); 2537 2537 2538 2538 unsigned identifier = m_inlineStackTop->m_identifierRemap[currentInstruction[2].u.operand]; … … 2545 2545 2546 2546 case op_resolve_global: { 2547 SpeculatedType prediction = get Speculation();2547 SpeculatedType prediction = getPrediction(); 2548 2548 2549 2549 NodeIndex resolve = addToGraph(ResolveGlobal, OpInfo(m_graph.m_resolveGlobalData.size()), OpInfo(prediction)); … … 2615 2615 set(currentInstruction[1].u.operand, 2616 2616 addToGraph( 2617 GetMyArgumentByValSafe, OpInfo(0), OpInfo(get Speculation()),2617 GetMyArgumentByValSafe, OpInfo(0), OpInfo(getPrediction()), 2618 2618 get(currentInstruction[3].u.operand))); 2619 2619 NEXT_OPCODE(op_get_argument_by_val);
Note:
See TracChangeset
for help on using the changeset viewer.