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

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

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