| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_COMPILER_JS_INTRINSIC_LOWERING_H_ | 5 #ifndef V8_COMPILER_JS_INTRINSIC_LOWERING_H_ |
| 6 #define V8_COMPILER_JS_INTRINSIC_LOWERING_H_ | 6 #define V8_COMPILER_JS_INTRINSIC_LOWERING_H_ |
| 7 | 7 |
| 8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
| 9 #include "src/compiler/graph-reducer.h" | 9 #include "src/compiler/graph-reducer.h" |
| 10 #include "src/compiler/simplified-operator.h" | 10 #include "src/compiler/simplified-operator.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 Reduction Reduce(Node* node) final; | 28 Reduction Reduce(Node* node) final; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 Reduction ReduceConstructDouble(Node* node); | 31 Reduction ReduceConstructDouble(Node* node); |
| 32 Reduction ReduceDeoptimizeNow(Node* node); | 32 Reduction ReduceDeoptimizeNow(Node* node); |
| 33 Reduction ReduceDoubleHi(Node* node); | 33 Reduction ReduceDoubleHi(Node* node); |
| 34 Reduction ReduceDoubleLo(Node* node); | 34 Reduction ReduceDoubleLo(Node* node); |
| 35 Reduction ReduceHeapObjectGetMap(Node* node); | 35 Reduction ReduceHeapObjectGetMap(Node* node); |
| 36 Reduction ReduceIncrementStatsCounter(Node* node); | 36 Reduction ReduceIncrementStatsCounter(Node* node); |
| 37 Reduction ReduceIsMinusZero(Node* node); |
| 37 Reduction ReduceIsInstanceType(Node* node, InstanceType instance_type); | 38 Reduction ReduceIsInstanceType(Node* node, InstanceType instance_type); |
| 38 Reduction ReduceIsNonNegativeSmi(Node* node); | 39 Reduction ReduceIsNonNegativeSmi(Node* node); |
| 39 Reduction ReduceIsSmi(Node* node); | 40 Reduction ReduceIsSmi(Node* node); |
| 40 Reduction ReduceJSValueGetValue(Node* node); | 41 Reduction ReduceJSValueGetValue(Node* node); |
| 41 Reduction ReduceMapGetInstanceType(Node* node); | 42 Reduction ReduceMapGetInstanceType(Node* node); |
| 42 Reduction ReduceMathClz32(Node* node); | 43 Reduction ReduceMathClz32(Node* node); |
| 43 Reduction ReduceMathFloor(Node* node); | 44 Reduction ReduceMathFloor(Node* node); |
| 44 Reduction ReduceMathSqrt(Node* node); | 45 Reduction ReduceMathSqrt(Node* node); |
| 45 Reduction ReduceSeqStringGetChar(Node* node, String::Encoding encoding); | 46 Reduction ReduceSeqStringGetChar(Node* node, String::Encoding encoding); |
| 46 Reduction ReduceSeqStringSetChar(Node* node, String::Encoding encoding); | 47 Reduction ReduceSeqStringSetChar(Node* node, String::Encoding encoding); |
| 47 Reduction ReduceStringGetLength(Node* node); | 48 Reduction ReduceStringGetLength(Node* node); |
| 48 Reduction ReduceUnLikely(Node* node, BranchHint hint); | 49 Reduction ReduceUnLikely(Node* node, BranchHint hint); |
| 49 Reduction ReduceValueOf(Node* node); | 50 Reduction ReduceValueOf(Node* node); |
| 51 Reduction ReduceFixedArraySet(Node* node); |
| 52 Reduction ReduceGetTypeFeedbackVector(Node* node); |
| 50 | 53 |
| 51 Reduction Change(Node* node, const Operator* op); | 54 Reduction Change(Node* node, const Operator* op); |
| 55 Reduction Change(Node* node, const Operator* op, Node* a, Node* b); |
| 52 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c); | 56 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c); |
| 53 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr); | 57 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr); |
| 54 | 58 |
| 55 Graph* graph() const; | 59 Graph* graph() const; |
| 56 JSGraph* jsgraph() const { return jsgraph_; } | 60 JSGraph* jsgraph() const { return jsgraph_; } |
| 57 CommonOperatorBuilder* common() const; | 61 CommonOperatorBuilder* common() const; |
| 58 MachineOperatorBuilder* machine() const; | 62 MachineOperatorBuilder* machine() const; |
| 59 SimplifiedOperatorBuilder* simplified() { return &simplified_; } | 63 SimplifiedOperatorBuilder* simplified() { return &simplified_; } |
| 60 | 64 |
| 61 JSGraph* jsgraph_; | 65 JSGraph* jsgraph_; |
| 62 SimplifiedOperatorBuilder simplified_; | 66 SimplifiedOperatorBuilder simplified_; |
| 63 }; | 67 }; |
| 64 | 68 |
| 65 } // namespace compiler | 69 } // namespace compiler |
| 66 } // namespace internal | 70 } // namespace internal |
| 67 } // namespace v8 | 71 } // namespace v8 |
| 68 | 72 |
| 69 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ | 73 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ |
| OLD | NEW |