Index: src/code-stub-assembler.h |
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h |
index 1b83c04718be354ad657e2abfe4263258c3fd37f..141da16e24e1aa7e7887a2f9c9cc44949f250967 100644 |
--- a/src/code-stub-assembler.h |
+++ b/src/code-stub-assembler.h |
@@ -578,6 +578,8 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler { |
int base_allocation_size, |
compiler::Node* allocation_site); |
+ compiler::Node* TryTaggedToFloat64(compiler::Node* value, |
+ Label* if_valueisnotnumber); |
compiler::Node* TruncateTaggedToFloat64(compiler::Node* context, |
compiler::Node* value); |
compiler::Node* TruncateTaggedToWord32(compiler::Node* context, |
@@ -1104,6 +1106,14 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler { |
compiler::Node* StrictEqual(ResultMode mode, compiler::Node* lhs, |
compiler::Node* rhs, compiler::Node* context); |
+ // ECMA#sec-samevalue |
+ // Similar to StrictEqual except that NaNs are treated as equal and minus zero |
+ // differs from positive zero. |
+ // Unlike Equal and StrictEqual, returns a value suitable for use in Branch |
+ // instructions, e.g. Branch(SameValue(...), &label). |
+ compiler::Node* SameValue(compiler::Node* lhs, compiler::Node* rhs, |
+ compiler::Node* context); |
+ |
compiler::Node* HasProperty( |
compiler::Node* object, compiler::Node* key, compiler::Node* context, |
Runtime::FunctionId fallback_runtime_function_id = Runtime::kHasProperty); |