| 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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 650 | 650 |
| 651 // The return value is in eax. | 651 // The return value is in eax. |
| 652 LeaveInterpreterFrame(masm, ebx, ecx); | 652 LeaveInterpreterFrame(masm, ebx, ecx); |
| 653 __ ret(0); | 653 __ ret(0); |
| 654 | 654 |
| 655 // Load debug copy of the bytecode array. | 655 // Load debug copy of the bytecode array. |
| 656 __ bind(&load_debug_bytecode_array); | 656 __ bind(&load_debug_bytecode_array); |
| 657 Register debug_info = kInterpreterBytecodeArrayRegister; | 657 Register debug_info = kInterpreterBytecodeArrayRegister; |
| 658 __ mov(debug_info, FieldOperand(eax, SharedFunctionInfo::kDebugInfoOffset)); | 658 __ mov(debug_info, FieldOperand(eax, SharedFunctionInfo::kDebugInfoOffset)); |
| 659 __ mov(kInterpreterBytecodeArrayRegister, | 659 __ mov(kInterpreterBytecodeArrayRegister, |
| 660 FieldOperand(debug_info, DebugInfo::kAbstractCodeIndex)); | 660 FieldOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); |
| 661 __ jmp(&bytecode_array_loaded); | 661 __ jmp(&bytecode_array_loaded); |
| 662 | 662 |
| 663 // If the bytecode array is no longer present, then the underlying function | 663 // If the bytecode array is no longer present, then the underlying function |
| 664 // has been switched to a different kind of code and we heal the closure by | 664 // has been switched to a different kind of code and we heal the closure by |
| 665 // switching the code entry field over to the new code object as well. | 665 // switching the code entry field over to the new code object as well. |
| 666 __ bind(&bytecode_array_not_present); | 666 __ bind(&bytecode_array_not_present); |
| 667 __ pop(edx); // Callee's new target. | 667 __ pop(edx); // Callee's new target. |
| 668 __ pop(edi); // Callee's JS function. | 668 __ pop(edi); // Callee's JS function. |
| 669 __ pop(esi); // Callee's context. | 669 __ pop(esi); // Callee's context. |
| 670 __ leave(); // Leave the frame so we can tail call. | 670 __ leave(); // Leave the frame so we can tail call. |
| (...skipping 2329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3000 | 3000 |
| 3001 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { | 3001 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { |
| 3002 Generate_OnStackReplacementHelper(masm, true); | 3002 Generate_OnStackReplacementHelper(masm, true); |
| 3003 } | 3003 } |
| 3004 | 3004 |
| 3005 #undef __ | 3005 #undef __ |
| 3006 } // namespace internal | 3006 } // namespace internal |
| 3007 } // namespace v8 | 3007 } // namespace v8 |
| 3008 | 3008 |
| 3009 #endif // V8_TARGET_ARCH_IA32 | 3009 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |