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

Side by Side Diff: src/builtins/x64/builtins-x64.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/builtins/mips64/builtins-mips64.cc ('k') | src/debug/arm/debug-arm.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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 // Store resume mode into generator object. 457 // Store resume mode into generator object.
458 __ movp(FieldOperand(rbx, JSGeneratorObject::kResumeModeOffset), rdx); 458 __ movp(FieldOperand(rbx, JSGeneratorObject::kResumeModeOffset), rdx);
459 459
460 // Load suspended function and context. 460 // Load suspended function and context.
461 __ movp(rsi, FieldOperand(rbx, JSGeneratorObject::kContextOffset)); 461 __ movp(rsi, FieldOperand(rbx, JSGeneratorObject::kContextOffset));
462 __ movp(rdi, FieldOperand(rbx, JSGeneratorObject::kFunctionOffset)); 462 __ movp(rdi, FieldOperand(rbx, JSGeneratorObject::kFunctionOffset));
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 last_step_action = 467 ExternalReference debug_hook =
468 ExternalReference::debug_last_step_action_address(masm->isolate()); 468 ExternalReference::debug_hook_on_function_call_address(masm->isolate());
469 Operand last_step_action_operand = masm->ExternalOperand(last_step_action); 469 Operand debug_hook_operand = masm->ExternalOperand(debug_hook);
470 STATIC_ASSERT(StepFrame > StepIn); 470 STATIC_ASSERT(StepFrame > StepIn);
471 __ cmpb(last_step_action_operand, Immediate(StepIn)); 471 __ cmpb(debug_hook_operand, Immediate(0));
472 __ j(greater_equal, &prepare_step_in_if_stepping); 472 __ j(not_equal, &prepare_step_in_if_stepping);
473 473
474 // Flood function if we need to continue stepping in the suspended generator. 474 // Flood function if we need to continue stepping in the suspended generator.
475 ExternalReference debug_suspended_generator = 475 ExternalReference debug_suspended_generator =
476 ExternalReference::debug_suspended_generator_address(masm->isolate()); 476 ExternalReference::debug_suspended_generator_address(masm->isolate());
477 Operand debug_suspended_generator_operand = 477 Operand debug_suspended_generator_operand =
478 masm->ExternalOperand(debug_suspended_generator); 478 masm->ExternalOperand(debug_suspended_generator);
479 __ cmpp(rbx, debug_suspended_generator_operand); 479 __ cmpp(rbx, debug_suspended_generator_operand);
480 __ j(equal, &prepare_step_in_suspended_generator); 480 __ j(equal, &prepare_step_in_suspended_generator);
481 __ bind(&stepping_prepared); 481 __ bind(&stepping_prepared);
482 482
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 __ movp(rdx, rbx); 532 __ movp(rdx, rbx);
533 __ jmp(FieldOperand(rdi, JSFunction::kCodeEntryOffset)); 533 __ jmp(FieldOperand(rdi, JSFunction::kCodeEntryOffset));
534 } 534 }
535 535
536 __ bind(&prepare_step_in_if_stepping); 536 __ bind(&prepare_step_in_if_stepping);
537 { 537 {
538 FrameScope scope(masm, StackFrame::INTERNAL); 538 FrameScope scope(masm, StackFrame::INTERNAL);
539 __ Push(rbx); 539 __ Push(rbx);
540 __ Push(rdx); 540 __ Push(rdx);
541 __ Push(rdi); 541 __ Push(rdi);
542 __ CallRuntime(Runtime::kDebugPrepareStepInIfStepping); 542 __ CallRuntime(Runtime::kDebugOnFunctionCall);
543 __ Pop(rdx); 543 __ Pop(rdx);
544 __ Pop(rbx); 544 __ Pop(rbx);
545 __ movp(rdi, FieldOperand(rbx, JSGeneratorObject::kFunctionOffset)); 545 __ movp(rdi, FieldOperand(rbx, JSGeneratorObject::kFunctionOffset));
546 } 546 }
547 __ jmp(&stepping_prepared); 547 __ jmp(&stepping_prepared);
548 548
549 __ bind(&prepare_step_in_suspended_generator); 549 __ bind(&prepare_step_in_suspended_generator);
550 { 550 {
551 FrameScope scope(masm, StackFrame::INTERNAL); 551 FrameScope scope(masm, StackFrame::INTERNAL);
552 __ Push(rbx); 552 __ Push(rbx);
(...skipping 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after
3046 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { 3046 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
3047 Generate_OnStackReplacementHelper(masm, true); 3047 Generate_OnStackReplacementHelper(masm, true);
3048 } 3048 }
3049 3049
3050 #undef __ 3050 #undef __
3051 3051
3052 } // namespace internal 3052 } // namespace internal
3053 } // namespace v8 3053 } // namespace v8
3054 3054
3055 #endif // V8_TARGET_ARCH_X64 3055 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/builtins/mips64/builtins-mips64.cc ('k') | src/debug/arm/debug-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698