| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 Immediate(Smi::FromInt(1))); | 557 Immediate(Smi::FromInt(1))); |
| 558 | 558 |
| 559 // Check function data field is actually a BytecodeArray object. | 559 // Check function data field is actually a BytecodeArray object. |
| 560 if (FLAG_debug_code) { | 560 if (FLAG_debug_code) { |
| 561 __ AssertNotSmi(kInterpreterBytecodeArrayRegister); | 561 __ AssertNotSmi(kInterpreterBytecodeArrayRegister); |
| 562 __ CmpObjectType(kInterpreterBytecodeArrayRegister, BYTECODE_ARRAY_TYPE, | 562 __ CmpObjectType(kInterpreterBytecodeArrayRegister, BYTECODE_ARRAY_TYPE, |
| 563 eax); | 563 eax); |
| 564 __ Assert(equal, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); | 564 __ Assert(equal, kFunctionDataShouldBeBytecodeArrayOnInterpreterEntry); |
| 565 } | 565 } |
| 566 | 566 |
| 567 // Reset code age. |
| 568 __ mov_b(FieldOperand(kInterpreterBytecodeArrayRegister, |
| 569 BytecodeArray::kBytecodeAgeOffset), |
| 570 Immediate(BytecodeArray::kNoAgeBytecodeAge)); |
| 571 |
| 567 // Push bytecode array. | 572 // Push bytecode array. |
| 568 __ push(kInterpreterBytecodeArrayRegister); | 573 __ push(kInterpreterBytecodeArrayRegister); |
| 569 // Push Smi tagged initial bytecode array offset. | 574 // Push Smi tagged initial bytecode array offset. |
| 570 __ push(Immediate(Smi::FromInt(BytecodeArray::kHeaderSize - kHeapObjectTag))); | 575 __ push(Immediate(Smi::FromInt(BytecodeArray::kHeaderSize - kHeapObjectTag))); |
| 571 | 576 |
| 572 // Allocate the local and temporary register file on the stack. | 577 // Allocate the local and temporary register file on the stack. |
| 573 { | 578 { |
| 574 // Load frame size from the BytecodeArray object. | 579 // Load frame size from the BytecodeArray object. |
| 575 __ mov(ebx, FieldOperand(kInterpreterBytecodeArrayRegister, | 580 __ mov(ebx, FieldOperand(kInterpreterBytecodeArrayRegister, |
| 576 BytecodeArray::kFrameSizeOffset)); | 581 BytecodeArray::kFrameSizeOffset)); |
| (...skipping 2561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3138 | 3143 |
| 3139 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { | 3144 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { |
| 3140 Generate_OnStackReplacementHelper(masm, true); | 3145 Generate_OnStackReplacementHelper(masm, true); |
| 3141 } | 3146 } |
| 3142 | 3147 |
| 3143 #undef __ | 3148 #undef __ |
| 3144 } // namespace internal | 3149 } // namespace internal |
| 3145 } // namespace v8 | 3150 } // namespace v8 |
| 3146 | 3151 |
| 3147 #endif // V8_TARGET_ARCH_X87 | 3152 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |