OLD | NEW |
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 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
459 void SlowTruncateToI(Register result_reg, Register input_reg, | 459 void SlowTruncateToI(Register result_reg, Register input_reg, |
460 int offset = HeapNumber::kValueOffset - kHeapObjectTag); | 460 int offset = HeapNumber::kValueOffset - kHeapObjectTag); |
461 | 461 |
462 void TruncateHeapNumberToI(Register result_reg, Register input_reg); | 462 void TruncateHeapNumberToI(Register result_reg, Register input_reg); |
463 void TruncateDoubleToI(Register result_reg, XMMRegister input_reg); | 463 void TruncateDoubleToI(Register result_reg, XMMRegister input_reg); |
464 | 464 |
465 void DoubleToI(Register result_reg, XMMRegister input_reg, | 465 void DoubleToI(Register result_reg, XMMRegister input_reg, |
466 XMMRegister scratch, MinusZeroMode minus_zero_mode, | 466 XMMRegister scratch, MinusZeroMode minus_zero_mode, |
467 Label* conversion_failed, Label::Distance dst = Label::kFar); | 467 Label* conversion_failed, Label::Distance dst = Label::kFar); |
468 | 468 |
469 void TaggedToI(Register result_reg, Register input_reg, XMMRegister temp, | |
470 MinusZeroMode minus_zero_mode, Label* lost_precision); | |
471 | |
472 // Smi tagging support. | 469 // Smi tagging support. |
473 void SmiTag(Register reg) { | 470 void SmiTag(Register reg) { |
474 STATIC_ASSERT(kSmiTag == 0); | 471 STATIC_ASSERT(kSmiTag == 0); |
475 STATIC_ASSERT(kSmiTagSize == 1); | 472 STATIC_ASSERT(kSmiTagSize == 1); |
476 add(reg, reg); | 473 add(reg, reg); |
477 } | 474 } |
478 void SmiUntag(Register reg) { | 475 void SmiUntag(Register reg) { |
479 sar(reg, kSmiTagSize); | 476 sar(reg, kSmiTagSize); |
480 } | 477 } |
481 | 478 |
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1105 } \ | 1102 } \ |
1106 masm-> | 1103 masm-> |
1107 #else | 1104 #else |
1108 #define ACCESS_MASM(masm) masm-> | 1105 #define ACCESS_MASM(masm) masm-> |
1109 #endif | 1106 #endif |
1110 | 1107 |
1111 | 1108 |
1112 } } // namespace v8::internal | 1109 } } // namespace v8::internal |
1113 | 1110 |
1114 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1111 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |