Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.cc

Issue 2760953002: [builtins] Move more files into v8_builtins_generators source set (Closed)
Patch Set: rebased Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/arm64/macro-assembler-arm64-inl.h" 8 #include "src/arm64/macro-assembler-arm64-inl.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/builtins/builtins-constructor.h" 10 #include "src/builtins/builtins-constructor.h"
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 bool need_write_barrier = true; 614 bool need_write_barrier = true;
615 // Argument to NewContext is the function, which is in x1. 615 // Argument to NewContext is the function, which is in x1.
616 int slots = info()->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS; 616 int slots = info()->scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
617 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt; 617 Safepoint::DeoptMode deopt_mode = Safepoint::kNoLazyDeopt;
618 if (info()->scope()->is_script_scope()) { 618 if (info()->scope()->is_script_scope()) {
619 __ Mov(x10, Operand(info()->scope()->scope_info())); 619 __ Mov(x10, Operand(info()->scope()->scope_info()));
620 __ Push(x1, x10); 620 __ Push(x1, x10);
621 __ CallRuntime(Runtime::kNewScriptContext); 621 __ CallRuntime(Runtime::kNewScriptContext);
622 deopt_mode = Safepoint::kLazyDeopt; 622 deopt_mode = Safepoint::kLazyDeopt;
623 } else { 623 } else {
624 if (slots <= 624 if (slots <= ConstructorBuiltins::MaximumFunctionContextSlots()) {
625 ConstructorBuiltinsAssembler::MaximumFunctionContextSlots()) {
626 Callable callable = CodeFactory::FastNewFunctionContext( 625 Callable callable = CodeFactory::FastNewFunctionContext(
627 isolate(), info()->scope()->scope_type()); 626 isolate(), info()->scope()->scope_type());
628 __ Mov(FastNewFunctionContextDescriptor::SlotsRegister(), slots); 627 __ Mov(FastNewFunctionContextDescriptor::SlotsRegister(), slots);
629 __ Call(callable.code(), RelocInfo::CODE_TARGET); 628 __ Call(callable.code(), RelocInfo::CODE_TARGET);
630 // Result of the FastNewFunctionContext builtin is always in new space. 629 // Result of the FastNewFunctionContext builtin is always in new space.
631 need_write_barrier = false; 630 need_write_barrier = false;
632 } else { 631 } else {
633 __ Push(x1); 632 __ Push(x1);
634 __ Push(Smi::FromInt(info()->scope()->scope_type())); 633 __ Push(Smi::FromInt(info()->scope()->scope_type()));
635 __ CallRuntime(Runtime::kNewFunctionContext); 634 __ CallRuntime(Runtime::kNewFunctionContext);
(...skipping 4901 matching lines...) Expand 10 before | Expand all | Expand 10 after
5537 // Index is equal to negated out of object property index plus 1. 5536 // Index is equal to negated out of object property index plus 1.
5538 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5537 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5539 __ Ldr(result, FieldMemOperand(result, 5538 __ Ldr(result, FieldMemOperand(result,
5540 FixedArray::kHeaderSize - kPointerSize)); 5539 FixedArray::kHeaderSize - kPointerSize));
5541 __ Bind(deferred->exit()); 5540 __ Bind(deferred->exit());
5542 __ Bind(&done); 5541 __ Bind(&done);
5543 } 5542 }
5544 5543
5545 } // namespace internal 5544 } // namespace internal
5546 } // namespace v8 5545 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698