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

Side by Side Diff: content/renderer/render_process_impl.cc

Issue 2200403002: [asm.js] [wasm] Adds a UI flag for enabling the Wasm backend for Asm.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addresses comments Created 4 years, 4 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 | « content/public/common/content_switches.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/render_process_impl.h" 5 #include "content/renderer/render_process_impl.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 } 79 }
80 80
81 SetV8FlagIfFeature(kV8_ES2015_TailCalls_Feature, "--harmony-tailcalls"); 81 SetV8FlagIfFeature(kV8_ES2015_TailCalls_Feature, "--harmony-tailcalls");
82 SetV8FlagIfFeature(kV8_ES2016_ExplicitTailCalls_Feature, 82 SetV8FlagIfFeature(kV8_ES2016_ExplicitTailCalls_Feature,
83 "--harmony-explicit-tailcalls"); 83 "--harmony-explicit-tailcalls");
84 SetV8FlagIfFeature(kV8SerializeEagerFeature, "--serialize_eager"); 84 SetV8FlagIfFeature(kV8SerializeEagerFeature, "--serialize_eager");
85 SetV8FlagIfFeature(kV8SerializeAgeCodeFeature, "--serialize_age_code"); 85 SetV8FlagIfFeature(kV8SerializeAgeCodeFeature, "--serialize_age_code");
86 SetV8FlagIfHasSwitch(switches::kDisableJavaScriptHarmonyShipping, 86 SetV8FlagIfHasSwitch(switches::kDisableJavaScriptHarmonyShipping,
87 "--noharmony-shipping"); 87 "--noharmony-shipping");
88 SetV8FlagIfHasSwitch(switches::kJavaScriptHarmony, "--harmony"); 88 SetV8FlagIfHasSwitch(switches::kJavaScriptHarmony, "--harmony");
89 SetV8FlagIfHasSwitch(switches::kEnableAsmWasm, "--validate-asm");
89 SetV8FlagIfHasSwitch(switches::kEnableWasm, "--expose-wasm"); 90 SetV8FlagIfHasSwitch(switches::kEnableWasm, "--expose-wasm");
90 91
91 const base::CommandLine& command_line = 92 const base::CommandLine& command_line =
92 *base::CommandLine::ForCurrentProcess(); 93 *base::CommandLine::ForCurrentProcess();
93 94
94 if (command_line.HasSwitch(switches::kJavaScriptFlags)) { 95 if (command_line.HasSwitch(switches::kJavaScriptFlags)) {
95 std::string flags( 96 std::string flags(
96 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags)); 97 command_line.GetSwitchValueASCII(switches::kJavaScriptFlags));
97 v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size())); 98 v8::V8::SetFlagsFromString(flags.c_str(), static_cast<int>(flags.size()));
98 } 99 }
(...skipping 14 matching lines...) Expand all
113 114
114 void RenderProcessImpl::AddBindings(int bindings) { 115 void RenderProcessImpl::AddBindings(int bindings) {
115 enabled_bindings_ |= bindings; 116 enabled_bindings_ |= bindings;
116 } 117 }
117 118
118 int RenderProcessImpl::GetEnabledBindings() const { 119 int RenderProcessImpl::GetEnabledBindings() const {
119 return enabled_bindings_; 120 return enabled_bindings_;
120 } 121 }
121 122
122 } // namespace content 123 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698