Index: test/cctest/test-cpu-profiler.cc |
diff --git a/test/cctest/test-cpu-profiler.cc b/test/cctest/test-cpu-profiler.cc |
index c847afcc2708a0f4dec257759b35483edb464968..9627277aa4dcbe5ab17ae6655c987621ad32d2b4 100644 |
--- a/test/cctest/test-cpu-profiler.cc |
+++ b/test/cctest/test-cpu-profiler.cc |
@@ -843,7 +843,8 @@ TEST(NativeMethodUninitializedIC) { |
v8::String::NewFromUtf8(env->GetIsolate(), "Test_InstanceCostructor")); |
v8::Local<v8::ObjectTemplate> proto_template = |
func_template->PrototypeTemplate(); |
- v8::Local<v8::Signature> signature = v8::Signature::New(func_template); |
+ v8::Local<v8::Signature> signature = |
+ v8::Signature::New(env->GetIsolate(), func_template); |
proto_template->Set(v8::String::NewFromUtf8(env->GetIsolate(), "fooMethod"), |
v8::FunctionTemplate::New(&TestApiCallbacks::Callback, |
data, signature, 0)); |
@@ -886,7 +887,8 @@ TEST(NativeMethodMonomorphicIC) { |
v8::String::NewFromUtf8(env->GetIsolate(), "Test_InstanceCostructor")); |
v8::Local<v8::ObjectTemplate> proto_template = |
func_template->PrototypeTemplate(); |
- v8::Local<v8::Signature> signature = v8::Signature::New(func_template); |
+ v8::Local<v8::Signature> signature = |
+ v8::Signature::New(env->GetIsolate(), func_template); |
proto_template->Set(v8::String::NewFromUtf8(env->GetIsolate(), "fooMethod"), |
v8::FunctionTemplate::New(&TestApiCallbacks::Callback, |
data, signature, 0)); |