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 #include "arm/lithium-codegen-arm.h" | 7 #include "arm/lithium-codegen-arm.h" |
8 #include "arm/lithium-gap-resolver-arm.h" | 8 #include "arm/lithium-gap-resolver-arm.h" |
9 #include "code-stubs.h" | 9 #include "code-stubs.h" |
10 #include "stub-cache.h" | 10 #include "stub-cache.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 __ ldr(r2, FieldMemOperand(r2, GlobalObject::kGlobalReceiverOffset)); | 133 __ ldr(r2, FieldMemOperand(r2, GlobalObject::kGlobalReceiverOffset)); |
134 | 134 |
135 __ str(r2, MemOperand(sp, receiver_offset)); | 135 __ str(r2, MemOperand(sp, receiver_offset)); |
136 | 136 |
137 __ bind(&ok); | 137 __ bind(&ok); |
138 } | 138 } |
139 } | 139 } |
140 | 140 |
141 info()->set_prologue_offset(masm_->pc_offset()); | 141 info()->set_prologue_offset(masm_->pc_offset()); |
142 if (NeedsEagerFrame()) { | 142 if (NeedsEagerFrame()) { |
143 __ Prologue(info()->IsStub() ? BUILD_STUB_FRAME : BUILD_FUNCTION_FRAME); | 143 __ Prologue(info()); |
144 frame_is_built_ = true; | 144 frame_is_built_ = true; |
145 info_->AddNoFrameRange(0, masm_->pc_offset()); | 145 info_->AddNoFrameRange(0, masm_->pc_offset()); |
146 } | 146 } |
147 | 147 |
148 // Reserve space for the stack slots needed by the code. | 148 // Reserve space for the stack slots needed by the code. |
149 int slots = GetStackSlotCount(); | 149 int slots = GetStackSlotCount(); |
150 if (slots > 0) { | 150 if (slots > 0) { |
151 if (FLAG_debug_code) { | 151 if (FLAG_debug_code) { |
152 __ sub(sp, sp, Operand(slots * kPointerSize)); | 152 __ sub(sp, sp, Operand(slots * kPointerSize)); |
153 __ push(r0); | 153 __ push(r0); |
(...skipping 5699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5853 __ ldr(result, FieldMemOperand(scratch, | 5853 __ ldr(result, FieldMemOperand(scratch, |
5854 FixedArray::kHeaderSize - kPointerSize)); | 5854 FixedArray::kHeaderSize - kPointerSize)); |
5855 __ bind(deferred->exit()); | 5855 __ bind(deferred->exit()); |
5856 __ bind(&done); | 5856 __ bind(&done); |
5857 } | 5857 } |
5858 | 5858 |
5859 | 5859 |
5860 #undef __ | 5860 #undef __ |
5861 | 5861 |
5862 } } // namespace v8::internal | 5862 } } // namespace v8::internal |
OLD | NEW |