Index: src/runtime/runtime-numbers.cc |
diff --git a/src/runtime/runtime-numbers.cc b/src/runtime/runtime-numbers.cc |
index bcdd89f144d8989f681a312cff57efcbc06e9070..e4eae3a040e6e6010c7048f8b0a40659b41108af 100644 |
--- a/src/runtime/runtime-numbers.cc |
+++ b/src/runtime/runtime-numbers.cc |
@@ -9,12 +9,6 @@ |
#include "src/bootstrapper.h" |
#include "src/codegen.h" |
- |
-#ifndef _STLP_VENDOR_CSTD |
-// STLPort doesn't import isless into the std namespace. |
-using std::isless; |
-#endif |
- |
namespace v8 { |
namespace internal { |
@@ -232,20 +226,6 @@ RUNTIME_FUNCTION(Runtime_NumberImul) { |
} |
-RUNTIME_FUNCTION(Runtime_NumberCompare) { |
- SealHandleScope shs(isolate); |
- DCHECK(args.length() == 3); |
- |
- CONVERT_DOUBLE_ARG_CHECKED(x, 0); |
- CONVERT_DOUBLE_ARG_CHECKED(y, 1); |
- CONVERT_ARG_HANDLE_CHECKED(Object, uncomparable_result, 2) |
- if (std::isnan(x) || std::isnan(y)) return *uncomparable_result; |
- if (x == y) return Smi::FromInt(EQUAL); |
- if (isless(x, y)) return Smi::FromInt(LESS); |
- return Smi::FromInt(GREATER); |
-} |
- |
- |
// Compare two Smis as if they were converted to strings and then |
// compared lexicographically. |
RUNTIME_FUNCTION(Runtime_SmiLexicographicCompare) { |