Merge WebKit at r59636: Update v8 to r4660.
Will build and run with current webkit.
Change-Id: I57bae621fd894da363ba84e1757ad09eb7c502b9
diff --git a/src/log.cc b/src/log.cc
index e1ebc87..891b0e2 100644
--- a/src/log.cc
+++ b/src/log.cc
@@ -1313,9 +1313,8 @@
void Logger::LogCompiledFunctions() {
HandleScope scope;
const int compiled_funcs_count = EnumerateCompiledFunctions(NULL);
- Handle<SharedFunctionInfo>* sfis =
- NewArray< Handle<SharedFunctionInfo> >(compiled_funcs_count);
- EnumerateCompiledFunctions(sfis);
+ ScopedVector< Handle<SharedFunctionInfo> > sfis(compiled_funcs_count);
+ EnumerateCompiledFunctions(sfis.start());
// During iteration, there can be heap allocation due to
// GetScriptLineNumber call.
@@ -1360,8 +1359,6 @@
Logger::LAZY_COMPILE_TAG, shared->code(), *func_name));
}
}
-
- DeleteArray(sfis);
}