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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.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_X87 5 #if V8_TARGET_ARCH_X87
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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 811
812 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { 812 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) {
813 // Call the runtime to declare the globals. 813 // Call the runtime to declare the globals.
814 __ Push(pairs); 814 __ Push(pairs);
815 __ Push(Smi::FromInt(DeclareGlobalsFlags())); 815 __ Push(Smi::FromInt(DeclareGlobalsFlags()));
816 __ CallRuntime(Runtime::kDeclareGlobals); 816 __ CallRuntime(Runtime::kDeclareGlobals);
817 // Return value is ignored. 817 // Return value is ignored.
818 } 818 }
819 819
820 820
821 void FullCodeGenerator::DeclareModules(Handle<FixedArray> descriptions) {
822 // Call the runtime to declare the modules.
823 __ Push(descriptions);
824 __ CallRuntime(Runtime::kDeclareModules);
825 // Return value is ignored.
826 }
827
828
829 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { 821 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) {
830 Comment cmnt(masm_, "[ SwitchStatement"); 822 Comment cmnt(masm_, "[ SwitchStatement");
831 Breakable nested_statement(this, stmt); 823 Breakable nested_statement(this, stmt);
832 SetStatementPosition(stmt); 824 SetStatementPosition(stmt);
833 825
834 // Keep the switch value on the stack until a case matches. 826 // Keep the switch value on the stack until a case matches.
835 VisitForStackValue(stmt->tag()); 827 VisitForStackValue(stmt->tag());
836 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); 828 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS);
837 829
838 ZoneList<CaseClause*>* clauses = stmt->cases(); 830 ZoneList<CaseClause*>* clauses = stmt->cases();
(...skipping 2849 matching lines...) Expand 10 before | Expand all | Expand 10 after
3688 isolate->builtins()->OnStackReplacement()->entry(), 3680 isolate->builtins()->OnStackReplacement()->entry(),
3689 Assembler::target_address_at(call_target_address, unoptimized_code)); 3681 Assembler::target_address_at(call_target_address, unoptimized_code));
3690 return ON_STACK_REPLACEMENT; 3682 return ON_STACK_REPLACEMENT;
3691 } 3683 }
3692 3684
3693 3685
3694 } // namespace internal 3686 } // namespace internal
3695 } // namespace v8 3687 } // namespace v8
3696 3688
3697 #endif // V8_TARGET_ARCH_X87 3689 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698