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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 XMMRegister scratch_reg, | 456 XMMRegister scratch_reg, |
457 Register result_reg); | 457 Register result_reg); |
458 | 458 |
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* lost_precision, Label* is_nan, Label* minus_zero, |
| 468 Label::Distance dst = Label::kFar); |
468 | 469 |
469 // Smi tagging support. | 470 // Smi tagging support. |
470 void SmiTag(Register reg) { | 471 void SmiTag(Register reg) { |
471 STATIC_ASSERT(kSmiTag == 0); | 472 STATIC_ASSERT(kSmiTag == 0); |
472 STATIC_ASSERT(kSmiTagSize == 1); | 473 STATIC_ASSERT(kSmiTagSize == 1); |
473 add(reg, reg); | 474 add(reg, reg); |
474 } | 475 } |
475 void SmiUntag(Register reg) { | 476 void SmiUntag(Register reg) { |
476 sar(reg, kSmiTagSize); | 477 sar(reg, kSmiTagSize); |
477 } | 478 } |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1102 } \ | 1103 } \ |
1103 masm-> | 1104 masm-> |
1104 #else | 1105 #else |
1105 #define ACCESS_MASM(masm) masm-> | 1106 #define ACCESS_MASM(masm) masm-> |
1106 #endif | 1107 #endif |
1107 | 1108 |
1108 | 1109 |
1109 } } // namespace v8::internal | 1110 } } // namespace v8::internal |
1110 | 1111 |
1111 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1112 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |