| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index 4643462e24a87683e49aeaf67504f7c4eff9b0f7..3e028c94c6efe8ecc2e0fe87bac780a4bbca0963 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -1132,6 +1132,24 @@ RUNTIME_FUNCTION(Runtime_StrictEquals) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(Runtime_SameValue) {
|
| + SealHandleScope scope(isolate);
|
| + DCHECK_EQ(2, args.length());
|
| + CONVERT_ARG_CHECKED(Object, x, 0);
|
| + CONVERT_ARG_CHECKED(Object, y, 1);
|
| + return isolate->heap()->ToBoolean(x->SameValue(y));
|
| +}
|
| +
|
| +
|
| +RUNTIME_FUNCTION(Runtime_SameValueZero) {
|
| + SealHandleScope scope(isolate);
|
| + DCHECK_EQ(2, args.length());
|
| + CONVERT_ARG_CHECKED(Object, x, 0);
|
| + CONVERT_ARG_CHECKED(Object, y, 1);
|
| + return isolate->heap()->ToBoolean(x->SameValueZero(y));
|
| +}
|
| +
|
| +
|
| // TODO(bmeurer): Kill this special wrapper and use TF compatible LessThan,
|
| // GreaterThan, etc. which return true or false.
|
| RUNTIME_FUNCTION(Runtime_Compare) {
|
|
|