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 "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/arm64/lithium-codegen-arm64.h" | 8 #include "src/arm64/lithium-codegen-arm64.h" |
9 #include "src/arm64/lithium-gap-resolver-arm64.h" | 9 #include "src/arm64/lithium-gap-resolver-arm64.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 value, | 270 value, |
271 environment->HasTaggedValueAt(env_offset + i), | 271 environment->HasTaggedValueAt(env_offset + i), |
272 environment->HasUint32ValueAt(env_offset + i), | 272 environment->HasUint32ValueAt(env_offset + i), |
273 object_index_pointer, | 273 object_index_pointer, |
274 dematerialized_index_pointer); | 274 dematerialized_index_pointer); |
275 } | 275 } |
276 return; | 276 return; |
277 } | 277 } |
278 | 278 |
279 if (op->IsStackSlot()) { | 279 if (op->IsStackSlot()) { |
| 280 int index = op->index(); |
| 281 if (index >= 0) { |
| 282 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 283 } |
280 if (is_tagged) { | 284 if (is_tagged) { |
281 translation->StoreStackSlot(op->index()); | 285 translation->StoreStackSlot(index); |
282 } else if (is_uint32) { | 286 } else if (is_uint32) { |
283 translation->StoreUint32StackSlot(op->index()); | 287 translation->StoreUint32StackSlot(index); |
284 } else { | 288 } else { |
285 translation->StoreInt32StackSlot(op->index()); | 289 translation->StoreInt32StackSlot(index); |
286 } | 290 } |
287 } else if (op->IsDoubleStackSlot()) { | 291 } else if (op->IsDoubleStackSlot()) { |
288 translation->StoreDoubleStackSlot(op->index()); | 292 int index = op->index(); |
| 293 if (index >= 0) { |
| 294 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 295 } |
| 296 translation->StoreDoubleStackSlot(index); |
289 } else if (op->IsRegister()) { | 297 } else if (op->IsRegister()) { |
290 Register reg = ToRegister(op); | 298 Register reg = ToRegister(op); |
291 if (is_tagged) { | 299 if (is_tagged) { |
292 translation->StoreRegister(reg); | 300 translation->StoreRegister(reg); |
293 } else if (is_uint32) { | 301 } else if (is_uint32) { |
294 translation->StoreUint32Register(reg); | 302 translation->StoreUint32Register(reg); |
295 } else { | 303 } else { |
296 translation->StoreInt32Register(reg); | 304 translation->StoreInt32Register(reg); |
297 } | 305 } |
298 } else if (op->IsDoubleRegister()) { | 306 } else if (op->IsDoubleRegister()) { |
(...skipping 5861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6160 Handle<ScopeInfo> scope_info = instr->scope_info(); | 6168 Handle<ScopeInfo> scope_info = instr->scope_info(); |
6161 __ Push(scope_info); | 6169 __ Push(scope_info); |
6162 __ Push(ToRegister(instr->function())); | 6170 __ Push(ToRegister(instr->function())); |
6163 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6171 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6164 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6172 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6165 } | 6173 } |
6166 | 6174 |
6167 | 6175 |
6168 } // namespace internal | 6176 } // namespace internal |
6169 } // namespace v8 | 6177 } // namespace v8 |
OLD | NEW |