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