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

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

Issue 1648353002: PPC: [builtins] Make Math.max and Math.min fast by default. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/ppc/builtins-ppc.cc ('k') | src/ppc/macro-assembler-ppc.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 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_ 5 #ifndef V8_PPC_MACRO_ASSEMBLER_PPC_H_
6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_ 6 #define V8_PPC_MACRO_ASSEMBLER_PPC_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 Condition cond = al); 140 Condition cond = al);
141 void Call(Handle<Code> code, RelocInfo::Mode rmode = RelocInfo::CODE_TARGET, 141 void Call(Handle<Code> code, RelocInfo::Mode rmode = RelocInfo::CODE_TARGET,
142 TypeFeedbackId ast_id = TypeFeedbackId::None(), 142 TypeFeedbackId ast_id = TypeFeedbackId::None(),
143 Condition cond = al); 143 Condition cond = al);
144 void Ret() { blr(); } 144 void Ret() { blr(); }
145 void Ret(Condition cond, CRegister cr = cr7) { bclr(cond, cr); } 145 void Ret(Condition cond, CRegister cr = cr7) { bclr(cond, cr); }
146 146
147 // Emit code to discard a non-negative number of pointer-sized elements 147 // Emit code to discard a non-negative number of pointer-sized elements
148 // from the stack, clobbering only the sp register. 148 // from the stack, clobbering only the sp register.
149 void Drop(int count); 149 void Drop(int count);
150 void Drop(Register count, Register scratch = r0);
150 151
151 void Ret(int drop) { 152 void Ret(int drop) {
152 Drop(drop); 153 Drop(drop);
153 blr(); 154 blr();
154 } 155 }
155 156
156 void Call(Label* target); 157 void Call(Label* target);
157 158
158 // Emit call to the code we are currently generating. 159 // Emit call to the code we are currently generating.
159 void CallSelf() { 160 void CallSelf() {
(...skipping 1428 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 #define ACCESS_MASM(masm) \ 1589 #define ACCESS_MASM(masm) \
1589 masm->stop(__FILE_LINE__); \ 1590 masm->stop(__FILE_LINE__); \
1590 masm-> 1591 masm->
1591 #else 1592 #else
1592 #define ACCESS_MASM(masm) masm-> 1593 #define ACCESS_MASM(masm) masm->
1593 #endif 1594 #endif
1594 } // namespace internal 1595 } // namespace internal
1595 } // namespace v8 1596 } // namespace v8
1596 1597
1597 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_ 1598 #endif // V8_PPC_MACRO_ASSEMBLER_PPC_H_
OLDNEW
« no previous file with comments | « src/ppc/builtins-ppc.cc ('k') | src/ppc/macro-assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698