OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_CODE_STUB_ASSEMBLER_H_ | 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_ |
6 #define V8_CODE_STUB_ASSEMBLER_H_ | 6 #define V8_CODE_STUB_ASSEMBLER_H_ |
7 | 7 |
8 #include <functional> | 8 #include <functional> |
9 | 9 |
10 #include "src/compiler/code-assembler.h" | 10 #include "src/compiler/code-assembler.h" |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1206 void BranchIfNumericRelationalComparison(RelationalComparisonMode mode, | 1206 void BranchIfNumericRelationalComparison(RelationalComparisonMode mode, |
1207 Node* lhs, Node* rhs, Label* if_true, | 1207 Node* lhs, Node* rhs, Label* if_true, |
1208 Label* if_false); | 1208 Label* if_false); |
1209 | 1209 |
1210 void GotoUnlessNumberLessThan(Node* lhs, Node* rhs, Label* if_false); | 1210 void GotoUnlessNumberLessThan(Node* lhs, Node* rhs, Label* if_false); |
1211 | 1211 |
1212 enum ResultMode { kDontNegateResult, kNegateResult }; | 1212 enum ResultMode { kDontNegateResult, kNegateResult }; |
1213 | 1213 |
1214 Node* Equal(ResultMode mode, Node* lhs, Node* rhs, Node* context); | 1214 Node* Equal(ResultMode mode, Node* lhs, Node* rhs, Node* context); |
1215 | 1215 |
1216 Node* StrictEqual(ResultMode mode, Node* lhs, Node* rhs, Node* context); | 1216 Node* StrictEqual(Node* lhs, Node* rhs, Node* context); |
1217 | 1217 |
1218 // ECMA#sec-samevalue | 1218 // ECMA#sec-samevalue |
1219 // Similar to StrictEqual except that NaNs are treated as equal and minus zero | 1219 // Similar to StrictEqual except that NaNs are treated as equal and minus zero |
1220 // differs from positive zero. | 1220 // differs from positive zero. |
1221 // Unlike Equal and StrictEqual, returns a value suitable for use in Branch | 1221 // Unlike Equal and StrictEqual, returns a value suitable for use in Branch |
1222 // instructions, e.g. Branch(SameValue(...), &label). | 1222 // instructions, e.g. Branch(SameValue(...), &label). |
1223 Node* SameValue(Node* lhs, Node* rhs, Node* context); | 1223 Node* SameValue(Node* lhs, Node* rhs, Node* context); |
1224 | 1224 |
1225 Node* HasProperty( | 1225 Node* HasProperty( |
1226 Node* object, Node* key, Node* context, | 1226 Node* object, Node* key, Node* context, |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1422 } | 1422 } |
1423 #else | 1423 #else |
1424 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1424 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1425 #endif | 1425 #endif |
1426 | 1426 |
1427 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1427 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1428 | 1428 |
1429 } // namespace internal | 1429 } // namespace internal |
1430 } // namespace v8 | 1430 } // namespace v8 |
1431 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1431 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |