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