Index: src/runtime/runtime-object.cc |
diff --git a/src/runtime/runtime-object.cc b/src/runtime/runtime-object.cc |
index c0be628bbc0e4d4fc8b5cd7076dc1a03b5413e9e..7c409d06852c38bea8fadaf0c017a1b66e5520ae 100644 |
--- a/src/runtime/runtime-object.cc |
+++ b/src/runtime/runtime-object.cc |
@@ -1177,32 +1177,6 @@ RUNTIME_FUNCTION(Runtime_Compare) { |
} |
-// TODO(bmeurer): Kill this special wrapper and use TF compatible LessThan, |
-// GreaterThan, etc. which return true or false. |
-RUNTIME_FUNCTION(Runtime_Compare_Strong) { |
- HandleScope scope(isolate); |
- DCHECK_EQ(3, args.length()); |
- CONVERT_ARG_HANDLE_CHECKED(Object, x, 0); |
- CONVERT_ARG_HANDLE_CHECKED(Object, y, 1); |
- CONVERT_ARG_HANDLE_CHECKED(Object, ncr, 2); |
- Maybe<ComparisonResult> result = Object::Compare(x, y, Strength::STRONG); |
- if (result.IsJust()) { |
- switch (result.FromJust()) { |
- case ComparisonResult::kLessThan: |
- return Smi::FromInt(LESS); |
- case ComparisonResult::kEqual: |
- return Smi::FromInt(EQUAL); |
- case ComparisonResult::kGreaterThan: |
- return Smi::FromInt(GREATER); |
- case ComparisonResult::kUndefined: |
- return *ncr; |
- } |
- UNREACHABLE(); |
- } |
- return isolate->heap()->exception(); |
-} |
- |
- |
RUNTIME_FUNCTION(Runtime_InstanceOf) { |
// ECMA-262, section 11.8.6, page 54. |
HandleScope shs(isolate); |