diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-08-01 08:38:30 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-08-01 12:53:56 +0200 |
commit | 2dcc3665abf57c3607cebffdeeca062f5894885d (patch) | |
tree | 4f560748132edcfb4c22d6f967a7e80d23d7ea2c /deps/v8/src/runtime/runtime-numbers.cc | |
parent | 1ee47d550c6de132f06110aa13eceb7551d643b3 (diff) | |
download | android-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.tar.gz android-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.tar.bz2 android-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.zip |
deps: update V8 to 7.6.303.28
PR-URL: https://github.com/nodejs/node/pull/28016
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'deps/v8/src/runtime/runtime-numbers.cc')
-rw-r--r-- | deps/v8/src/runtime/runtime-numbers.cc | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/deps/v8/src/runtime/runtime-numbers.cc b/deps/v8/src/runtime/runtime-numbers.cc index edceef20a5..e496880b71 100644 --- a/deps/v8/src/runtime/runtime-numbers.cc +++ b/deps/v8/src/runtime/runtime-numbers.cc @@ -2,12 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "src/arguments-inl.h" #include "src/base/bits.h" -#include "src/bootstrapper.h" -#include "src/counters.h" +#include "src/execution/arguments-inl.h" +#include "src/execution/isolate-inl.h" #include "src/heap/heap-inl.h" // For ToBoolean. TODO(jkummerow): Drop. -#include "src/isolate-inl.h" +#include "src/init/bootstrapper.h" +#include "src/logging/counters.h" #include "src/runtime/runtime-utils.h" namespace v8 { @@ -78,21 +78,6 @@ RUNTIME_FUNCTION(Runtime_NumberToString) { return *isolate->factory()->NumberToString(number); } -// Compare two Smis x, y as if they were converted to strings and then -// compared lexicographically. Returns: -// -1 if x < y -// 0 if x == y -// 1 if x > y -// TODO(szuend): Remove once the call-site in src/js/array.js is gone. -RUNTIME_FUNCTION(Runtime_SmiLexicographicCompare) { - SealHandleScope shs(isolate); - DCHECK_EQ(2, args.length()); - CONVERT_ARG_CHECKED(Smi, x_value, 0); - CONVERT_ARG_CHECKED(Smi, y_value, 1); - - return Object(Smi::LexicographicCompare(isolate, x_value, y_value)); -} - RUNTIME_FUNCTION(Runtime_MaxSmi) { SealHandleScope shs(isolate); DCHECK_EQ(0, args.length()); @@ -104,7 +89,7 @@ RUNTIME_FUNCTION(Runtime_IsSmi) { SealHandleScope shs(isolate); DCHECK_EQ(1, args.length()); CONVERT_ARG_CHECKED(Object, obj, 0); - return isolate->heap()->ToBoolean(obj->IsSmi()); + return isolate->heap()->ToBoolean(obj.IsSmi()); } |