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

Side by Side Diff: src/crankshaft/x87/lithium-x87.h

Issue 2456503003: X87: [crankshaft] Refactor kAllowUndefinedAsNaN to kTruncatingToNumber. (Closed)
Patch Set: Created 4 years, 1 month 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/crankshaft/x87/lithium-codegen-x87.cc ('k') | no next file » | 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_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
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
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_
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698