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

Side by Side Diff: src/crankshaft/hydrogen-instructions.h

Issue 1680783002: [intrinsics] Kill the %_IsMinusZero intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 months 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/hydrogen.cc ('k') | src/crankshaft/hydrogen-instructions.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 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_HYDROGEN_INSTRUCTIONS_H_ 5 #ifndef V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_
6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ 6 #define V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_
7 7
8 #include <cstring> 8 #include <cstring>
9 #include <iosfwd> 9 #include <iosfwd>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 V(CheckInstanceType) \ 72 V(CheckInstanceType) \
73 V(CheckMaps) \ 73 V(CheckMaps) \
74 V(CheckMapValue) \ 74 V(CheckMapValue) \
75 V(CheckSmi) \ 75 V(CheckSmi) \
76 V(CheckValue) \ 76 V(CheckValue) \
77 V(ClampToUint8) \ 77 V(ClampToUint8) \
78 V(ClassOfTestAndBranch) \ 78 V(ClassOfTestAndBranch) \
79 V(CompareNumericAndBranch) \ 79 V(CompareNumericAndBranch) \
80 V(CompareHoleAndBranch) \ 80 V(CompareHoleAndBranch) \
81 V(CompareGeneric) \ 81 V(CompareGeneric) \
82 V(CompareMinusZeroAndBranch) \
83 V(CompareObjectEqAndBranch) \ 82 V(CompareObjectEqAndBranch) \
84 V(CompareMap) \ 83 V(CompareMap) \
85 V(Constant) \ 84 V(Constant) \
86 V(ConstructDouble) \ 85 V(ConstructDouble) \
87 V(Context) \ 86 V(Context) \
88 V(DebugBreak) \ 87 V(DebugBreak) \
89 V(DeclareGlobals) \ 88 V(DeclareGlobals) \
90 V(Deoptimize) \ 89 V(Deoptimize) \
91 V(Div) \ 90 V(Div) \
92 V(DoubleBits) \ 91 V(DoubleBits) \
(...skipping 4245 matching lines...) Expand 10 before | Expand all | Expand 10 after
4338 HCompareHoleAndBranch(HValue* value, 4337 HCompareHoleAndBranch(HValue* value,
4339 HBasicBlock* true_target = NULL, 4338 HBasicBlock* true_target = NULL,
4340 HBasicBlock* false_target = NULL) 4339 HBasicBlock* false_target = NULL)
4341 : HUnaryControlInstruction(value, true_target, false_target) { 4340 : HUnaryControlInstruction(value, true_target, false_target) {
4342 SetFlag(kFlexibleRepresentation); 4341 SetFlag(kFlexibleRepresentation);
4343 SetFlag(kAllowUndefinedAsNaN); 4342 SetFlag(kAllowUndefinedAsNaN);
4344 } 4343 }
4345 }; 4344 };
4346 4345
4347 4346
4348 class HCompareMinusZeroAndBranch final : public HUnaryControlInstruction {
4349 public:
4350 DECLARE_INSTRUCTION_FACTORY_P1(HCompareMinusZeroAndBranch, HValue*);
4351
4352 void InferRepresentation(HInferRepresentationPhase* h_infer) override;
4353
4354 Representation RequiredInputRepresentation(int index) override {
4355 return representation();
4356 }
4357
4358 bool KnownSuccessorBlock(HBasicBlock** block) override;
4359
4360 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch)
4361
4362 private:
4363 explicit HCompareMinusZeroAndBranch(HValue* value)
4364 : HUnaryControlInstruction(value, NULL, NULL) {
4365 }
4366 };
4367
4368
4369 class HCompareObjectEqAndBranch : public HTemplateControlInstruction<2, 2> { 4347 class HCompareObjectEqAndBranch : public HTemplateControlInstruction<2, 2> {
4370 public: 4348 public:
4371 DECLARE_INSTRUCTION_FACTORY_P2(HCompareObjectEqAndBranch, HValue*, HValue*); 4349 DECLARE_INSTRUCTION_FACTORY_P2(HCompareObjectEqAndBranch, HValue*, HValue*);
4372 DECLARE_INSTRUCTION_FACTORY_P4(HCompareObjectEqAndBranch, HValue*, HValue*, 4350 DECLARE_INSTRUCTION_FACTORY_P4(HCompareObjectEqAndBranch, HValue*, HValue*,
4373 HBasicBlock*, HBasicBlock*); 4351 HBasicBlock*, HBasicBlock*);
4374 4352
4375 bool KnownSuccessorBlock(HBasicBlock** block) override; 4353 bool KnownSuccessorBlock(HBasicBlock** block) override;
4376 4354
4377 static const int kNoKnownSuccessorIndex = -1; 4355 static const int kNoKnownSuccessorIndex = -1;
4378 int known_successor_index() const { return known_successor_index_; } 4356 int known_successor_index() const { return known_successor_index_; }
(...skipping 3422 matching lines...) Expand 10 before | Expand all | Expand 10 after
7801 7779
7802 7780
7803 7781
7804 #undef DECLARE_INSTRUCTION 7782 #undef DECLARE_INSTRUCTION
7805 #undef DECLARE_CONCRETE_INSTRUCTION 7783 #undef DECLARE_CONCRETE_INSTRUCTION
7806 7784
7807 } // namespace internal 7785 } // namespace internal
7808 } // namespace v8 7786 } // namespace v8
7809 7787
7810 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_ 7788 #endif // V8_CRANKSHAFT_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/crankshaft/hydrogen-instructions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698