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

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

Issue 583963002: [turbofan] IA: Uint32ToFloat64 supports mem operand. (Closed) Base URL: https://github.com/v8/v8.git@bleeding_edge
Patch Set: Add tests Created 6 years, 2 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/compiler/x64/instruction-selector-x64-unittest.cc ('k') | src/ia32/macro-assembler-ia32.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_IA32_MACRO_ASSEMBLER_IA32_H_ 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/frames.h" 9 #include "src/frames.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 } 477 }
478 478
479 // Modifies the register even if it does not contain a Smi! 479 // Modifies the register even if it does not contain a Smi!
480 void SmiUntag(Register reg, Label* is_smi) { 480 void SmiUntag(Register reg, Label* is_smi) {
481 STATIC_ASSERT(kSmiTagSize == 1); 481 STATIC_ASSERT(kSmiTagSize == 1);
482 sar(reg, kSmiTagSize); 482 sar(reg, kSmiTagSize);
483 STATIC_ASSERT(kSmiTag == 0); 483 STATIC_ASSERT(kSmiTag == 0);
484 j(not_carry, is_smi); 484 j(not_carry, is_smi);
485 } 485 }
486 486
487 void LoadUint32(XMMRegister dst, Register src); 487 void LoadUint32(XMMRegister dst, Register src) {
488 LoadUint32(dst, Operand(src));
489 }
490 void LoadUint32(XMMRegister dst, const Operand& src);
488 491
489 // Jump the register contains a smi. 492 // Jump the register contains a smi.
490 inline void JumpIfSmi(Register value, 493 inline void JumpIfSmi(Register value,
491 Label* smi_label, 494 Label* smi_label,
492 Label::Distance distance = Label::kFar) { 495 Label::Distance distance = Label::kFar) {
493 test(value, Immediate(kSmiTagMask)); 496 test(value, Immediate(kSmiTagMask));
494 j(zero, smi_label, distance); 497 j(zero, smi_label, distance);
495 } 498 }
496 // Jump if the operand is a smi. 499 // Jump if the operand is a smi.
497 inline void JumpIfSmi(Operand value, 500 inline void JumpIfSmi(Operand value,
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
1102 } \ 1105 } \
1103 masm-> 1106 masm->
1104 #else 1107 #else
1105 #define ACCESS_MASM(masm) masm-> 1108 #define ACCESS_MASM(masm) masm->
1106 #endif 1109 #endif
1107 1110
1108 1111
1109 } } // namespace v8::internal 1112 } } // namespace v8::internal
1110 1113
1111 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1114 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64-unittest.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698