| Index: src/runtime/runtime-object.cc
|
| diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc
|
| index f0c83e0f24a75d11dae06894c6dd52599551d08b..624708714e5ab813a8c21ee66a452cda179e2ca9 100644
|
| --- a/src/runtime/runtime-object.cc
|
| +++ b/src/runtime/runtime-object.cc
|
| @@ -1461,5 +1461,15 @@ RUNTIME_FUNCTION(Runtime_ToObject) {
|
| isolate, NewTypeError(MessageTemplate::kUndefinedOrNullToObject));
|
| }
|
|
|
| +
|
| +RUNTIME_FUNCTION(Runtime_StrictEquals) {
|
| + SealHandleScope scope(isolate);
|
| + DCHECK_EQ(2, args.length());
|
| + CONVERT_ARG_CHECKED(Object, x, 0);
|
| + CONVERT_ARG_CHECKED(Object, y, 1);
|
| + // TODO(bmeurer): Change this at some point to return true/false instead.
|
| + return Smi::FromInt(x->StrictEquals(y) ? EQUAL : NOT_EQUAL);
|
| +}
|
| +
|
| } // namespace internal
|
| } // namespace v8
|
|
|