Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Side by Side Diff: sky/engine/bindings/core/v8/V8Initializer.cpp

Issue 845403009: Turn on harmony arrays and regexp. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/examples/fps-counter.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 193
194 void V8Initializer::initializeMainThreadIfNeeded() 194 void V8Initializer::initializeMainThreadIfNeeded()
195 { 195 {
196 ASSERT(isMainThread()); 196 ASSERT(isMainThread());
197 197
198 static bool initialized = false; 198 static bool initialized = false;
199 if (initialized) 199 if (initialized)
200 return; 200 return;
201 initialized = true; 201 initialized = true;
202 202
203 static const char v8Flags[] = "--harmony-classes"; 203 static const char v8Flags[] = "--harmony-classes --harmony-arrays --harmony- array-includes --harmony-regexps";
204 v8::V8::SetFlagsFromString(v8Flags, sizeof(v8Flags) - 1); 204 v8::V8::SetFlagsFromString(v8Flags, sizeof(v8Flags) - 1);
205 205
206 gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode, v8ArrayBuffe rAllocator()); 206 gin::IsolateHolder::Initialize(gin::IsolateHolder::kStrictMode, v8ArrayBuffe rAllocator());
207 207
208 v8::Isolate* isolate = V8PerIsolateData::initialize(); 208 v8::Isolate* isolate = V8PerIsolateData::initialize();
209 209
210 v8::V8::AddGCPrologueCallback(V8GCController::gcPrologue); 210 v8::V8::AddGCPrologueCallback(V8GCController::gcPrologue);
211 v8::V8::AddGCEpilogueCallback(V8GCController::gcEpilogue); 211 v8::V8::AddGCEpilogueCallback(V8GCController::gcEpilogue);
212 212
213 v8::Debug::SetLiveEditEnabled(isolate, false); 213 v8::Debug::SetLiveEditEnabled(isolate, false);
214 214
215 isolate->SetAutorunMicrotasks(false); 215 isolate->SetAutorunMicrotasks(false);
216 216
217 v8::V8::SetFatalErrorHandler(reportFatalErrorInMainThread); 217 v8::V8::SetFatalErrorHandler(reportFatalErrorInMainThread);
218 v8::V8::AddMessageListener(messageHandlerInMainThread); 218 v8::V8::AddMessageListener(messageHandlerInMainThread);
219 v8::V8::SetFailedAccessCheckCallbackFunction(failedAccessCheckCallbackInMain Thread); 219 v8::V8::SetFailedAccessCheckCallbackFunction(failedAccessCheckCallbackInMain Thread);
220 220
221 isolate->SetEventLogger(timerTraceProfilerInMainThread); 221 isolate->SetEventLogger(timerTraceProfilerInMainThread);
222 222
223 ScriptProfiler::initialize(); 223 ScriptProfiler::initialize();
224 } 224 }
225 225
226 } // namespace blink 226 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | sky/examples/fps-counter.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698