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 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
804 PrepareForBailoutForId(proxy->id(), BailoutState::NO_REGISTERS); | 804 PrepareForBailoutForId(proxy->id(), BailoutState::NO_REGISTERS); |
805 break; | 805 break; |
806 } | 806 } |
807 } | 807 } |
808 } | 808 } |
809 | 809 |
810 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { | 810 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
811 // Call the runtime to declare the globals. | 811 // Call the runtime to declare the globals. |
812 __ mov(r3, Operand(pairs)); | 812 __ mov(r3, Operand(pairs)); |
813 __ LoadSmiLiteral(r2, Smi::FromInt(DeclareGlobalsFlags())); | 813 __ LoadSmiLiteral(r2, Smi::FromInt(DeclareGlobalsFlags())); |
814 __ EmitLoadTypeFeedbackVector(r0); | 814 __ EmitLoadTypeFeedbackVector(r4); |
815 __ Push(r3, r2, r0); | 815 __ Push(r3, r2, r4); |
816 __ CallRuntime(Runtime::kDeclareGlobals); | 816 __ CallRuntime(Runtime::kDeclareGlobals); |
817 // Return value is ignored. | 817 // Return value is ignored. |
818 } | 818 } |
819 | 819 |
820 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { | 820 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { |
821 Comment cmnt(masm_, "[ SwitchStatement"); | 821 Comment cmnt(masm_, "[ SwitchStatement"); |
822 Breakable nested_statement(this, stmt); | 822 Breakable nested_statement(this, stmt); |
823 SetStatementPosition(stmt); | 823 SetStatementPosition(stmt); |
824 | 824 |
825 // Keep the switch value on the stack until a case matches. | 825 // Keep the switch value on the stack until a case matches. |
(...skipping 2854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3680 DCHECK(kOSRBranchInstruction == br_instr); | 3680 DCHECK(kOSRBranchInstruction == br_instr); |
3681 | 3681 |
3682 DCHECK(interrupt_address == | 3682 DCHECK(interrupt_address == |
3683 isolate->builtins()->OnStackReplacement()->entry()); | 3683 isolate->builtins()->OnStackReplacement()->entry()); |
3684 return ON_STACK_REPLACEMENT; | 3684 return ON_STACK_REPLACEMENT; |
3685 } | 3685 } |
3686 | 3686 |
3687 } // namespace internal | 3687 } // namespace internal |
3688 } // namespace v8 | 3688 } // namespace v8 |
3689 #endif // V8_TARGET_ARCH_S390 | 3689 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |