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

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

Issue 2081733004: Rip out most of our outdated modules implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 5 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/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { 869 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
870 // Call the runtime to declare the globals. 870 // Call the runtime to declare the globals.
871 __ li(a1, Operand(pairs)); 871 __ li(a1, Operand(pairs));
872 __ li(a0, Operand(Smi::FromInt(DeclareGlobalsFlags()))); 872 __ li(a0, Operand(Smi::FromInt(DeclareGlobalsFlags())));
873 __ Push(a1, a0); 873 __ Push(a1, a0);
874 __ CallRuntime(Runtime::kDeclareGlobals); 874 __ CallRuntime(Runtime::kDeclareGlobals);
875 // Return value is ignored. 875 // Return value is ignored.
876 } 876 }
877 877
878 878
879 void FullCodeGenerator::DeclareModules(Handle<FixedArray> descriptions) {
880 // Call the runtime to declare the modules.
881 __ Push(descriptions);
882 __ CallRuntime(Runtime::kDeclareModules);
883 // Return value is ignored.
884 }
885
886
887 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { 879 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
888 Comment cmnt(masm_, "[ SwitchStatement"); 880 Comment cmnt(masm_, "[ SwitchStatement");
889 Breakable nested_statement(this, stmt); 881 Breakable nested_statement(this, stmt);
890 SetStatementPosition(stmt); 882 SetStatementPosition(stmt);
891 883
892 // Keep the switch value on the stack until a case matches. 884 // Keep the switch value on the stack until a case matches.
893 VisitForStackValue(stmt->tag()); 885 VisitForStackValue(stmt->tag());
894 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); 886 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS);
895 887
896 ZoneList<CaseClause*>* clauses = stmt->cases(); 888 ZoneList<CaseClause*>* clauses = stmt->cases();
(...skipping 2914 matching lines...) Expand 10 before | Expand all | Expand 10 after
3811 reinterpret_cast<uint64_t>( 3803 reinterpret_cast<uint64_t>(
3812 isolate->builtins()->OnStackReplacement()->entry())); 3804 isolate->builtins()->OnStackReplacement()->entry()));
3813 return ON_STACK_REPLACEMENT; 3805 return ON_STACK_REPLACEMENT;
3814 } 3806 }
3815 3807
3816 3808
3817 } // namespace internal 3809 } // namespace internal
3818 } // namespace v8 3810 } // namespace v8
3819 3811
3820 #endif // V8_TARGET_ARCH_MIPS64 3812 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698