| 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 2852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |