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

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

Issue 2449373002: PPC/s390: [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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/s390/lithium-codegen-s390.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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 1803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1814 1814
1815 1815
1816 class LNumberUntagD final : public LTemplateInstruction<1, 1, 0> { 1816 class LNumberUntagD final : public LTemplateInstruction<1, 1, 0> {
1817 public: 1817 public:
1818 explicit LNumberUntagD(LOperand* value) { inputs_[0] = value; } 1818 explicit LNumberUntagD(LOperand* value) { inputs_[0] = value; }
1819 1819
1820 LOperand* value() { return inputs_[0]; } 1820 LOperand* value() { return inputs_[0]; }
1821 1821
1822 DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag") 1822 DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
1823 DECLARE_HYDROGEN_ACCESSOR(Change) 1823 DECLARE_HYDROGEN_ACCESSOR(Change)
1824
1825 bool truncating() { return hydrogen()->CanTruncateToNumber(); }
1824 }; 1826 };
1825 1827
1826 1828
1827 class LSmiUntag final : public LTemplateInstruction<1, 1, 0> { 1829 class LSmiUntag final : public LTemplateInstruction<1, 1, 0> {
1828 public: 1830 public:
1829 LSmiUntag(LOperand* value, bool needs_check) : needs_check_(needs_check) { 1831 LSmiUntag(LOperand* value, bool needs_check) : needs_check_(needs_check) {
1830 inputs_[0] = value; 1832 inputs_[0] = value;
1831 } 1833 }
1832 1834
1833 LOperand* value() { return inputs_[0]; } 1835 LOperand* value() { return inputs_[0]; }
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
2405 2407
2406 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2408 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2407 }; 2409 };
2408 2410
2409 #undef DECLARE_HYDROGEN_ACCESSOR 2411 #undef DECLARE_HYDROGEN_ACCESSOR
2410 #undef DECLARE_CONCRETE_INSTRUCTION 2412 #undef DECLARE_CONCRETE_INSTRUCTION
2411 } // namespace internal 2413 } // namespace internal
2412 } // namespace v8 2414 } // namespace v8
2413 2415
2414 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ 2416 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/s390/lithium-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698