| Index: tools/lexer-shell.cc
|
| diff --git a/tools/lexer-shell.cc b/tools/lexer-shell.cc
|
| index 273cdd9f4d7a49d6cffa9b5b7788ddad4f4ccd77..a85dc7dbee7f37b6c8a424b7f0af55bc4df64ecc 100644
|
| --- a/tools/lexer-shell.cc
|
| +++ b/tools/lexer-shell.cc
|
| @@ -206,19 +206,20 @@ int main(int argc, char* argv[]) {
|
| fnames.push_back(std::string(argv[i]));
|
| }
|
| }
|
| - v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
| + v8::Isolate* isolate = v8::Isolate::New();
|
| {
|
| + v8::Isolate::Scope isolate_scope(isolate);
|
| v8::HandleScope handle_scope(isolate);
|
| v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(isolate);
|
| v8::Local<v8::Context> context = v8::Context::New(isolate, NULL, global);
|
| ASSERT(!context.IsEmpty());
|
| {
|
| v8::Context::Scope scope(context);
|
| - Isolate* isolate = Isolate::Current();
|
| double baseline_total = 0;
|
| for (size_t i = 0; i < fnames.size(); i++) {
|
| TimeDelta time;
|
| - time = ProcessFile(fnames[i].c_str(), encoding, isolate, print_tokens,
|
| + time = ProcessFile(fnames[i].c_str(), encoding,
|
| + reinterpret_cast<Isolate*>(isolate), print_tokens,
|
| repeat);
|
| baseline_total += time.InMillisecondsF();
|
| }
|
|
|