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

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

Issue 226233002: Revert "Reland of https://codereview.chromium.org/172523002/" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/full-codegen-ia32.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 // Now that the break point has been handled, resume normal execution by 191 // Now that the break point has been handled, resume normal execution by
192 // jumping to the target address intended by the caller and that was 192 // jumping to the target address intended by the caller and that was
193 // overwritten by the address of DebugBreakXXX. 193 // overwritten by the address of DebugBreakXXX.
194 ExternalReference after_break_target = 194 ExternalReference after_break_target =
195 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate()); 195 ExternalReference(Debug_Address::AfterBreakTarget(), masm->isolate());
196 __ jmp(Operand::StaticVariable(after_break_target)); 196 __ jmp(Operand::StaticVariable(after_break_target));
197 } 197 }
198 198
199 199
200 void Debug::GenerateCallICStubDebugBreak(MacroAssembler* masm) {
201 // Register state for CallICStub
202 // ----------- S t a t e -------------
203 // -- ebx : type feedback vector
204 // -- edx : type feedback slot (smi)
205 // -- edi : function
206 // -----------------------------------
207 Generate_DebugBreakCallHelper(masm, ebx.bit() | edx.bit() | edi.bit(),
208 0, false);
209 }
210
211
212 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) { 200 void Debug::GenerateLoadICDebugBreak(MacroAssembler* masm) {
213 // Register state for IC load call (from ic-ia32.cc). 201 // Register state for IC load call (from ic-ia32.cc).
214 // ----------- S t a t e ------------- 202 // ----------- S t a t e -------------
215 // -- ecx : name 203 // -- ecx : name
216 // -- edx : receiver 204 // -- edx : receiver
217 // ----------------------------------- 205 // -----------------------------------
218 Generate_DebugBreakCallHelper(masm, ecx.bit() | edx.bit(), 0, false); 206 Generate_DebugBreakCallHelper(masm, ecx.bit() | edx.bit(), 0, false);
219 } 207 }
220 208
221 209
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 243
256 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) { 244 void Debug::GenerateCompareNilICDebugBreak(MacroAssembler* masm) {
257 // Register state for CompareNil IC 245 // Register state for CompareNil IC
258 // ----------- S t a t e ------------- 246 // ----------- S t a t e -------------
259 // -- eax : value 247 // -- eax : value
260 // ----------------------------------- 248 // -----------------------------------
261 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, false); 249 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, false);
262 } 250 }
263 251
264 252
253 void Debug::GenerateCallICDebugBreak(MacroAssembler* masm) {
254 // Register state for keyed IC call call (from ic-ia32.cc)
255 // ----------- S t a t e -------------
256 // -- ecx: name
257 // -----------------------------------
258 Generate_DebugBreakCallHelper(masm, ecx.bit(), 0, false);
259 }
260
261
265 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) { 262 void Debug::GenerateReturnDebugBreak(MacroAssembler* masm) {
266 // Register state just before return from JS function (from codegen-ia32.cc). 263 // Register state just before return from JS function (from codegen-ia32.cc).
267 // ----------- S t a t e ------------- 264 // ----------- S t a t e -------------
268 // -- eax: return value 265 // -- eax: return value
269 // ----------------------------------- 266 // -----------------------------------
270 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, true); 267 Generate_DebugBreakCallHelper(masm, eax.bit(), 0, true);
271 } 268 }
272 269
273 270
274 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) { 271 void Debug::GenerateCallFunctionStubDebugBreak(MacroAssembler* masm) {
275 // Register state for CallFunctionStub (from code-stubs-ia32.cc). 272 // Register state for CallFunctionStub (from code-stubs-ia32.cc).
276 // ----------- S t a t e ------------- 273 // ----------- S t a t e -------------
277 // -- edi: function 274 // -- edi: function
278 // ----------------------------------- 275 // -----------------------------------
279 Generate_DebugBreakCallHelper(masm, edi.bit(), 0, false); 276 Generate_DebugBreakCallHelper(masm, edi.bit(), 0, false);
280 } 277 }
281 278
282 279
280 void Debug::GenerateCallFunctionStubRecordDebugBreak(MacroAssembler* masm) {
281 // Register state for CallFunctionStub (from code-stubs-ia32.cc).
282 // ----------- S t a t e -------------
283 // -- ebx: feedback array
284 // -- edx: slot in feedback array
285 // -- edi: function
286 // -----------------------------------
287 Generate_DebugBreakCallHelper(masm, ebx.bit() | edx.bit() | edi.bit(),
288 0, false);
289 }
290
291
283 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) { 292 void Debug::GenerateCallConstructStubDebugBreak(MacroAssembler* masm) {
284 // Register state for CallConstructStub (from code-stubs-ia32.cc). 293 // Register state for CallConstructStub (from code-stubs-ia32.cc).
285 // eax is the actual number of arguments not encoded as a smi see comment 294 // eax is the actual number of arguments not encoded as a smi see comment
286 // above IC call. 295 // above IC call.
287 // ----------- S t a t e ------------- 296 // ----------- S t a t e -------------
288 // -- eax: number of arguments (not smi) 297 // -- eax: number of arguments (not smi)
289 // -- edi: constructor function 298 // -- edi: constructor function
290 // ----------------------------------- 299 // -----------------------------------
291 // The number of arguments in eax is not smi encoded. 300 // The number of arguments in eax is not smi encoded.
292 Generate_DebugBreakCallHelper(masm, edi.bit(), eax.bit(), false); 301 Generate_DebugBreakCallHelper(masm, edi.bit(), eax.bit(), false);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 367
359 const bool Debug::kFrameDropperSupported = true; 368 const bool Debug::kFrameDropperSupported = true;
360 369
361 #undef __ 370 #undef __
362 371
363 #endif // ENABLE_DEBUGGER_SUPPORT 372 #endif // ENABLE_DEBUGGER_SUPPORT
364 373
365 } } // namespace v8::internal 374 } } // namespace v8::internal
366 375
367 #endif // V8_TARGET_ARCH_IA32 376 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698