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

Side by Side Diff: src/builtins/x64/builtins-x64.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/s390/builtins-s390.cc ('k') | src/builtins/x87/builtins-x87.cc » ('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_X64 5 #if V8_TARGET_ARCH_X64
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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 729
730 // The return value is in rax. 730 // The return value is in rax.
731 LeaveInterpreterFrame(masm, rbx, rcx); 731 LeaveInterpreterFrame(masm, rbx, rcx);
732 __ ret(0); 732 __ ret(0);
733 733
734 // Load debug copy of the bytecode array. 734 // Load debug copy of the bytecode array.
735 __ bind(&load_debug_bytecode_array); 735 __ bind(&load_debug_bytecode_array);
736 Register debug_info = kInterpreterBytecodeArrayRegister; 736 Register debug_info = kInterpreterBytecodeArrayRegister;
737 __ movp(debug_info, FieldOperand(rax, SharedFunctionInfo::kDebugInfoOffset)); 737 __ movp(debug_info, FieldOperand(rax, SharedFunctionInfo::kDebugInfoOffset));
738 __ movp(kInterpreterBytecodeArrayRegister, 738 __ movp(kInterpreterBytecodeArrayRegister,
739 FieldOperand(debug_info, DebugInfo::kAbstractCodeIndex)); 739 FieldOperand(debug_info, DebugInfo::kDebugBytecodeArrayIndex));
740 __ jmp(&bytecode_array_loaded); 740 __ jmp(&bytecode_array_loaded);
741 741
742 // If the bytecode array is no longer present, then the underlying function 742 // If the bytecode array is no longer present, then the underlying function
743 // has been switched to a different kind of code and we heal the closure by 743 // has been switched to a different kind of code and we heal the closure by
744 // switching the code entry field over to the new code object as well. 744 // switching the code entry field over to the new code object as well.
745 __ bind(&bytecode_array_not_present); 745 __ bind(&bytecode_array_not_present);
746 __ leave(); // Leave the frame so we can tail call. 746 __ leave(); // Leave the frame so we can tail call.
747 __ movp(rcx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset)); 747 __ movp(rcx, FieldOperand(rdi, JSFunction::kSharedFunctionInfoOffset));
748 __ movp(rcx, FieldOperand(rcx, SharedFunctionInfo::kCodeOffset)); 748 __ movp(rcx, FieldOperand(rcx, SharedFunctionInfo::kCodeOffset));
749 __ leap(rcx, FieldOperand(rcx, Code::kHeaderSize)); 749 __ leap(rcx, FieldOperand(rcx, Code::kHeaderSize));
(...skipping 2295 matching lines...) Expand 10 before | Expand all | Expand 10 after
3045 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { 3045 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
3046 Generate_OnStackReplacementHelper(masm, true); 3046 Generate_OnStackReplacementHelper(masm, true);
3047 } 3047 }
3048 3048
3049 #undef __ 3049 #undef __
3050 3050
3051 } // namespace internal 3051 } // namespace internal
3052 } // namespace v8 3052 } // namespace v8
3053 3053
3054 #endif // V8_TARGET_ARCH_X64 3054 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/builtins/s390/builtins-s390.cc ('k') | src/builtins/x87/builtins-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698