OLD | NEW |
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_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "x64/lithium-codegen-x64.h" | 9 #include "x64/lithium-codegen-x64.h" |
10 #include "code-stubs.h" | 10 #include "code-stubs.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 __ movp(args.GetReceiverOperand(), rcx); | 142 __ movp(args.GetReceiverOperand(), rcx); |
143 | 143 |
144 __ bind(&ok); | 144 __ bind(&ok); |
145 } | 145 } |
146 } | 146 } |
147 | 147 |
148 info()->set_prologue_offset(masm_->pc_offset()); | 148 info()->set_prologue_offset(masm_->pc_offset()); |
149 if (NeedsEagerFrame()) { | 149 if (NeedsEagerFrame()) { |
150 ASSERT(!frame_is_built_); | 150 ASSERT(!frame_is_built_); |
151 frame_is_built_ = true; | 151 frame_is_built_ = true; |
152 __ Prologue(info()->IsStub() ? BUILD_STUB_FRAME : BUILD_FUNCTION_FRAME); | 152 __ Prologue(info()); |
153 info()->AddNoFrameRange(0, masm_->pc_offset()); | 153 info()->AddNoFrameRange(0, masm_->pc_offset()); |
154 } | 154 } |
155 | 155 |
156 // Reserve space for the stack slots needed by the code. | 156 // Reserve space for the stack slots needed by the code. |
157 int slots = GetStackSlotCount(); | 157 int slots = GetStackSlotCount(); |
158 if (slots > 0) { | 158 if (slots > 0) { |
159 if (FLAG_debug_code) { | 159 if (FLAG_debug_code) { |
160 __ subp(rsp, Immediate(slots * kPointerSize)); | 160 __ subp(rsp, Immediate(slots * kPointerSize)); |
161 #ifdef _MSC_VER | 161 #ifdef _MSC_VER |
162 MakeSureStackPagesMapped(slots * kPointerSize); | 162 MakeSureStackPagesMapped(slots * kPointerSize); |
(...skipping 5558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5721 __ bind(deferred->exit()); | 5721 __ bind(deferred->exit()); |
5722 __ bind(&done); | 5722 __ bind(&done); |
5723 } | 5723 } |
5724 | 5724 |
5725 | 5725 |
5726 #undef __ | 5726 #undef __ |
5727 | 5727 |
5728 } } // namespace v8::internal | 5728 } } // namespace v8::internal |
5729 | 5729 |
5730 #endif // V8_TARGET_ARCH_X64 | 5730 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |