diff --git a/deps/v8/ChangeLog b/deps/v8/ChangeLog index e786802450b..4bfd8d5ca92 100644 --- a/deps/v8/ChangeLog +++ b/deps/v8/ChangeLog @@ -1,3 +1,13 @@ +2009-08-13: Version 1.3.4 + + Added a readline() command to the d8 shell. + + Fixed bug in json parsing. + + Added idle notification to the API and reduced memory on idle + notifications. + + 2009-08-12: Version 1.3.3 Fix issue 417: incorrect %t placeholder expansion. diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h index 23c4425f86f..d8de00ceca2 100644 --- a/deps/v8/include/v8.h +++ b/deps/v8/include/v8.h @@ -2201,6 +2201,14 @@ class V8EXPORT V8 { */ static bool Dispose(); + + /** + * Optional notification that the embedder is idle. + * V8 uses the notification to reduce memory footprint. + * \param is_high_priority tells whether the embedder is high priority. + */ + static void IdleNotification(bool is_high_priority); + private: V8(); diff --git a/deps/v8/src/api.cc b/deps/v8/src/api.cc index d02a2e4484c..0dc4fd7c7eb 100644 --- a/deps/v8/src/api.cc +++ b/deps/v8/src/api.cc @@ -2558,6 +2558,10 @@ bool v8::V8::Dispose() { } +void v8::V8::IdleNotification(bool is_high_priority) { + i::V8::IdleNotification(is_high_priority); +} + const char* v8::V8::GetVersion() { static v8::internal::EmbeddedVector buffer; v8::internal::Version::GetString(buffer); @@ -2589,12 +2593,8 @@ Persistent v8::Context::New( i::Handle env; { ENTER_V8; -#if defined(ANDROID) - // On mobile devices, full GC is expensive. -#else // Give the heap a chance to cleanup if we've disposed contexts. i::Heap::CollectAllGarbageIfContextDisposed(); -#endif v8::Handle proxy_template = global_template; i::Handle proxy_constructor; i::Handle global_constructor; diff --git a/deps/v8/src/compiler.cc b/deps/v8/src/compiler.cc index f0d97fecd7d..5607f296229 100644 --- a/deps/v8/src/compiler.cc +++ b/deps/v8/src/compiler.cc @@ -102,7 +102,7 @@ static Handle MakeCode(FunctionLiteral* literal, static bool IsValidJSON(FunctionLiteral* lit) { - if (!lit->body()->length() == 1) + if (lit->body()->length() != 1) return false; Statement* stmt = lit->body()->at(0); if (stmt->AsExpressionStatement() == NULL) @@ -114,7 +114,7 @@ static bool IsValidJSON(FunctionLiteral* lit) { static Handle MakeFunction(bool is_global, bool is_eval, - bool is_json, + Compiler::ValidationState validate, Handle