diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2014-03-13 20:38:14 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2014-03-13 20:56:55 +0400 |
commit | ce04c726a31cd13be131915b1c8b8bc7a00a4d24 (patch) | |
tree | b309f6f42362231f54825586b9d79bd6163bb985 /src/node_v8.cc | |
parent | 1c7bf245dc2d520c005e01bcb56ecb3275971395 (diff) |
src: update to v8 3.24 APIs
Diffstat (limited to 'src/node_v8.cc')
-rw-r--r-- | src/node_v8.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/node_v8.cc b/src/node_v8.cc index 25f73d61832..6652f6176a4 100644 --- a/src/node_v8.cc +++ b/src/node_v8.cc @@ -117,7 +117,7 @@ void Environment::AfterGarbageCollectionCallback(const GCInfo* before, const GCInfo* after) { HandleScope handle_scope(isolate()); Context::Scope context_scope(context()); - Local<Value> argv[] = { Object::New(), Object::New() }; + Local<Value> argv[] = { Object::New(isolate()), Object::New(isolate()) }; const GCInfo* infov[] = { before, after }; for (unsigned i = 0; i < ARRAY_SIZE(argv); i += 1) { Local<Object> obj = argv[i].As<Object>(); @@ -132,7 +132,7 @@ void Environment::AfterGarbageCollectionCallback(const GCInfo* before, default: UNREACHABLE(); } - obj->Set(flags_string(), Uint32::NewFromUnsigned(info->flags(), isolate())); + obj->Set(flags_string(), Uint32::NewFromUnsigned(isolate(), info->flags())); obj->Set(timestamp_string(), Number::New(isolate(), info->timestamp())); // TODO(trevnorris): Setting many object properties in C++ is a significant // performance hit. Redo this to pass the results to JS and create/set the @@ -140,7 +140,7 @@ void Environment::AfterGarbageCollectionCallback(const GCInfo* before, #define V(name) \ do { \ obj->Set(name ## _string(), \ - Uint32::NewFromUnsigned(info->stats()->name(), isolate())); \ + Uint32::NewFromUnsigned(isolate(), info->stats()->name())); \ } while (0) V(total_heap_size); V(total_heap_size_executable); @@ -185,12 +185,12 @@ void GetHeapStatistics(const FunctionCallbackInfo<Value>& args) { Environment* env = Environment::GetCurrent(isolate); HeapStatistics s; isolate->GetHeapStatistics(&s); - Local<Object> info = Object::New(); + Local<Object> info = Object::New(isolate); // TODO(trevnorris): Setting many object properties in C++ is a significant // performance hit. Redo this to pass the results to JS and create/set the // properties there. #define V(name) \ - info->Set(env->name ## _string(), Uint32::NewFromUnsigned(s.name(), isolate)) + info->Set(env->name ## _string(), Uint32::NewFromUnsigned(isolate, s.name())) V(total_heap_size); V(total_heap_size_executable); V(total_physical_size); |