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

Unified Diff: gin/isolate_holder.cc

Issue 885443002: Roll Chrome into Mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebase to ToT mojo 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gin/isolate_holder.cc
diff --git a/gin/isolate_holder.cc b/gin/isolate_holder.cc
index c666e29950a0a652a4085880fb716b86a07e4f75..21598a878ea465da1cc2985e728c0b93e42bf63e 100644
--- a/gin/isolate_holder.cc
+++ b/gin/isolate_holder.cc
@@ -10,6 +10,7 @@
#include "base/files/memory_mapped_file.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
+#include "base/metrics/field_trial.h"
#include "base/rand_util.h"
#include "base/strings/sys_string_conversions.h"
#include "base/sys_info.h"
@@ -266,8 +267,12 @@ void IsolateHolder::Initialize(ScriptMode mode,
v8::V8::SetArrayBufferAllocator(allocator);
g_array_buffer_allocator = allocator;
if (mode == gin::IsolateHolder::kStrictMode) {
- static const char v8_flags[] = "--use_strict";
- v8::V8::SetFlagsFromString(v8_flags, sizeof(v8_flags) - 1);
+ static const char use_strict[] = "--use_strict";
+ v8::V8::SetFlagsFromString(use_strict, sizeof(use_strict) - 1);
+ }
+ if (base::FieldTrialList::FindFullName("V8VerifyHeap") == "Enabled") {
+ static const char verify_heap[] = "--verify_heap";
+ v8::V8::SetFlagsFromString(verify_heap, sizeof(verify_heap) - 1);
}
v8::V8::SetEntropySource(&GenerateEntropy);
#if defined(V8_USE_EXTERNAL_STARTUP_DATA)
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698