diff options
author | Michaël Zasso <targos@protonmail.com> | 2018-09-21 09:14:51 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-09-22 18:29:25 +0200 |
commit | 0e7ddbd3d7e9439c67573b854c49cf82c398ae82 (patch) | |
tree | 2afe372acde921cb57ddb3444ff00c5adef8848c /deps/v8/test/cctest/test-api-interceptors.cc | |
parent | 13245dc50da4cb7443c39ef6c68d419d5e6336d4 (diff) | |
download | android-node-v8-0e7ddbd3d7e9439c67573b854c49cf82c398ae82.tar.gz android-node-v8-0e7ddbd3d7e9439c67573b854c49cf82c398ae82.tar.bz2 android-node-v8-0e7ddbd3d7e9439c67573b854c49cf82c398ae82.zip |
deps: update V8 to 7.0.276.20
PR-URL: https://github.com/nodejs/node/pull/22754
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'deps/v8/test/cctest/test-api-interceptors.cc')
-rw-r--r-- | deps/v8/test/cctest/test-api-interceptors.cc | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/deps/v8/test/cctest/test-api-interceptors.cc b/deps/v8/test/cctest/test-api-interceptors.cc index 030db759fe..9d9138670e 100644 --- a/deps/v8/test/cctest/test-api-interceptors.cc +++ b/deps/v8/test/cctest/test-api-interceptors.cc @@ -7,7 +7,7 @@ #include "test/cctest/test-api.h" #include "include/v8-util.h" -#include "src/api.h" +#include "src/api-inl.h" #include "src/arguments.h" #include "src/base/platform/platform.h" #include "src/compilation-cache.h" @@ -76,16 +76,17 @@ void EmptyInterceptorEnumerator( void SimpleAccessorGetter(Local<String> name, const v8::PropertyCallbackInfo<v8::Value>& info) { Local<Object> self = Local<Object>::Cast(info.This()); - info.GetReturnValue().Set(self->Get(info.GetIsolate()->GetCurrentContext(), - String::Concat(v8_str("accessor_"), name)) - .ToLocalChecked()); + info.GetReturnValue().Set( + self->Get(info.GetIsolate()->GetCurrentContext(), + String::Concat(info.GetIsolate(), v8_str("accessor_"), name)) + .ToLocalChecked()); } void SimpleAccessorSetter(Local<String> name, Local<Value> value, const v8::PropertyCallbackInfo<void>& info) { Local<Object> self = Local<Object>::Cast(info.This()); self->Set(info.GetIsolate()->GetCurrentContext(), - String::Concat(v8_str("accessor_"), name), value) + String::Concat(info.GetIsolate(), v8_str("accessor_"), name), value) .FromJust(); } @@ -155,13 +156,14 @@ void GenericInterceptorGetter(Local<Name> generic_name, if (generic_name->IsSymbol()) { Local<Value> name = Local<Symbol>::Cast(generic_name)->Name(); if (name->IsUndefined()) return; - str = String::Concat(v8_str("_sym_"), Local<String>::Cast(name)); + str = String::Concat(info.GetIsolate(), v8_str("_sym_"), + Local<String>::Cast(name)); } else { Local<String> name = Local<String>::Cast(generic_name); String::Utf8Value utf8(info.GetIsolate(), name); char* name_str = *utf8; if (*name_str == '_') return; - str = String::Concat(v8_str("_str_"), name); + str = String::Concat(info.GetIsolate(), v8_str("_str_"), name); } Local<Object> self = Local<Object>::Cast(info.This()); @@ -175,13 +177,14 @@ void GenericInterceptorSetter(Local<Name> generic_name, Local<Value> value, if (generic_name->IsSymbol()) { Local<Value> name = Local<Symbol>::Cast(generic_name)->Name(); if (name->IsUndefined()) return; - str = String::Concat(v8_str("_sym_"), Local<String>::Cast(name)); + str = String::Concat(info.GetIsolate(), v8_str("_sym_"), + Local<String>::Cast(name)); } else { Local<String> name = Local<String>::Cast(generic_name); String::Utf8Value utf8(info.GetIsolate(), name); char* name_str = *utf8; if (*name_str == '_') return; - str = String::Concat(v8_str("_str_"), name); + str = String::Concat(info.GetIsolate(), v8_str("_str_"), name); } Local<Object> self = Local<Object>::Cast(info.This()); @@ -4304,8 +4307,7 @@ THREADED_TEST(Regress256330) { CHECK_EQ(mask, status & mask); } - -THREADED_TEST(CrankshaftInterceptorSetter) { +THREADED_TEST(OptimizedInterceptorSetter) { i::FLAG_allow_natives_syntax = true; v8::HandleScope scope(CcTest::isolate()); Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); @@ -4334,8 +4336,7 @@ THREADED_TEST(CrankshaftInterceptorSetter) { ExpectInt32("obj.accessor_age", 42); } - -THREADED_TEST(CrankshaftInterceptorGetter) { +THREADED_TEST(OptimizedInterceptorGetter) { i::FLAG_allow_natives_syntax = true; v8::HandleScope scope(CcTest::isolate()); Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); @@ -4361,8 +4362,7 @@ THREADED_TEST(CrankshaftInterceptorGetter) { ExpectInt32("getAge()", 1); } - -THREADED_TEST(CrankshaftInterceptorFieldRead) { +THREADED_TEST(OptimizedInterceptorFieldRead) { i::FLAG_allow_natives_syntax = true; v8::HandleScope scope(CcTest::isolate()); Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); @@ -4385,8 +4385,7 @@ THREADED_TEST(CrankshaftInterceptorFieldRead) { ExpectInt32("getAge();", 100); } - -THREADED_TEST(CrankshaftInterceptorFieldWrite) { +THREADED_TEST(OptimizedInterceptorFieldWrite) { i::FLAG_allow_natives_syntax = true; v8::HandleScope scope(CcTest::isolate()); Local<FunctionTemplate> templ = FunctionTemplate::New(CcTest::isolate()); @@ -5026,7 +5025,7 @@ void ConcatNamedPropertyGetter( Local<Name> name, const v8::PropertyCallbackInfo<v8::Value>& info) { info.GetReturnValue().Set( // Return the property name concatenated with itself. - String::Concat(name.As<String>(), name.As<String>())); + String::Concat(info.GetIsolate(), name.As<String>(), name.As<String>())); } void ConcatIndexedPropertyGetter( |