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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 2672823007: Revert of [debugger] remove debugger statement support from FCG/CS. (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 | « src/x64/macro-assembler-x64.h ('k') | test/cctest/test-profile-generator.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/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 4070 matching lines...) Expand 10 before | Expand all | Expand 10 after
4081 if (FLAG_native_code_counters && counter->Enabled()) { 4081 if (FLAG_native_code_counters && counter->Enabled()) {
4082 Operand counter_operand = ExternalOperand(ExternalReference(counter)); 4082 Operand counter_operand = ExternalOperand(ExternalReference(counter));
4083 if (value == 1) { 4083 if (value == 1) {
4084 decl(counter_operand); 4084 decl(counter_operand);
4085 } else { 4085 } else {
4086 subl(counter_operand, Immediate(value)); 4086 subl(counter_operand, Immediate(value));
4087 } 4087 }
4088 } 4088 }
4089 } 4089 }
4090 4090
4091 void MacroAssembler::DebugBreak() {
4092 Call(isolate()->builtins()->HandleDebuggerStatement(),
4093 RelocInfo::DEBUGGER_STATEMENT);
4094 }
4095
4091 void MacroAssembler::MaybeDropFrames() { 4096 void MacroAssembler::MaybeDropFrames() {
4092 // Check whether we need to drop frames to restart a function on the stack. 4097 // Check whether we need to drop frames to restart a function on the stack.
4093 ExternalReference restart_fp = 4098 ExternalReference restart_fp =
4094 ExternalReference::debug_restart_fp_address(isolate()); 4099 ExternalReference::debug_restart_fp_address(isolate());
4095 Load(rbx, restart_fp); 4100 Load(rbx, restart_fp);
4096 testp(rbx, rbx); 4101 testp(rbx, rbx);
4097 j(not_zero, isolate()->builtins()->FrameDropperTrampoline(), 4102 j(not_zero, isolate()->builtins()->FrameDropperTrampoline(),
4098 RelocInfo::CODE_TARGET); 4103 RelocInfo::CODE_TARGET);
4099 } 4104 }
4100 4105
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after
5302 movl(rax, dividend); 5307 movl(rax, dividend);
5303 shrl(rax, Immediate(31)); 5308 shrl(rax, Immediate(31));
5304 addl(rdx, rax); 5309 addl(rdx, rax);
5305 } 5310 }
5306 5311
5307 5312
5308 } // namespace internal 5313 } // namespace internal
5309 } // namespace v8 5314 } // namespace v8
5310 5315
5311 #endif // V8_TARGET_ARCH_X64 5316 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/macro-assembler-x64.h ('k') | test/cctest/test-profile-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698