Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(177)

Side by Side Diff: src/builtins/x87/builtins-x87.cc

Issue 2238893002: [debugger] separate break point info from code instrumentation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/x64/builtins-x64.cc ('k') | src/debug/debug.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/builtins/x64/builtins-x64.cc ('k') | src/debug/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698