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 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1827 void FullCodeGenerator::PopOperands(Register reg1, Register reg2) { | 1827 void FullCodeGenerator::PopOperands(Register reg1, Register reg2) { |
1828 OperandStackDepthDecrement(2); | 1828 OperandStackDepthDecrement(2); |
1829 __ Pop(reg1, reg2); | 1829 __ Pop(reg1, reg2); |
1830 } | 1830 } |
1831 | 1831 |
1832 void FullCodeGenerator::EmitOperandStackDepthCheck() { | 1832 void FullCodeGenerator::EmitOperandStackDepthCheck() { |
1833 if (FLAG_debug_code) { | 1833 if (FLAG_debug_code) { |
1834 int expected_diff = StandardFrameConstants::kFixedFrameSizeFromFp + | 1834 int expected_diff = StandardFrameConstants::kFixedFrameSizeFromFp + |
1835 operand_stack_depth_ * kPointerSize; | 1835 operand_stack_depth_ * kPointerSize; |
1836 __ sub(r3, fp, sp); | 1836 __ sub(r3, fp, sp); |
1837 __ cmpi(r3, Operand(expected_diff)); | 1837 __ mov(ip, Operand(expected_diff)); |
| 1838 __ cmp(r3, ip); |
1838 __ Assert(eq, kUnexpectedStackDepth); | 1839 __ Assert(eq, kUnexpectedStackDepth); |
1839 } | 1840 } |
1840 } | 1841 } |
1841 | 1842 |
1842 void FullCodeGenerator::EmitCreateIteratorResult(bool done) { | 1843 void FullCodeGenerator::EmitCreateIteratorResult(bool done) { |
1843 Label allocate, done_allocate; | 1844 Label allocate, done_allocate; |
1844 | 1845 |
1845 __ Allocate(JSIteratorResult::kSize, r3, r5, r6, &allocate, | 1846 __ Allocate(JSIteratorResult::kSize, r3, r5, r6, &allocate, |
1846 NO_ALLOCATION_FLAGS); | 1847 NO_ALLOCATION_FLAGS); |
1847 __ b(&done_allocate); | 1848 __ b(&done_allocate); |
(...skipping 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3737 | 3738 |
3738 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); | 3739 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); |
3739 | 3740 |
3740 DCHECK(interrupt_address == | 3741 DCHECK(interrupt_address == |
3741 isolate->builtins()->OnStackReplacement()->entry()); | 3742 isolate->builtins()->OnStackReplacement()->entry()); |
3742 return ON_STACK_REPLACEMENT; | 3743 return ON_STACK_REPLACEMENT; |
3743 } | 3744 } |
3744 } // namespace internal | 3745 } // namespace internal |
3745 } // namespace v8 | 3746 } // namespace v8 |
3746 #endif // V8_TARGET_ARCH_PPC | 3747 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |