OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |