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

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

Issue 1463803002: [debugger] flood function for stepping before calling it. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years 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.cc ('k') | src/ia32/macro-assembler-ia32.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_IA32 5 #if V8_TARGET_ARCH_IA32
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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 __ j(greater_equal, &loop); 334 __ j(greater_equal, &loop);
335 335
336 // Call the function. 336 // Call the function.
337 if (is_api_function) { 337 if (is_api_function) {
338 __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset)); 338 __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset));
339 Handle<Code> code = 339 Handle<Code> code =
340 masm->isolate()->builtins()->HandleApiCallConstruct(); 340 masm->isolate()->builtins()->HandleApiCallConstruct();
341 __ call(code, RelocInfo::CODE_TARGET); 341 __ call(code, RelocInfo::CODE_TARGET);
342 } else { 342 } else {
343 ParameterCount actual(eax); 343 ParameterCount actual(eax);
344 __ InvokeFunction(edi, edx, actual, CALL_FUNCTION, NullCallWrapper()); 344 __ InvokeFunction(edi, edx, actual, CALL_FUNCTION,
345 CheckDebugStepCallWrapper());
345 } 346 }
346 347
347 // Store offset of return address for deoptimizer. 348 // Store offset of return address for deoptimizer.
348 if (create_implicit_receiver && !is_api_function) { 349 if (create_implicit_receiver && !is_api_function) {
349 masm->isolate()->heap()->SetConstructStubDeoptPCOffset(masm->pc_offset()); 350 masm->isolate()->heap()->SetConstructStubDeoptPCOffset(masm->pc_offset());
350 } 351 }
351 352
352 // Restore context from the frame. 353 // Restore context from the frame.
353 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 354 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
354 355
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 // -- edx : the shared function info. 1539 // -- edx : the shared function info.
1539 // -- edi : the function to call (checked to be a JSFunction) 1540 // -- edi : the function to call (checked to be a JSFunction)
1540 // -- esi : the function context. 1541 // -- esi : the function context.
1541 // ----------------------------------- 1542 // -----------------------------------
1542 1543
1543 __ mov(ebx, 1544 __ mov(ebx,
1544 FieldOperand(edx, SharedFunctionInfo::kFormalParameterCountOffset)); 1545 FieldOperand(edx, SharedFunctionInfo::kFormalParameterCountOffset));
1545 __ SmiUntag(ebx); 1546 __ SmiUntag(ebx);
1546 ParameterCount actual(eax); 1547 ParameterCount actual(eax);
1547 ParameterCount expected(ebx); 1548 ParameterCount expected(ebx);
1548 __ InvokeCode(FieldOperand(edi, JSFunction::kCodeEntryOffset), no_reg, 1549 __ InvokeFunctionCode(edi, no_reg, expected, actual, JUMP_FUNCTION,
1549 expected, actual, JUMP_FUNCTION, NullCallWrapper()); 1550 CheckDebugStepCallWrapper());
1550
1551 // The function is a "classConstructor", need to raise an exception. 1551 // The function is a "classConstructor", need to raise an exception.
1552 __ bind(&class_constructor); 1552 __ bind(&class_constructor);
1553 { 1553 {
1554 FrameScope frame(masm, StackFrame::INTERNAL); 1554 FrameScope frame(masm, StackFrame::INTERNAL);
1555 __ push(edi); 1555 __ push(edi);
1556 __ CallRuntime(Runtime::kThrowConstructorNonCallableError, 1); 1556 __ CallRuntime(Runtime::kThrowConstructorNonCallableError, 1);
1557 } 1557 }
1558 } 1558 }
1559 1559
1560 1560
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1995 1995
1996 __ bind(&ok); 1996 __ bind(&ok);
1997 __ ret(0); 1997 __ ret(0);
1998 } 1998 }
1999 1999
2000 #undef __ 2000 #undef __
2001 } // namespace internal 2001 } // namespace internal
2002 } // namespace v8 2002 } // namespace v8
2003 2003
2004 #endif // V8_TARGET_ARCH_IA32 2004 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/debug/debug.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698