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

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

Issue 1816423002: X87: [stubs] Split ToNumberStub into reusable subparts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/x87/code-stubs-x87.cc ('k') | src/x87/macro-assembler-x87.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_X87_MACRO_ASSEMBLER_X87_H_ 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 if (shift < kSmiTagSize) { 524 if (shift < kSmiTagSize) {
525 shl(reg, kSmiTagSize - shift); 525 shl(reg, kSmiTagSize - shift);
526 } else if (shift > kSmiTagSize) { 526 } else if (shift > kSmiTagSize) {
527 sar(reg, shift - kSmiTagSize); 527 sar(reg, shift - kSmiTagSize);
528 } 528 }
529 and_(reg, Immediate(mask)); 529 and_(reg, Immediate(mask));
530 } 530 }
531 531
532 // Abort execution if argument is not a number, enabled via --debug-code. 532 // Abort execution if argument is not a number, enabled via --debug-code.
533 void AssertNumber(Register object); 533 void AssertNumber(Register object);
534 void AssertNotNumber(Register object);
534 535
535 // Abort execution if argument is not a smi, enabled via --debug-code. 536 // Abort execution if argument is not a smi, enabled via --debug-code.
536 void AssertSmi(Register object); 537 void AssertSmi(Register object);
537 538
538 // Abort execution if argument is a smi, enabled via --debug-code. 539 // Abort execution if argument is a smi, enabled via --debug-code.
539 void AssertNotSmi(Register object); 540 void AssertNotSmi(Register object);
540 541
541 // Abort execution if argument is not a string, enabled via --debug-code. 542 // Abort execution if argument is not a string, enabled via --debug-code.
542 void AssertString(Register object); 543 void AssertString(Register object);
543 544
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 } \ 1023 } \
1023 masm-> 1024 masm->
1024 #else 1025 #else
1025 #define ACCESS_MASM(masm) masm-> 1026 #define ACCESS_MASM(masm) masm->
1026 #endif 1027 #endif
1027 1028
1028 } // namespace internal 1029 } // namespace internal
1029 } // namespace v8 1030 } // namespace v8
1030 1031
1031 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ 1032 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « src/x87/code-stubs-x87.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698