mirror of
https://github.com/denoland/deno
synced 2024-08-27 12:00:17 +00:00
Upgrade V8 to 7.7.37 (#2492)
This commit is contained in:
parent
e043697521
commit
523ab6a929
|
@ -3,8 +3,8 @@ import("//build/toolchain/cc_wrapper.gni")
|
||||||
import("//build_extra/flatbuffers/flatbuffer.gni")
|
import("//build_extra/flatbuffers/flatbuffer.gni")
|
||||||
import("//build_extra/flatbuffers/rust/rust_flatbuffer.gni")
|
import("//build_extra/flatbuffers/rust/rust_flatbuffer.gni")
|
||||||
import("//build_extra/rust/rust.gni")
|
import("//build_extra/rust/rust.gni")
|
||||||
|
import("//third_party/v8/gni/snapshot_toolchain.gni")
|
||||||
import("//third_party/v8/gni/v8.gni")
|
import("//third_party/v8/gni/v8.gni")
|
||||||
import("//third_party/v8/snapshot_toolchain.gni")
|
|
||||||
import("../deno.gni")
|
import("../deno.gni")
|
||||||
|
|
||||||
main_extern = [
|
main_extern = [
|
||||||
|
|
|
@ -101,11 +101,8 @@ void Print(const v8::FunctionCallbackInfo<v8::Value>& args) {
|
||||||
if (argsLen < 1 || argsLen > 2) {
|
if (argsLen < 1 || argsLen > 2) {
|
||||||
ThrowInvalidArgument(isolate);
|
ThrowInvalidArgument(isolate);
|
||||||
}
|
}
|
||||||
DenoIsolate* d = DenoIsolate::FromIsolate(isolate);
|
|
||||||
auto context = d->context_.Get(d->isolate_);
|
|
||||||
v8::HandleScope handle_scope(isolate);
|
v8::HandleScope handle_scope(isolate);
|
||||||
bool is_err =
|
bool is_err = args.Length() >= 2 ? args[1]->BooleanValue(isolate) : false;
|
||||||
args.Length() >= 2 ? args[1]->BooleanValue(context).ToChecked() : false;
|
|
||||||
FILE* file = is_err ? stderr : stdout;
|
FILE* file = is_err ? stderr : stdout;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
@ -322,7 +319,8 @@ void Shared(v8::Local<v8::Name> property,
|
||||||
v8::ArrayBufferCreationMode::kExternalized);
|
v8::ArrayBufferCreationMode::kExternalized);
|
||||||
d->shared_ab_.Reset(isolate, ab);
|
d->shared_ab_.Reset(isolate, ab);
|
||||||
}
|
}
|
||||||
info.GetReturnValue().Set(d->shared_ab_);
|
auto shared_ab = d->shared_ab_.Get(isolate);
|
||||||
|
info.GetReturnValue().Set(shared_ab);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DenoIsolate::ClearModules() {
|
void DenoIsolate::ClearModules() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
# Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
||||||
solutions = [{
|
solutions = [{
|
||||||
'url':
|
'url':
|
||||||
'https://chromium.googlesource.com/v8/v8.git@7.6.53',
|
'https://chromium.googlesource.com/v8/v8.git@7.7.37',
|
||||||
'name': 'v8',
|
'name': 'v8',
|
||||||
'deps_file': 'DEPS',
|
'deps_file': 'DEPS',
|
||||||
'custom_deps': {
|
'custom_deps': {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 72a4202a0341516115a92aa18951eb3010fb75fa
|
Subproject commit 92159ba506cf2fb87f4779bebeb07fd3463d0063
|
Loading…
Reference in a new issue