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

Side by Side Diff: src/arm64/full-codegen-arm64.cc

Issue 261253005: Clean up debugger flags. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 years, 7 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/arm/macro-assembler-arm.cc ('k') | src/arm64/lithium-codegen-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #include "code-stubs.h" 9 #include "code-stubs.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Open a frame scope to indicate that there is a frame on the stack. 163 // Open a frame scope to indicate that there is a frame on the stack.
164 // The MANUAL indicates that the scope shouldn't actually generate code 164 // The MANUAL indicates that the scope shouldn't actually generate code
165 // to set up the frame because we do it manually below. 165 // to set up the frame because we do it manually below.
166 FrameScope frame_scope(masm_, StackFrame::MANUAL); 166 FrameScope frame_scope(masm_, StackFrame::MANUAL);
167 167
168 // This call emits the following sequence in a way that can be patched for 168 // This call emits the following sequence in a way that can be patched for
169 // code ageing support: 169 // code ageing support:
170 // Push(lr, fp, cp, x1); 170 // Push(lr, fp, cp, x1);
171 // Add(fp, jssp, 2 * kPointerSize); 171 // Add(fp, jssp, 2 * kPointerSize);
172 info->set_prologue_offset(masm_->pc_offset()); 172 info->set_prologue_offset(masm_->pc_offset());
173 __ Prologue(BUILD_FUNCTION_FRAME); 173 ASSERT(!info->IsStub());
174 __ Prologue(info);
174 info->AddNoFrameRange(0, masm_->pc_offset()); 175 info->AddNoFrameRange(0, masm_->pc_offset());
175 176
176 // Reserve space on the stack for locals. 177 // Reserve space on the stack for locals.
177 { Comment cmnt(masm_, "[ Allocate locals"); 178 { Comment cmnt(masm_, "[ Allocate locals");
178 int locals_count = info->scope()->num_stack_slots(); 179 int locals_count = info->scope()->num_stack_slots();
179 // Generators allocate locals, if any, in context slots. 180 // Generators allocate locals, if any, in context slots.
180 ASSERT(!info->function()->is_generator() || locals_count == 0); 181 ASSERT(!info->function()->is_generator() || locals_count == 0);
181 182
182 if (locals_count > 0) { 183 if (locals_count > 0) {
183 if (locals_count >= 128) { 184 if (locals_count >= 128) {
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 void FullCodeGenerator::EmitProfilingCounterDecrement(int delta) { 341 void FullCodeGenerator::EmitProfilingCounterDecrement(int delta) {
341 __ Mov(x2, Operand(profiling_counter_)); 342 __ Mov(x2, Operand(profiling_counter_));
342 __ Ldr(x3, FieldMemOperand(x2, Cell::kValueOffset)); 343 __ Ldr(x3, FieldMemOperand(x2, Cell::kValueOffset));
343 __ Subs(x3, x3, Smi::FromInt(delta)); 344 __ Subs(x3, x3, Smi::FromInt(delta));
344 __ Str(x3, FieldMemOperand(x2, Cell::kValueOffset)); 345 __ Str(x3, FieldMemOperand(x2, Cell::kValueOffset));
345 } 346 }
346 347
347 348
348 void FullCodeGenerator::EmitProfilingCounterReset() { 349 void FullCodeGenerator::EmitProfilingCounterReset() {
349 int reset_value = FLAG_interrupt_budget; 350 int reset_value = FLAG_interrupt_budget;
350 if (isolate()->IsDebuggerActive()) { 351 if (info_->is_debug()) {
351 // Detect debug break requests as soon as possible. 352 // Detect debug break requests as soon as possible.
352 reset_value = FLAG_interrupt_budget >> 4; 353 reset_value = FLAG_interrupt_budget >> 4;
353 } 354 }
354 __ Mov(x2, Operand(profiling_counter_)); 355 __ Mov(x2, Operand(profiling_counter_));
355 __ Mov(x3, Smi::FromInt(reset_value)); 356 __ Mov(x3, Smi::FromInt(reset_value));
356 __ Str(x3, FieldMemOperand(x2, Cell::kValueOffset)); 357 __ Str(x3, FieldMemOperand(x2, Cell::kValueOffset));
357 } 358 }
358 359
359 360
360 void FullCodeGenerator::EmitBackEdgeBookkeeping(IterationStatement* stmt, 361 void FullCodeGenerator::EmitBackEdgeBookkeeping(IterationStatement* stmt,
(...skipping 4525 matching lines...) Expand 10 before | Expand all | Expand 10 after
4886 return previous_; 4887 return previous_;
4887 } 4888 }
4888 4889
4889 4890
4890 #undef __ 4891 #undef __
4891 4892
4892 4893
4893 } } // namespace v8::internal 4894 } } // namespace v8::internal
4894 4895
4895 #endif // V8_TARGET_ARCH_ARM64 4896 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698