Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.cc

Issue 2290603004: Merged: PPC/s390: Fix register mapping and imm16 issue (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5.4
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/s390/builtins-s390.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/builtins/s390/builtins-s390.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698