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

Side by Side Diff: src/debug/ia32/debug-ia32.cc

Issue 2622863003: [debugger] infrastructure for side-effect-free debug-evaluate. (Closed)
Patch Set: fix mips one more time Created 3 years, 11 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/debug/debug-evaluate.cc ('k') | src/debug/mips/debug-mips.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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/debug/debug.h" 7 #include "src/debug/debug.h"
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/debug/liveedit.h" 10 #include "src/debug/liveedit.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // We do not know our frame height, but set esp based on ebp. 122 // We do not know our frame height, but set esp based on ebp.
123 __ lea(esp, Operand(ebp, FrameDropperFrameConstants::kFunctionOffset)); 123 __ lea(esp, Operand(ebp, FrameDropperFrameConstants::kFunctionOffset));
124 __ pop(edi); // Function. 124 __ pop(edi); // Function.
125 __ add(esp, Immediate(-FrameDropperFrameConstants::kCodeOffset)); // INTERNAL 125 __ add(esp, Immediate(-FrameDropperFrameConstants::kCodeOffset)); // INTERNAL
126 // frame 126 // frame
127 // marker 127 // marker
128 // and code 128 // and code
129 __ pop(ebp); 129 __ pop(ebp);
130 130
131 ParameterCount dummy(0); 131 ParameterCount dummy(0);
132 __ FloodFunctionIfStepping(edi, no_reg, dummy, dummy); 132 __ CheckDebugHook(edi, no_reg, dummy, dummy);
133 133
134 // Load context from the function. 134 // Load context from the function.
135 __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset)); 135 __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset));
136 136
137 // Clear new.target register as a safety measure. 137 // Clear new.target register as a safety measure.
138 __ mov(edx, masm->isolate()->factory()->undefined_value()); 138 __ mov(edx, masm->isolate()->factory()->undefined_value());
139 139
140 // Get function code. 140 // Get function code.
141 __ mov(ebx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); 141 __ mov(ebx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset));
142 __ mov(ebx, FieldOperand(ebx, SharedFunctionInfo::kCodeOffset)); 142 __ mov(ebx, FieldOperand(ebx, SharedFunctionInfo::kCodeOffset));
143 __ lea(ebx, FieldOperand(ebx, Code::kHeaderSize)); 143 __ lea(ebx, FieldOperand(ebx, Code::kHeaderSize));
144 144
145 // Re-run JSFunction, edi is function, esi is context. 145 // Re-run JSFunction, edi is function, esi is context.
146 __ jmp(ebx); 146 __ jmp(ebx);
147 } 147 }
148 148
149 149
150 const bool LiveEdit::kFrameDropperSupported = true; 150 const bool LiveEdit::kFrameDropperSupported = true;
151 151
152 #undef __ 152 #undef __
153 153
154 } // namespace internal 154 } // namespace internal
155 } // namespace v8 155 } // namespace v8
156 156
157 #endif // V8_TARGET_ARCH_IA32 157 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/debug/debug-evaluate.cc ('k') | src/debug/mips/debug-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698