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 612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
623 | 623 |
624 // The return value is in eax. | 624 // The return value is in eax. |
625 LeaveInterpreterFrame(masm, ebx, ecx); | 625 LeaveInterpreterFrame(masm, ebx, ecx); |
626 __ ret(0); | 626 __ ret(0); |
627 | 627 |
628 // Load debug copy of the bytecode array. | 628 // Load debug copy of the bytecode array. |
629 __ bind(&load_debug_bytecode_array); | 629 __ bind(&load_debug_bytecode_array); |
630 Register debug_info = kInterpreterBytecodeArrayRegister; | 630 Register debug_info = kInterpreterBytecodeArrayRegister; |
631 __ mov(debug_info, FieldOperand(eax, SharedFunctionInfo::kDebugInfoOffset)); | 631 __ mov(debug_info, FieldOperand(eax, SharedFunctionInfo::kDebugInfoOffset)); |
632 __ mov(kInterpreterBytecodeArrayRegister, | 632 __ mov(kInterpreterBytecodeArrayRegister, |
633 FieldOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex)); | 633 FieldOperand(debug_info, DebugInfo::kDebugBytecodeArrayOffset)); |
634 __ jmp(&bytecode_array_loaded); | 634 __ jmp(&bytecode_array_loaded); |
635 | 635 |
636 // If the shared code is no longer this entry trampoline, then the underlying | 636 // If the shared code is no longer this entry trampoline, then the underlying |
637 // function has been switched to a different kind of code and we heal the | 637 // function has been switched to a different kind of code and we heal the |
638 // closure by switching the code entry field over to the new code as well. | 638 // closure by switching the code entry field over to the new code as well. |
639 __ bind(&switch_to_different_code_kind); | 639 __ bind(&switch_to_different_code_kind); |
640 __ pop(edx); // Callee's new target. | 640 __ pop(edx); // Callee's new target. |
641 __ pop(edi); // Callee's JS function. | 641 __ pop(edi); // Callee's JS function. |
642 __ pop(esi); // Callee's context. | 642 __ pop(esi); // Callee's context. |
643 __ leave(); // Leave the frame so we can tail call. | 643 __ leave(); // Leave the frame so we can tail call. |
(...skipping 2530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3174 | 3174 |
3175 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { | 3175 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { |
3176 Generate_OnStackReplacementHelper(masm, true); | 3176 Generate_OnStackReplacementHelper(masm, true); |
3177 } | 3177 } |
3178 | 3178 |
3179 #undef __ | 3179 #undef __ |
3180 } // namespace internal | 3180 } // namespace internal |
3181 } // namespace v8 | 3181 } // namespace v8 |
3182 | 3182 |
3183 #endif // V8_TARGET_ARCH_X87 | 3183 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |