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

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

Issue 935723004: Rename Interface to ModuleDescriptor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/arm/full-codegen-arm.cc ('k') | src/ast.h » ('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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 VisitForStackValue(declaration->fun()); 947 VisitForStackValue(declaration->fun());
948 __ CallRuntime(Runtime::kDeclareLookupSlot, 4); 948 __ CallRuntime(Runtime::kDeclareLookupSlot, 4);
949 break; 949 break;
950 } 950 }
951 } 951 }
952 } 952 }
953 953
954 954
955 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) { 955 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) {
956 Variable* variable = declaration->proxy()->var(); 956 Variable* variable = declaration->proxy()->var();
957 Interface* interface = declaration->module()->interface(); 957 ModuleDescriptor* descriptor = declaration->module()->descriptor();
958 DCHECK(variable->location() == Variable::CONTEXT); 958 DCHECK(variable->location() == Variable::CONTEXT);
959 DCHECK(interface->IsFrozen()); 959 DCHECK(descriptor->IsFrozen());
960 960
961 Comment cmnt(masm_, "[ ModuleDeclaration"); 961 Comment cmnt(masm_, "[ ModuleDeclaration");
962 EmitDebugCheckDeclarationContext(variable); 962 EmitDebugCheckDeclarationContext(variable);
963 963
964 // Load instance object. 964 // Load instance object.
965 __ LoadContext(x1, scope_->ContextChainLength(scope_->ScriptScope())); 965 __ LoadContext(x1, scope_->ContextChainLength(scope_->ScriptScope()));
966 __ Ldr(x1, ContextMemOperand(x1, interface->Index())); 966 __ Ldr(x1, ContextMemOperand(x1, descriptor->Index()));
967 __ Ldr(x1, ContextMemOperand(x1, Context::EXTENSION_INDEX)); 967 __ Ldr(x1, ContextMemOperand(x1, Context::EXTENSION_INDEX));
968 968
969 // Assign it. 969 // Assign it.
970 __ Str(x1, ContextMemOperand(cp, variable->index())); 970 __ Str(x1, ContextMemOperand(cp, variable->index()));
971 // We know that we have written a module, which is not a smi. 971 // We know that we have written a module, which is not a smi.
972 __ RecordWriteContextSlot(cp, 972 __ RecordWriteContextSlot(cp,
973 Context::SlotOffset(variable->index()), 973 Context::SlotOffset(variable->index()),
974 x1, 974 x1,
975 x3, 975 x3,
976 kLRHasBeenSaved, 976 kLRHasBeenSaved,
(...skipping 4504 matching lines...) Expand 10 before | Expand all | Expand 10 after
5481 return previous_; 5481 return previous_;
5482 } 5482 }
5483 5483
5484 5484
5485 #undef __ 5485 #undef __
5486 5486
5487 5487
5488 } } // namespace v8::internal 5488 } } // namespace v8::internal
5489 5489
5490 #endif // V8_TARGET_ARCH_ARM64 5490 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698