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/crankshaft/arm64/lithium-codegen-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 SaveCallerDoubles(); | 592 SaveCallerDoubles(); |
593 } | 593 } |
594 return !is_aborted(); | 594 return !is_aborted(); |
595 } | 595 } |
596 | 596 |
597 | 597 |
598 void LCodeGen::DoPrologue(LPrologue* instr) { | 598 void LCodeGen::DoPrologue(LPrologue* instr) { |
599 Comment(";;; Prologue begin"); | 599 Comment(";;; Prologue begin"); |
600 | 600 |
601 // Allocate a local context if needed. | 601 // Allocate a local context if needed. |
602 if (info()->num_heap_slots() > 0) { | 602 if (info()->scope()->num_heap_slots() > 0) { |
603 Comment(";;; Allocate local context"); | 603 Comment(";;; Allocate local context"); |
604 bool need_write_barrier = true; | 604 bool need_write_barrier = true; |
605 // Argument to NewContext is the function, which is in x1. | 605 // Argument to NewContext is the function, which is in x1. |
606 int slots = info()->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; | 606 int slots = info()->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; |
607 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt; | 607 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt; |
608 if (info()->scope()->is_script_scope()) { | 608 if (info()->scope()->is_script_scope()) { |
609 __ Mov(x10, Operand(info()->scope()->GetScopeInfo(info()->isolate()))); | 609 __ Mov(x10, Operand(info()->scope()->GetScopeInfo(info()->isolate()))); |
610 __ Push(x1, x10); | 610 __ Push(x1, x10); |
611 __ CallRuntime(Runtime::kNewScriptContext); | 611 __ CallRuntime(Runtime::kNewScriptContext); |
612 deopt_mode = Safepoint::kLazyDeopt; | 612 deopt_mode = Safepoint::kLazyDeopt; |
(...skipping 5112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5725 // Index is equal to negated out of object property index plus 1. | 5725 // Index is equal to negated out of object property index plus 1. |
5726 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5726 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
5727 __ Ldr(result, FieldMemOperand(result, | 5727 __ Ldr(result, FieldMemOperand(result, |
5728 FixedArray::kHeaderSize - kPointerSize)); | 5728 FixedArray::kHeaderSize - kPointerSize)); |
5729 __ Bind(deferred->exit()); | 5729 __ Bind(deferred->exit()); |
5730 __ Bind(&done); | 5730 __ Bind(&done); |
5731 } | 5731 } |
5732 | 5732 |
5733 } // namespace internal | 5733 } // namespace internal |
5734 } // namespace v8 | 5734 } // namespace v8 |
OLD | NEW |