diff options
Diffstat (limited to 'deps/v8/src/builtins/builtins-trace.cc')
-rw-r--r-- | deps/v8/src/builtins/builtins-trace.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/deps/v8/src/builtins/builtins-trace.cc b/deps/v8/src/builtins/builtins-trace.cc index cd0f5a77d0a..c2b799412f9 100644 --- a/deps/v8/src/builtins/builtins-trace.cc +++ b/deps/v8/src/builtins/builtins-trace.cc @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "src/api.h" -#include "src/builtins/builtins-utils.h" +#include "src/api-inl.h" +#include "src/builtins/builtins-utils-inl.h" #include "src/builtins/builtins.h" #include "src/counters.h" #include "src/json-stringifier.h" @@ -38,10 +38,11 @@ class MaybeUtf8 { } } else { Local<v8::String> local = Utils::ToLocal(string); - len = local->Utf8Length(); + auto* v8_isolate = reinterpret_cast<v8::Isolate*>(isolate); + len = local->Utf8Length(v8_isolate); AllocateSufficientSpace(len); if (len > 0) { - local->WriteUtf8(reinterpret_cast<char*>(buf_)); + local->WriteUtf8(v8_isolate, reinterpret_cast<char*>(buf_)); } } buf_[len] = 0; @@ -166,12 +167,11 @@ BUILTIN(Trace) { // could have perf costs. It is also subject to all the same // limitations as JSON.stringify() as it relates to circular // references and value limitations (e.g. BigInt is not supported). - JsonStringifier stringifier(isolate); Handle<Object> result; ASSIGN_RETURN_FAILURE_ON_EXCEPTION( isolate, result, - stringifier.Stringify(data_arg, isolate->factory()->undefined_value(), - isolate->factory()->undefined_value())); + JsonStringify(isolate, data_arg, isolate->factory()->undefined_value(), + isolate->factory()->undefined_value())); std::unique_ptr<JsonTraceValue> traced_value; traced_value.reset( new JsonTraceValue(isolate, Handle<String>::cast(result))); |