| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 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 794 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 | 805 |
| 806 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { | 806 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
| 807 // Call the runtime to declare the globals. | 807 // Call the runtime to declare the globals. |
| 808 __ mov(r3, Operand(pairs)); | 808 __ mov(r3, Operand(pairs)); |
| 809 __ LoadSmiLiteral(r2, Smi::FromInt(DeclareGlobalsFlags())); | 809 __ LoadSmiLiteral(r2, Smi::FromInt(DeclareGlobalsFlags())); |
| 810 __ Push(r3, r2); | 810 __ Push(r3, r2); |
| 811 __ CallRuntime(Runtime::kDeclareGlobals); | 811 __ CallRuntime(Runtime::kDeclareGlobals); |
| 812 // Return value is ignored. | 812 // Return value is ignored. |
| 813 } | 813 } |
| 814 | 814 |
| 815 void FullCodeGenerator::DeclareModules(Handle<FixedArray> descriptions) { | |
| 816 // Call the runtime to declare the modules. | |
| 817 __ Push(descriptions); | |
| 818 __ CallRuntime(Runtime::kDeclareModules); | |
| 819 // Return value is ignored. | |
| 820 } | |
| 821 | |
| 822 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { | 815 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { |
| 823 Comment cmnt(masm_, "[ SwitchStatement"); | 816 Comment cmnt(masm_, "[ SwitchStatement"); |
| 824 Breakable nested_statement(this, stmt); | 817 Breakable nested_statement(this, stmt); |
| 825 SetStatementPosition(stmt); | 818 SetStatementPosition(stmt); |
| 826 | 819 |
| 827 // Keep the switch value on the stack until a case matches. | 820 // Keep the switch value on the stack until a case matches. |
| 828 VisitForStackValue(stmt->tag()); | 821 VisitForStackValue(stmt->tag()); |
| 829 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); | 822 PrepareForBailoutForId(stmt->EntryId(), BailoutState::NO_REGISTERS); |
| 830 | 823 |
| 831 ZoneList<CaseClause*>* clauses = stmt->cases(); | 824 ZoneList<CaseClause*>* clauses = stmt->cases(); |
| (...skipping 2862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3694 DCHECK(kOSRBranchInstruction == br_instr); | 3687 DCHECK(kOSRBranchInstruction == br_instr); |
| 3695 | 3688 |
| 3696 DCHECK(interrupt_address == | 3689 DCHECK(interrupt_address == |
| 3697 isolate->builtins()->OnStackReplacement()->entry()); | 3690 isolate->builtins()->OnStackReplacement()->entry()); |
| 3698 return ON_STACK_REPLACEMENT; | 3691 return ON_STACK_REPLACEMENT; |
| 3699 } | 3692 } |
| 3700 | 3693 |
| 3701 } // namespace internal | 3694 } // namespace internal |
| 3702 } // namespace v8 | 3695 } // namespace v8 |
| 3703 #endif // V8_TARGET_ARCH_S390 | 3696 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |