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

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.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
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 #if V8_TARGET_ARCH_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after
831 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { 831 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
832 // Call the runtime to declare the globals. 832 // Call the runtime to declare the globals.
833 __ mov(r4, Operand(pairs)); 833 __ mov(r4, Operand(pairs));
834 __ LoadSmiLiteral(r3, Smi::FromInt(DeclareGlobalsFlags())); 834 __ LoadSmiLiteral(r3, Smi::FromInt(DeclareGlobalsFlags()));
835 __ Push(r4, r3); 835 __ Push(r4, r3);
836 __ CallRuntime(Runtime::kDeclareGlobals); 836 __ CallRuntime(Runtime::kDeclareGlobals);
837 // Return value is ignored. 837 // Return value is ignored.
838 } 838 }
839 839
840 840
841 void FullCodeGenerator::DeclareModules(Handle<FixedArray> descriptions) {
842 // Call the runtime to declare the modules.
843 __ Push(descriptions);
844 __ CallRuntime(Runtime::kDeclareModules);
845 // Return value is ignored.
846 }
847
848
849 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { 841 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
850 Comment cmnt(masm_, "[ SwitchStatement"); 842 Comment cmnt(masm_, "[ SwitchStatement");
851 Breakable nested_statement(this, stmt); 843 Breakable nested_statement(this, stmt);
852 SetStatementPosition(stmt); 844 SetStatementPosition(stmt);
853 845
854 // Keep the switch value on the stack until a case matches. 846 // Keep the switch value on the stack until a case matches.
855 VisitForStackValue(stmt->tag()); 847 VisitForStackValue(stmt->tag());
856 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); 848 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS);
857 849
858 ZoneList<CaseClause*>* clauses = stmt->cases(); 850 ZoneList<CaseClause*>* clauses = stmt->cases();
(...skipping 2923 matching lines...) Expand 10 before | Expand all | Expand 10 after
3782 3774
3783 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 3775 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
3784 3776
3785 DCHECK(interrupt_address == 3777 DCHECK(interrupt_address ==
3786 isolate->builtins()->OnStackReplacement()->entry()); 3778 isolate->builtins()->OnStackReplacement()->entry());
3787 return ON_STACK_REPLACEMENT; 3779 return ON_STACK_REPLACEMENT;
3788 } 3780 }
3789 } // namespace internal 3781 } // namespace internal
3790 } // namespace v8 3782 } // namespace v8
3791 #endif // V8_TARGET_ARCH_PPC 3783 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698