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

Side by Side Diff: src/ia32/lithium-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/ia32/full-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('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 "ia32/lithium-codegen-ia32.h" 9 #include "ia32/lithium-codegen-ia32.h"
10 #include "ic.h" 10 #include "ic.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 __ j(not_zero, &align_loop, Label::kNear); 181 __ j(not_zero, &align_loop, Label::kNear);
182 __ mov(Operand(ebx, 0), Immediate(kAlignmentZapValue)); 182 __ mov(Operand(ebx, 0), Immediate(kAlignmentZapValue));
183 __ bind(&do_not_pad); 183 __ bind(&do_not_pad);
184 } 184 }
185 } 185 }
186 186
187 info()->set_prologue_offset(masm_->pc_offset()); 187 info()->set_prologue_offset(masm_->pc_offset());
188 if (NeedsEagerFrame()) { 188 if (NeedsEagerFrame()) {
189 ASSERT(!frame_is_built_); 189 ASSERT(!frame_is_built_);
190 frame_is_built_ = true; 190 frame_is_built_ = true;
191 __ Prologue(info()); 191 if (info()->IsStub()) {
192 __ StubPrologue();
193 } else {
194 __ Prologue(info()->IsCodePreAgingActive());
195 }
192 info()->AddNoFrameRange(0, masm_->pc_offset()); 196 info()->AddNoFrameRange(0, masm_->pc_offset());
193 } 197 }
194 198
195 if (info()->IsOptimizing() && 199 if (info()->IsOptimizing() &&
196 dynamic_frame_alignment_ && 200 dynamic_frame_alignment_ &&
197 FLAG_debug_code) { 201 FLAG_debug_code) {
198 __ test(esp, Immediate(kPointerSize)); 202 __ test(esp, Immediate(kPointerSize));
199 __ Assert(zero, kFrameIsExpectedToBeAligned); 203 __ Assert(zero, kFrameIsExpectedToBeAligned);
200 } 204 }
201 205
(...skipping 5482 matching lines...) Expand 10 before | Expand all | Expand 10 after
5684 __ bind(deferred->exit()); 5688 __ bind(deferred->exit());
5685 __ bind(&done); 5689 __ bind(&done);
5686 } 5690 }
5687 5691
5688 5692
5689 #undef __ 5693 #undef __
5690 5694
5691 } } // namespace v8::internal 5695 } } // namespace v8::internal
5692 5696
5693 #endif // V8_TARGET_ARCH_IA32 5697 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698