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

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

Issue 2081733004: Rip out most of our outdated modules implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Leftovers. Created 4 years, 6 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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 814
815 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { 815 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
816 // Call the runtime to declare the globals. 816 // Call the runtime to declare the globals.
817 __ Push(pairs); 817 __ Push(pairs);
818 __ Push(Smi::FromInt(DeclareGlobalsFlags())); 818 __ Push(Smi::FromInt(DeclareGlobalsFlags()));
819 __ CallRuntime(Runtime::kDeclareGlobals); 819 __ CallRuntime(Runtime::kDeclareGlobals);
820 // Return value is ignored. 820 // Return value is ignored.
821 } 821 }
822 822
823 823
824 void FullCodeGenerator::DeclareModules(Handle<FixedArray> descriptions) {
825 // Call the runtime to declare the modules.
826 __ Push(descriptions);
827 __ CallRuntime(Runtime::kDeclareModules);
828 // Return value is ignored.
829 }
830
831
832 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { 824 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
833 Comment cmnt(masm_, "[ SwitchStatement"); 825 Comment cmnt(masm_, "[ SwitchStatement");
834 Breakable nested_statement(this, stmt); 826 Breakable nested_statement(this, stmt);
835 SetStatementPosition(stmt); 827 SetStatementPosition(stmt);
836 828
837 // Keep the switch value on the stack until a case matches. 829 // Keep the switch value on the stack until a case matches.
838 VisitForStackValue(stmt->tag()); 830 VisitForStackValue(stmt->tag());
839 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); 831 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS);
840 832
841 ZoneList<CaseClause*>* clauses = stmt->cases(); 833 ZoneList<CaseClause*>* clauses = stmt->cases();
(...skipping 2852 matching lines...) Expand 10 before | Expand all | Expand 10 after
3694 isolate->builtins()->OnStackReplacement()->entry(), 3686 isolate->builtins()->OnStackReplacement()->entry(),
3695 Assembler::target_address_at(call_target_address, unoptimized_code)); 3687 Assembler::target_address_at(call_target_address, unoptimized_code));
3696 return ON_STACK_REPLACEMENT; 3688 return ON_STACK_REPLACEMENT;
3697 } 3689 }
3698 3690
3699 3691
3700 } // namespace internal 3692 } // namespace internal
3701 } // namespace v8 3693 } // namespace v8
3702 3694
3703 #endif // V8_TARGET_ARCH_IA32 3695 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698