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

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: 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/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.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_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 2849 matching lines...) Expand 10 before | Expand all | Expand 10 after
3691 isolate->builtins()->OnStackReplacement()->entry(), 3683 isolate->builtins()->OnStackReplacement()->entry(),
3692 Assembler::target_address_at(call_target_address, unoptimized_code)); 3684 Assembler::target_address_at(call_target_address, unoptimized_code));
3693 return ON_STACK_REPLACEMENT; 3685 return ON_STACK_REPLACEMENT;
3694 } 3686 }
3695 3687
3696 3688
3697 } // namespace internal 3689 } // namespace internal
3698 } // namespace v8 3690 } // namespace v8
3699 3691
3700 #endif // V8_TARGET_ARCH_IA32 3692 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698