OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
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 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
829 break; | 829 break; |
830 } | 830 } |
831 } | 831 } |
832 } | 832 } |
833 | 833 |
834 | 834 |
835 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { | 835 void FullCodeGenerator::DeclareGlobals(Handle<FixedArray> pairs) { |
836 // Call the runtime to declare the globals. | 836 // Call the runtime to declare the globals. |
837 __ mov(r4, Operand(pairs)); | 837 __ mov(r4, Operand(pairs)); |
838 __ LoadSmiLiteral(r3, Smi::FromInt(DeclareGlobalsFlags())); | 838 __ LoadSmiLiteral(r3, Smi::FromInt(DeclareGlobalsFlags())); |
839 __ EmitLoadTypeFeedbackVector(r0); | 839 __ EmitLoadTypeFeedbackVector(r5); |
840 __ Push(r4, r3, r0); | 840 __ Push(r4, r3, r5); |
841 __ CallRuntime(Runtime::kDeclareGlobals); | 841 __ CallRuntime(Runtime::kDeclareGlobals); |
842 // Return value is ignored. | 842 // Return value is ignored. |
843 } | 843 } |
844 | 844 |
845 | 845 |
846 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { | 846 void FullCodeGenerator::VisitSwitchStatement(SwitchStatement* stmt) { |
847 Comment cmnt(masm_, "[ SwitchStatement"); | 847 Comment cmnt(masm_, "[ SwitchStatement"); |
848 Breakable nested_statement(this, stmt); | 848 Breakable nested_statement(this, stmt); |
849 SetStatementPosition(stmt); | 849 SetStatementPosition(stmt); |
850 | 850 |
(...skipping 2915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3766 | 3766 |
3767 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 3767 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
3768 | 3768 |
3769 DCHECK(interrupt_address == | 3769 DCHECK(interrupt_address == |
3770 isolate->builtins()->OnStackReplacement()->entry()); | 3770 isolate->builtins()->OnStackReplacement()->entry()); |
3771 return ON_STACK_REPLACEMENT; | 3771 return ON_STACK_REPLACEMENT; |
3772 } | 3772 } |
3773 } // namespace internal | 3773 } // namespace internal |
3774 } // namespace v8 | 3774 } // namespace v8 |
3775 #endif // V8_TARGET_ARCH_PPC | 3775 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |