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

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

Issue 288213002: Refactor MacroAssembler::Prologue. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment 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/full-codegen.h ('k') | src/ia32/lithium-codegen-ia32.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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "code-stubs.h" 9 #include "code-stubs.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 __ bind(&ok); 151 __ bind(&ok);
152 } 152 }
153 153
154 // Open a frame scope to indicate that there is a frame on the stack. The 154 // Open a frame scope to indicate that there is a frame on the stack. The
155 // MANUAL indicates that the scope shouldn't actually generate code to set up 155 // MANUAL indicates that the scope shouldn't actually generate code to set up
156 // the frame (that is done below). 156 // the frame (that is done below).
157 FrameScope frame_scope(masm_, StackFrame::MANUAL); 157 FrameScope frame_scope(masm_, StackFrame::MANUAL);
158 158
159 info->set_prologue_offset(masm_->pc_offset()); 159 info->set_prologue_offset(masm_->pc_offset());
160 ASSERT(!info->IsStub()); 160 __ Prologue(info->IsCodePreAgingActive());
161 __ Prologue(info);
162 info->AddNoFrameRange(0, masm_->pc_offset()); 161 info->AddNoFrameRange(0, masm_->pc_offset());
163 162
164 { Comment cmnt(masm_, "[ Allocate locals"); 163 { Comment cmnt(masm_, "[ Allocate locals");
165 int locals_count = info->scope()->num_stack_slots(); 164 int locals_count = info->scope()->num_stack_slots();
166 // Generators allocate locals, if any, in context slots. 165 // Generators allocate locals, if any, in context slots.
167 ASSERT(!info->function()->is_generator() || locals_count == 0); 166 ASSERT(!info->function()->is_generator() || locals_count == 0);
168 if (locals_count == 1) { 167 if (locals_count == 1) {
169 __ push(Immediate(isolate()->factory()->undefined_value())); 168 __ push(Immediate(isolate()->factory()->undefined_value()));
170 } else if (locals_count > 1) { 169 } else if (locals_count > 1) {
171 if (locals_count >= 128) { 170 if (locals_count >= 128) {
(...skipping 4622 matching lines...) Expand 10 before | Expand all | Expand 10 after
4794 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4793 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4795 Assembler::target_address_at(call_target_address, 4794 Assembler::target_address_at(call_target_address,
4796 unoptimized_code)); 4795 unoptimized_code));
4797 return OSR_AFTER_STACK_CHECK; 4796 return OSR_AFTER_STACK_CHECK;
4798 } 4797 }
4799 4798
4800 4799
4801 } } // namespace v8::internal 4800 } } // namespace v8::internal
4802 4801
4803 #endif // V8_TARGET_ARCH_IA32 4802 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698