OLD | NEW |
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 Loading... |
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()->IsStub() ? BUILD_STUB_FRAME : BUILD_FUNCTION_FRAME); | 191 __ Prologue(info()); |
192 info()->AddNoFrameRange(0, masm_->pc_offset()); | 192 info()->AddNoFrameRange(0, masm_->pc_offset()); |
193 } | 193 } |
194 | 194 |
195 if (info()->IsOptimizing() && | 195 if (info()->IsOptimizing() && |
196 dynamic_frame_alignment_ && | 196 dynamic_frame_alignment_ && |
197 FLAG_debug_code) { | 197 FLAG_debug_code) { |
198 __ test(esp, Immediate(kPointerSize)); | 198 __ test(esp, Immediate(kPointerSize)); |
199 __ Assert(zero, kFrameIsExpectedToBeAligned); | 199 __ Assert(zero, kFrameIsExpectedToBeAligned); |
200 } | 200 } |
201 | 201 |
(...skipping 5482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5684 __ bind(deferred->exit()); | 5684 __ bind(deferred->exit()); |
5685 __ bind(&done); | 5685 __ bind(&done); |
5686 } | 5686 } |
5687 | 5687 |
5688 | 5688 |
5689 #undef __ | 5689 #undef __ |
5690 | 5690 |
5691 } } // namespace v8::internal | 5691 } } // namespace v8::internal |
5692 | 5692 |
5693 #endif // V8_TARGET_ARCH_IA32 | 5693 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |