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

Side by Side Diff: src/x64/full-codegen-x64.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/scopes.cc ('k') | src/x87/full-codegen-x87.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X64 7 #if V8_TARGET_ARCH_X64
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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 VisitForStackValue(declaration->fun()); 910 VisitForStackValue(declaration->fun());
911 __ CallRuntime(Runtime::kDeclareLookupSlot, 4); 911 __ CallRuntime(Runtime::kDeclareLookupSlot, 4);
912 break; 912 break;
913 } 913 }
914 } 914 }
915 } 915 }
916 916
917 917
918 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) { 918 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) {
919 Variable* variable = declaration->proxy()->var(); 919 Variable* variable = declaration->proxy()->var();
920 Interface* interface = declaration->module()->interface(); 920 ModuleDescriptor* descriptor = declaration->module()->descriptor();
921 DCHECK(variable->location() == Variable::CONTEXT); 921 DCHECK(variable->location() == Variable::CONTEXT);
922 DCHECK(interface->IsFrozen()); 922 DCHECK(descriptor->IsFrozen());
923 923
924 Comment cmnt(masm_, "[ ModuleDeclaration"); 924 Comment cmnt(masm_, "[ ModuleDeclaration");
925 EmitDebugCheckDeclarationContext(variable); 925 EmitDebugCheckDeclarationContext(variable);
926 926
927 // Load instance object. 927 // Load instance object.
928 __ LoadContext(rax, scope_->ContextChainLength(scope_->ScriptScope())); 928 __ LoadContext(rax, scope_->ContextChainLength(scope_->ScriptScope()));
929 __ movp(rax, ContextOperand(rax, interface->Index())); 929 __ movp(rax, ContextOperand(rax, descriptor->Index()));
930 __ movp(rax, ContextOperand(rax, Context::EXTENSION_INDEX)); 930 __ movp(rax, ContextOperand(rax, Context::EXTENSION_INDEX));
931 931
932 // Assign it. 932 // Assign it.
933 __ movp(ContextOperand(rsi, variable->index()), rax); 933 __ movp(ContextOperand(rsi, variable->index()), rax);
934 // We know that we have written a module, which is not a smi. 934 // We know that we have written a module, which is not a smi.
935 __ RecordWriteContextSlot(rsi, 935 __ RecordWriteContextSlot(rsi,
936 Context::SlotOffset(variable->index()), 936 Context::SlotOffset(variable->index()),
937 rax, 937 rax,
938 rcx, 938 rcx,
939 kDontSaveFPRegs, 939 kDontSaveFPRegs,
(...skipping 4447 matching lines...) Expand 10 before | Expand all | Expand 10 after
5387 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5387 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5388 Assembler::target_address_at(call_target_address, 5388 Assembler::target_address_at(call_target_address,
5389 unoptimized_code)); 5389 unoptimized_code));
5390 return OSR_AFTER_STACK_CHECK; 5390 return OSR_AFTER_STACK_CHECK;
5391 } 5391 }
5392 5392
5393 5393
5394 } } // namespace v8::internal 5394 } } // namespace v8::internal
5395 5395
5396 #endif // V8_TARGET_ARCH_X64 5396 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/scopes.cc ('k') | src/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698