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

Side by Side Diff: src/ppc/macro-assembler-ppc.cc

Issue 1483933002: Deprecate unused RelocInfo::CONSTRUCT_CALL mode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/ppc/builtins-ppc.cc ('k') | src/x64/builtins-x64.cc » ('j') | 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 #include <assert.h> // For assert 5 #include <assert.h> // For assert
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #if V8_TARGET_ARCH_PPC 8 #if V8_TARGET_ARCH_PPC
9 9
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 45
46 46
47 void MacroAssembler::Jump(intptr_t target, RelocInfo::Mode rmode, 47 void MacroAssembler::Jump(intptr_t target, RelocInfo::Mode rmode,
48 Condition cond, CRegister cr) { 48 Condition cond, CRegister cr) {
49 Label skip; 49 Label skip;
50 50
51 if (cond != al) b(NegateCondition(cond), &skip, cr); 51 if (cond != al) b(NegateCondition(cond), &skip, cr);
52 52
53 DCHECK(rmode == RelocInfo::CODE_TARGET || rmode == RelocInfo::RUNTIME_ENTRY || 53 DCHECK(rmode == RelocInfo::CODE_TARGET || rmode == RelocInfo::RUNTIME_ENTRY ||
54 rmode == RelocInfo::CONSTRUCT_CALL); 54 rmode == RelocInfo::CODE_TARGET);
55 55
56 mov(ip, Operand(target, rmode)); 56 mov(ip, Operand(target, rmode));
57 mtctr(ip); 57 mtctr(ip);
58 bctr(); 58 bctr();
59 59
60 bind(&skip); 60 bind(&skip);
61 } 61 }
62 62
63 63
64 void MacroAssembler::Jump(Address target, RelocInfo::Mode rmode, Condition cond, 64 void MacroAssembler::Jump(Address target, RelocInfo::Mode rmode, Condition cond,
(...skipping 4338 matching lines...) Expand 10 before | Expand all | Expand 10 after
4403 } 4403 }
4404 if (mag.shift > 0) srawi(result, result, mag.shift); 4404 if (mag.shift > 0) srawi(result, result, mag.shift);
4405 ExtractBit(r0, dividend, 31); 4405 ExtractBit(r0, dividend, 31);
4406 add(result, result, r0); 4406 add(result, result, r0);
4407 } 4407 }
4408 4408
4409 } // namespace internal 4409 } // namespace internal
4410 } // namespace v8 4410 } // namespace v8
4411 4411
4412 #endif // V8_TARGET_ARCH_PPC 4412 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/ppc/builtins-ppc.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698