From 589d6979ff2ef66fca2d8fa51404c369ca5e9250 Mon Sep 17 00:00:00 2001 From: Ben Murdoch Date: Wed, 30 Nov 2011 16:04:58 +0000 Subject: Upgrade to V8 3.6 Merge V8 at 3.6.6.11 Simple merge required updates to makefiles only. Bug: 5688872 Change-Id: Ib38b7ffbcd409585f6cb6fccc59c767029cecc77 --- samples/process.cc | 2 -- samples/shell.cc | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'samples') diff --git a/samples/process.cc b/samples/process.cc index 07c48057..c0cee4c2 100644 --- a/samples/process.cc +++ b/samples/process.cc @@ -77,7 +77,6 @@ class HttpRequestProcessor { */ class JsHttpRequestProcessor : public HttpRequestProcessor { public: - // Creates a new processor that processes requests by invoking the // Process function of the JavaScript script given as an argument. explicit JsHttpRequestProcessor(Handle script) : script_(script) { } @@ -88,7 +87,6 @@ class JsHttpRequestProcessor : public HttpRequestProcessor { virtual bool Process(HttpRequest* req); private: - // Execute the script associated with this processor and extract the // Process function. Returns true if this succeeded, otherwise false. bool ExecuteScript(Handle script); diff --git a/samples/shell.cc b/samples/shell.cc index 8ed9d032..b40eca2f 100644 --- a/samples/shell.cc +++ b/samples/shell.cc @@ -250,16 +250,14 @@ void RunShell(v8::Handle context) { static const int kBufferSize = 256; // Enter the execution environment before evaluating any code. v8::Context::Scope context_scope(context); + v8::Local name(v8::String::New("(shell)")); while (true) { char buffer[kBufferSize]; printf("> "); char* str = fgets(buffer, kBufferSize, stdin); if (str == NULL) break; v8::HandleScope handle_scope; - ExecuteString(v8::String::New(str), - v8::String::New("(shell)"), - true, - true); + ExecuteString(v8::String::New(str), name, true, true); } printf("\n"); } -- cgit v1.2.3