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_CRANKSHAFT_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1864 explicit LNumberUntagD(LOperand* value, LOperand* temp) { | 1864 explicit LNumberUntagD(LOperand* value, LOperand* temp) { |
1865 inputs_[0] = value; | 1865 inputs_[0] = value; |
1866 temps_[0] = temp; | 1866 temps_[0] = temp; |
1867 } | 1867 } |
1868 | 1868 |
1869 LOperand* value() { return inputs_[0]; } | 1869 LOperand* value() { return inputs_[0]; } |
1870 LOperand* temp() { return temps_[0]; } | 1870 LOperand* temp() { return temps_[0]; } |
1871 | 1871 |
1872 DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag") | 1872 DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag") |
1873 DECLARE_HYDROGEN_ACCESSOR(Change); | 1873 DECLARE_HYDROGEN_ACCESSOR(Change); |
| 1874 |
| 1875 bool truncating() { return hydrogen()->CanTruncateToNumber(); } |
1874 }; | 1876 }; |
1875 | 1877 |
1876 | 1878 |
1877 class LSmiUntag final : public LTemplateInstruction<1, 1, 0> { | 1879 class LSmiUntag final : public LTemplateInstruction<1, 1, 0> { |
1878 public: | 1880 public: |
1879 LSmiUntag(LOperand* value, bool needs_check) | 1881 LSmiUntag(LOperand* value, bool needs_check) |
1880 : needs_check_(needs_check) { | 1882 : needs_check_(needs_check) { |
1881 inputs_[0] = value; | 1883 inputs_[0] = value; |
1882 } | 1884 } |
1883 | 1885 |
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2499 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2501 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2500 }; | 2502 }; |
2501 | 2503 |
2502 #undef DECLARE_HYDROGEN_ACCESSOR | 2504 #undef DECLARE_HYDROGEN_ACCESSOR |
2503 #undef DECLARE_CONCRETE_INSTRUCTION | 2505 #undef DECLARE_CONCRETE_INSTRUCTION |
2504 | 2506 |
2505 } // namespace internal | 2507 } // namespace internal |
2506 } // namespace v8 | 2508 } // namespace v8 |
2507 | 2509 |
2508 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2510 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
OLD | NEW |