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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.cc

Issue 1962723002: [turbofan] Implement top-level lookup slot declaration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Skip timeouts. Created 4 years, 7 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/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-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 #if V8_TARGET_ARCH_ARM64 5 #if V8_TARGET_ARCH_ARM64
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 // must not destroy the current value. 803 // must not destroy the current value.
804 if (hole_init) { 804 if (hole_init) {
805 __ LoadRoot(x0, Heap::kTheHoleValueRootIndex); 805 __ LoadRoot(x0, Heap::kTheHoleValueRootIndex);
806 __ Push(x2, x0); 806 __ Push(x2, x0);
807 } else { 807 } else {
808 // Pushing 0 (xzr) indicates no initial value. 808 // Pushing 0 (xzr) indicates no initial value.
809 __ Push(x2, xzr); 809 __ Push(x2, xzr);
810 } 810 }
811 __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes())); 811 __ Push(Smi::FromInt(variable->DeclarationPropertyAttributes()));
812 __ CallRuntime(Runtime::kDeclareLookupSlot); 812 __ CallRuntime(Runtime::kDeclareLookupSlot);
813 PrepareForBailoutForId(proxy->id(), NO_REGISTERS);
813 break; 814 break;
814 } 815 }
815 } 816 }
816 } 817 }
817 818
818 819
819 void FullCodeGenerator::VisitFunctionDeclaration( 820 void FullCodeGenerator::VisitFunctionDeclaration(
820 FunctionDeclaration* declaration) { 821 FunctionDeclaration* declaration) {
821 VariableProxy* proxy = declaration->proxy(); 822 VariableProxy* proxy = declaration->proxy();
822 Variable* variable = proxy->var(); 823 Variable* variable = proxy->var();
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
860 } 861 }
861 862
862 case VariableLocation::LOOKUP: { 863 case VariableLocation::LOOKUP: {
863 Comment cmnt(masm_, "[ Function Declaration"); 864 Comment cmnt(masm_, "[ Function Declaration");
864 __ Mov(x2, Operand(variable->name())); 865 __ Mov(x2, Operand(variable->name()));
865 PushOperand(x2); 866 PushOperand(x2);
866 // Push initial value for function declaration. 867 // Push initial value for function declaration.
867 VisitForStackValue(declaration->fun()); 868 VisitForStackValue(declaration->fun());
868 PushOperand(Smi::FromInt(variable->DeclarationPropertyAttributes())); 869 PushOperand(Smi::FromInt(variable->DeclarationPropertyAttributes()));
869 CallRuntimeWithOperands(Runtime::kDeclareLookupSlot); 870 CallRuntimeWithOperands(Runtime::kDeclareLookupSlot);
871 PrepareForBailoutForId(proxy->id(), NO_REGISTERS);
870 break; 872 break;
871 } 873 }
872 } 874 }
873 } 875 }
874 876
875 877
876 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { 878 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
877 // Call the runtime to declare the globals. 879 // Call the runtime to declare the globals.
878 __ Mov(x11, Operand(pairs)); 880 __ Mov(x11, Operand(pairs));
879 Register flags = xzr; 881 Register flags = xzr;
(...skipping 3111 matching lines...) Expand 10 before | Expand all | Expand 10 after
3991 } 3993 }
3992 3994
3993 return INTERRUPT; 3995 return INTERRUPT;
3994 } 3996 }
3995 3997
3996 3998
3997 } // namespace internal 3999 } // namespace internal
3998 } // namespace v8 4000 } // namespace v8
3999 4001
4000 #endif // V8_TARGET_ARCH_ARM64 4002 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698