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_X64 | 5 #if V8_TARGET_ARCH_X64 |
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 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
827 | 827 |
828 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { | 828 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
829 // Call the runtime to declare the globals. | 829 // Call the runtime to declare the globals. |
830 __ Push(pairs); | 830 __ Push(pairs); |
831 __ Push(Smi::FromInt(DeclareGlobalsFlags())); | 831 __ Push(Smi::FromInt(DeclareGlobalsFlags())); |
832 __ CallRuntime(Runtime::kDeclareGlobals); | 832 __ CallRuntime(Runtime::kDeclareGlobals); |
833 // Return value is ignored. | 833 // Return value is ignored. |
834 } | 834 } |
835 | 835 |
836 | 836 |
837 void FullCodeGenerator::DeclareModules(Handle<FixedArray> descriptions) { | |
838 // Call the runtime to declare the modules. | |
839 __ Push(descriptions); | |
840 __ CallRuntime(Runtime::kDeclareModules); | |
841 // Return value is ignored. | |
842 } | |
843 | |
844 | |
845 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { | 837 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { |
846 Comment cmnt(masm_, "[ SwitchStatement"); | 838 Comment cmnt(masm_, "[ SwitchStatement"); |
847 Breakable nested_statement(this, stmt); | 839 Breakable nested_statement(this, stmt); |
848 SetStatementPosition(stmt); | 840 SetStatementPosition(stmt); |
849 | 841 |
850 // Keep the switch value on the stack until a case matches. | 842 // Keep the switch value on the stack until a case matches. |
851 VisitForStackValue(stmt->tag()); | 843 VisitForStackValue(stmt->tag()); |
852 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); | 844 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); |
853 | 845 |
854 ZoneList<CaseClause*>* clauses = stmt->cases(); | 846 ZoneList<CaseClause*>* clauses = stmt->cases(); |
(...skipping 2826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3681 DCHECK_EQ( | 3673 DCHECK_EQ( |
3682 isolate->builtins()->OnStackReplacement()->entry(), | 3674 isolate->builtins()->OnStackReplacement()->entry(), |
3683 Assembler::target_address_at(call_target_address, unoptimized_code)); | 3675 Assembler::target_address_at(call_target_address, unoptimized_code)); |
3684 return ON_STACK_REPLACEMENT; | 3676 return ON_STACK_REPLACEMENT; |
3685 } | 3677 } |
3686 | 3678 |
3687 } // namespace internal | 3679 } // namespace internal |
3688 } // namespace v8 | 3680 } // namespace v8 |
3689 | 3681 |
3690 #endif // V8_TARGET_ARCH_X64 | 3682 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |