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

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

Issue 2650943011: [debug] remove StepFrame (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | src/debug/debug.h » ('j') | src/debug/debug.cc » ('J')
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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 // Load suspended function and context. 460 // Load suspended function and context.
461 __ movp(rdi, FieldOperand(rbx, JSGeneratorObject::kFunctionOffset)); 461 __ movp(rdi, FieldOperand(rbx, JSGeneratorObject::kFunctionOffset));
462 __ movp(rsi, FieldOperand(rdi, JSFunction::kContextOffset)); 462 __ movp(rsi, FieldOperand(rdi, JSFunction::kContextOffset));
463 463
464 // Flood function if we are stepping. 464 // Flood function if we are stepping.
465 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator; 465 Label prepare_step_in_if_stepping, prepare_step_in_suspended_generator;
466 Label stepping_prepared; 466 Label stepping_prepared;
467 ExternalReference debug_hook = 467 ExternalReference debug_hook =
468 ExternalReference::debug_hook_on_function_call_address(masm->isolate()); 468 ExternalReference::debug_hook_on_function_call_address(masm->isolate());
469 Operand debug_hook_operand = masm->ExternalOperand(debug_hook); 469 Operand debug_hook_operand = masm->ExternalOperand(debug_hook);
470 STATIC_ASSERT(StepFrame > StepIn);
471 __ cmpb(debug_hook_operand, Immediate(0)); 470 __ cmpb(debug_hook_operand, Immediate(0));
472 __ j(not_equal, &prepare_step_in_if_stepping); 471 __ j(not_equal, &prepare_step_in_if_stepping);
473 472
474 // Flood function if we need to continue stepping in the suspended generator. 473 // Flood function if we need to continue stepping in the suspended generator.
475 ExternalReference debug_suspended_generator = 474 ExternalReference debug_suspended_generator =
476 ExternalReference::debug_suspended_generator_address(masm->isolate()); 475 ExternalReference::debug_suspended_generator_address(masm->isolate());
477 Operand debug_suspended_generator_operand = 476 Operand debug_suspended_generator_operand =
478 masm->ExternalOperand(debug_suspended_generator); 477 masm->ExternalOperand(debug_suspended_generator);
479 __ cmpp(rbx, debug_suspended_generator_operand); 478 __ cmpp(rbx, debug_suspended_generator_operand);
480 __ j(equal, &prepare_step_in_suspended_generator); 479 __ j(equal, &prepare_step_in_suspended_generator);
(...skipping 2720 matching lines...) Expand 10 before | Expand all | Expand 10 after
3201 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { 3200 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
3202 Generate_OnStackReplacementHelper(masm, true); 3201 Generate_OnStackReplacementHelper(masm, true);
3203 } 3202 }
3204 3203
3205 #undef __ 3204 #undef __
3206 3205
3207 } // namespace internal 3206 } // namespace internal
3208 } // namespace v8 3207 } // namespace v8
3209 3208
3210 #endif // V8_TARGET_ARCH_X64 3209 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | src/debug/debug.h » ('j') | src/debug/debug.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698