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

Side by Side Diff: src/crankshaft/s390/lithium-s390.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/s390/lithium-codegen-s390.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 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_S390_LITHIUM_S390_H_ 5 #ifndef V8_CRANKSHAFT_S390_LITHIUM_S390_H_
6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_H_ 6 #define V8_CRANKSHAFT_S390_LITHIUM_S390_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 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after
1690 }; 1690 };
1691 1691
1692 class LNumberUntagD final : public LTemplateInstruction<1, 1, 0> { 1692 class LNumberUntagD final : public LTemplateInstruction<1, 1, 0> {
1693 public: 1693 public:
1694 explicit LNumberUntagD(LOperand* value) { inputs_[0] = value; } 1694 explicit LNumberUntagD(LOperand* value) { inputs_[0] = value; }
1695 1695
1696 LOperand* value() { return inputs_[0]; } 1696 LOperand* value() { return inputs_[0]; }
1697 1697
1698 DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag") 1698 DECLARE_CONCRETE_INSTRUCTION(NumberUntagD, "double-untag")
1699 DECLARE_HYDROGEN_ACCESSOR(Change) 1699 DECLARE_HYDROGEN_ACCESSOR(Change)
1700
1701 bool truncating() { return hydrogen()->CanTruncateToNumber(); }
1700 }; 1702 };
1701 1703
1702 class LSmiUntag final : public LTemplateInstruction<1, 1, 0> { 1704 class LSmiUntag final : public LTemplateInstruction<1, 1, 0> {
1703 public: 1705 public:
1704 LSmiUntag(LOperand* value, bool needs_check) : needs_check_(needs_check) { 1706 LSmiUntag(LOperand* value, bool needs_check) : needs_check_(needs_check) {
1705 inputs_[0] = value; 1707 inputs_[0] = value;
1706 } 1708 }
1707 1709
1708 LOperand* value() { return inputs_[0]; } 1710 LOperand* value() { return inputs_[0]; }
1709 bool needs_check() const { return needs_check_; } 1711 bool needs_check() const { return needs_check_; }
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
2253 2255
2254 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2256 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2255 }; 2257 };
2256 2258
2257 #undef DECLARE_HYDROGEN_ACCESSOR 2259 #undef DECLARE_HYDROGEN_ACCESSOR
2258 #undef DECLARE_CONCRETE_INSTRUCTION 2260 #undef DECLARE_CONCRETE_INSTRUCTION
2259 } // namespace internal 2261 } // namespace internal
2260 } // namespace v8 2262 } // namespace v8
2261 2263
2262 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_ 2264 #endif // V8_CRANKSHAFT_S390_LITHIUM_S390_H_
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698