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

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

Issue 918373002: Strip Interface class of most of its logic, make it all about Module exports (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Merged to trunk 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
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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 VisitForStackValue(declaration->fun()); 923 VisitForStackValue(declaration->fun());
924 __ CallRuntime(Runtime::kDeclareLookupSlot, 4); 924 __ CallRuntime(Runtime::kDeclareLookupSlot, 4);
925 break; 925 break;
926 } 926 }
927 } 927 }
928 } 928 }
929 929
930 930
931 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) { 931 void FullCodeGenerator::VisitModuleDeclaration(ModuleDeclaration* declaration) {
932 Variable* variable = declaration->proxy()->var(); 932 Variable* variable = declaration->proxy()->var();
933 Interface* interface = declaration->module()->interface();
933 DCHECK(variable->location() == Variable::CONTEXT); 934 DCHECK(variable->location() == Variable::CONTEXT);
934 DCHECK(variable->interface()->IsFrozen()); 935 DCHECK(interface->IsFrozen());
935 936
936 Comment cmnt(masm_, "[ ModuleDeclaration"); 937 Comment cmnt(masm_, "[ ModuleDeclaration");
937 EmitDebugCheckDeclarationContext(variable); 938 EmitDebugCheckDeclarationContext(variable);
938 939
939 // Load instance object. 940 // Load instance object.
940 __ LoadContext(a1, scope_->ContextChainLength(scope_->ScriptScope())); 941 __ LoadContext(a1, scope_->ContextChainLength(scope_->ScriptScope()));
941 __ lw(a1, ContextOperand(a1, variable->interface()->Index())); 942 __ lw(a1, ContextOperand(a1, interface->Index()));
942 __ lw(a1, ContextOperand(a1, Context::EXTENSION_INDEX)); 943 __ lw(a1, ContextOperand(a1, Context::EXTENSION_INDEX));
943 944
944 // Assign it. 945 // Assign it.
945 __ sw(a1, ContextOperand(cp, variable->index())); 946 __ sw(a1, ContextOperand(cp, variable->index()));
946 // We know that we have written a module, which is not a smi. 947 // We know that we have written a module, which is not a smi.
947 __ RecordWriteContextSlot(cp, 948 __ RecordWriteContextSlot(cp,
948 Context::SlotOffset(variable->index()), 949 Context::SlotOffset(variable->index()),
949 a1, 950 a1,
950 a3, 951 a3,
951 kRAHasBeenSaved, 952 kRAHasBeenSaved,
(...skipping 4471 matching lines...) Expand 10 before | Expand all | Expand 10 after
5423 Assembler::target_address_at(pc_immediate_load_address)) == 5424 Assembler::target_address_at(pc_immediate_load_address)) ==
5424 reinterpret_cast<uint32_t>( 5425 reinterpret_cast<uint32_t>(
5425 isolate->builtins()->OsrAfterStackCheck()->entry())); 5426 isolate->builtins()->OsrAfterStackCheck()->entry()));
5426 return OSR_AFTER_STACK_CHECK; 5427 return OSR_AFTER_STACK_CHECK;
5427 } 5428 }
5428 5429
5429 5430
5430 } } // namespace v8::internal 5431 } } // namespace v8::internal
5431 5432
5432 #endif // V8_TARGET_ARCH_MIPS 5433 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« src/interface.cc ('K') | « src/messages.js ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698