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

Side by Side Diff: src/ppc/full-codegen-ppc.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/parser.cc ('k') | src/scopeinfo.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 7 #if V8_TARGET_ARCH_PPC
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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 VisitForStackValue(declaration->fun()); 883 VisitForStackValue(declaration->fun());
884 __ CallRuntime(Runtime::kDeclareLookupSlot, 4); 884 __ CallRuntime(Runtime::kDeclareLookupSlot, 4);
885 break; 885 break;
886 } 886 }
887 } 887 }
888 } 888 }
889 889
890 890
891 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) { 891 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) {
892 Variable* variable = declaration->proxy()->var(); 892 Variable* variable = declaration->proxy()->var();
893 Interface* interface = declaration->module()->interface(); 893 ModuleDescriptor* descriptor = declaration->module()->descriptor();
894 DCHECK(variable->location() == Variable::CONTEXT); 894 DCHECK(variable->location() == Variable::CONTEXT);
895 DCHECK(interface->IsFrozen()); 895 DCHECK(descriptor->IsFrozen());
896 896
897 Comment cmnt(masm_, "[ ModuleDeclaration"); 897 Comment cmnt(masm_, "[ ModuleDeclaration");
898 EmitDebugCheckDeclarationContext(variable); 898 EmitDebugCheckDeclarationContext(variable);
899 899
900 // Load instance object. 900 // Load instance object.
901 __ LoadContext(r4, scope_->ContextChainLength(scope_->ScriptScope())); 901 __ LoadContext(r4, scope_->ContextChainLength(scope_->ScriptScope()));
902 __ LoadP(r4, ContextOperand(r4, interface->Index())); 902 __ LoadP(r4, ContextOperand(r4, descriptor->Index()));
903 __ LoadP(r4, ContextOperand(r4, Context::EXTENSION_INDEX)); 903 __ LoadP(r4, ContextOperand(r4, Context::EXTENSION_INDEX));
904 904
905 // Assign it. 905 // Assign it.
906 __ StoreP(r4, ContextOperand(cp, variable->index()), r0); 906 __ StoreP(r4, ContextOperand(cp, variable->index()), r0);
907 // We know that we have written a module, which is not a smi. 907 // We know that we have written a module, which is not a smi.
908 __ RecordWriteContextSlot(cp, Context::SlotOffset(variable->index()), r4, r6, 908 __ RecordWriteContextSlot(cp, Context::SlotOffset(variable->index()), r4, r6,
909 kLRHasBeenSaved, kDontSaveFPRegs, 909 kLRHasBeenSaved, kDontSaveFPRegs,
910 EMIT_REMEMBERED_SET, OMIT_SMI_CHECK); 910 EMIT_REMEMBERED_SET, OMIT_SMI_CHECK);
911 PrepareForBailoutForId(declaration->proxy()->id(), NO_REGISTERS); 911 PrepareForBailoutForId(declaration->proxy()->id(), NO_REGISTERS);
912 912
(...skipping 4448 matching lines...) Expand 10 before | Expand all | Expand 10 after
5361 return ON_STACK_REPLACEMENT; 5361 return ON_STACK_REPLACEMENT;
5362 } 5362 }
5363 5363
5364 DCHECK(interrupt_address == 5364 DCHECK(interrupt_address ==
5365 isolate->builtins()->OsrAfterStackCheck()->entry()); 5365 isolate->builtins()->OsrAfterStackCheck()->entry());
5366 return OSR_AFTER_STACK_CHECK; 5366 return OSR_AFTER_STACK_CHECK;
5367 } 5367 }
5368 } 5368 }
5369 } // namespace v8::internal 5369 } // namespace v8::internal
5370 #endif // V8_TARGET_ARCH_PPC 5370 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/parser.cc ('k') | src/scopeinfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698