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

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

Issue 1818923002: [stubs] Split ToNumberStub into reusable subparts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE Created 4 years, 9 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/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X64_MACRO_ASSEMBLER_X64_H_ 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ 6 #define V8_X64_MACRO_ASSEMBLER_X64_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/base/flags.h" 10 #include "src/base/flags.h"
(...skipping 1180 matching lines...) Expand 10 before | Expand all | Expand 10 after
1191 shlp(reg, Immediate(kSmiShift - shift)); 1191 shlp(reg, Immediate(kSmiShift - shift));
1192 } else if (shift > kSmiShift) { 1192 } else if (shift > kSmiShift) {
1193 sarp(reg, Immediate(shift - kSmiShift)); 1193 sarp(reg, Immediate(shift - kSmiShift));
1194 } 1194 }
1195 andp(reg, Immediate(mask)); 1195 andp(reg, Immediate(mask));
1196 } 1196 }
1197 } 1197 }
1198 1198
1199 // Abort execution if argument is not a number, enabled via --debug-code. 1199 // Abort execution if argument is not a number, enabled via --debug-code.
1200 void AssertNumber(Register object); 1200 void AssertNumber(Register object);
1201 void AssertNotNumber(Register object);
1201 1202
1202 // Abort execution if argument is a smi, enabled via --debug-code. 1203 // Abort execution if argument is a smi, enabled via --debug-code.
1203 void AssertNotSmi(Register object); 1204 void AssertNotSmi(Register object);
1204 1205
1205 // Abort execution if argument is not a smi, enabled via --debug-code. 1206 // Abort execution if argument is not a smi, enabled via --debug-code.
1206 void AssertSmi(Register object); 1207 void AssertSmi(Register object);
1207 void AssertSmi(const Operand& object); 1208 void AssertSmi(const Operand& object);
1208 1209
1209 // Abort execution if a 64 bit register containing a 32 bit payload does not 1210 // Abort execution if a 64 bit register containing a 32 bit payload does not
1210 // have zeros in the top 32 bits, enabled via --debug-code. 1211 // have zeros in the top 32 bits, enabled via --debug-code.
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
1760 } \ 1761 } \
1761 masm-> 1762 masm->
1762 #else 1763 #else
1763 #define ACCESS_MASM(masm) masm-> 1764 #define ACCESS_MASM(masm) masm->
1764 #endif 1765 #endif
1765 1766
1766 } // namespace internal 1767 } // namespace internal
1767 } // namespace v8 1768 } // namespace v8
1768 1769
1769 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ 1770 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698