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

Side by Side Diff: src/arm/full-codegen-arm.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 | « no previous file | src/arm/lithium-codegen-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 #include "v8.h" 5 #include "v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "code-stubs.h" 9 #include "code-stubs.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 164
165 __ bind(&ok); 165 __ bind(&ok);
166 } 166 }
167 167
168 // Open a frame scope to indicate that there is a frame on the stack. The 168 // Open a frame scope to indicate that there is a frame on the stack. The
169 // MANUAL indicates that the scope shouldn't actually generate code to set up 169 // MANUAL indicates that the scope shouldn't actually generate code to set up
170 // the frame (that is done below). 170 // the frame (that is done below).
171 FrameScope frame_scope(masm_, StackFrame::MANUAL); 171 FrameScope frame_scope(masm_, StackFrame::MANUAL);
172 172
173 info->set_prologue_offset(masm_->pc_offset()); 173 info->set_prologue_offset(masm_->pc_offset());
174 __ Prologue(BUILD_FUNCTION_FRAME); 174 ASSERT(!info->IsStub());
175 __ Prologue(info);
175 info->AddNoFrameRange(0, masm_->pc_offset()); 176 info->AddNoFrameRange(0, masm_->pc_offset());
176 177
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 if (locals_count > 0) { 182 if (locals_count > 0) {
182 if (locals_count >= 128) { 183 if (locals_count >= 128) {
183 EmitStackCheck(masm_, r2, locals_count, r9); 184 EmitStackCheck(masm_, r2, locals_count, r9);
184 } 185 }
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 void FullCodeGenerator::EmitProfilingCounterDecrement(int delta) { 343 void FullCodeGenerator::EmitProfilingCounterDecrement(int delta) {
343 __ mov(r2, Operand(profiling_counter_)); 344 __ mov(r2, Operand(profiling_counter_));
344 __ ldr(r3, FieldMemOperand(r2, Cell::kValueOffset)); 345 __ ldr(r3, FieldMemOperand(r2, Cell::kValueOffset));
345 __ sub(r3, r3, Operand(Smi::FromInt(delta)), SetCC); 346 __ sub(r3, r3, Operand(Smi::FromInt(delta)), SetCC);
346 __ str(r3, FieldMemOperand(r2, Cell::kValueOffset)); 347 __ str(r3, FieldMemOperand(r2, Cell::kValueOffset));
347 } 348 }
348 349
349 350
350 void FullCodeGenerator::EmitProfilingCounterReset() { 351 void FullCodeGenerator::EmitProfilingCounterReset() {
351 int reset_value = FLAG_interrupt_budget; 352 int reset_value = FLAG_interrupt_budget;
352 if (isolate()->IsDebuggerActive()) { 353 if (info_->is_debug()) {
353 // Detect debug break requests as soon as possible. 354 // Detect debug break requests as soon as possible.
354 reset_value = FLAG_interrupt_budget >> 4; 355 reset_value = FLAG_interrupt_budget >> 4;
355 } 356 }
356 __ mov(r2, Operand(profiling_counter_)); 357 __ mov(r2, Operand(profiling_counter_));
357 __ mov(r3, Operand(Smi::FromInt(reset_value))); 358 __ mov(r3, Operand(Smi::FromInt(reset_value)));
358 __ str(r3, FieldMemOperand(r2, Cell::kValueOffset)); 359 __ str(r3, FieldMemOperand(r2, Cell::kValueOffset));
359 } 360 }
360 361
361 362
362 void FullCodeGenerator::EmitBackEdgeBookkeeping(IterationStatement* stmt, 363 void FullCodeGenerator::EmitBackEdgeBookkeeping(IterationStatement* stmt,
(...skipping 4458 matching lines...) Expand 10 before | Expand all | Expand 10 after
4821 4822
4822 ASSERT(interrupt_address == 4823 ASSERT(interrupt_address ==
4823 isolate->builtins()->OsrAfterStackCheck()->entry()); 4824 isolate->builtins()->OsrAfterStackCheck()->entry());
4824 return OSR_AFTER_STACK_CHECK; 4825 return OSR_AFTER_STACK_CHECK;
4825 } 4826 }
4826 4827
4827 4828
4828 } } // namespace v8::internal 4829 } } // namespace v8::internal
4829 4830
4830 #endif // V8_TARGET_ARCH_ARM 4831 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698