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

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

Issue 2625823006: [wasm][asm.js] Turn on asm.js -> WebAssembly by default. (Closed)
Patch Set: fix Created 3 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_features.cc ('k') | no next file » | 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 130
131 SetV8FlagIfFeature(kV8_ES2015_TailCalls_Feature, "--harmony-tailcalls"); 131 SetV8FlagIfFeature(kV8_ES2015_TailCalls_Feature, "--harmony-tailcalls");
132 SetV8FlagIfFeature(kV8_ES2016_ExplicitTailCalls_Feature, 132 SetV8FlagIfFeature(kV8_ES2016_ExplicitTailCalls_Feature,
133 "--harmony-explicit-tailcalls"); 133 "--harmony-explicit-tailcalls");
134 SetV8FlagIfFeature(kV8SerializeEagerFeature, "--serialize_eager"); 134 SetV8FlagIfFeature(kV8SerializeEagerFeature, "--serialize_eager");
135 SetV8FlagIfFeature(kV8SerializeAgeCodeFeature, "--serialize_age_code"); 135 SetV8FlagIfFeature(kV8SerializeAgeCodeFeature, "--serialize_age_code");
136 SetV8FlagIfHasSwitch(switches::kDisableJavaScriptHarmonyShipping, 136 SetV8FlagIfHasSwitch(switches::kDisableJavaScriptHarmonyShipping,
137 "--noharmony-shipping"); 137 "--noharmony-shipping");
138 SetV8FlagIfHasSwitch(switches::kJavaScriptHarmony, "--harmony"); 138 SetV8FlagIfHasSwitch(switches::kJavaScriptHarmony, "--harmony");
139 SetV8FlagIfFeature(features::kAsmJsToWebAssembly, "--validate-asm"); 139 SetV8FlagIfFeature(features::kAsmJsToWebAssembly, "--validate-asm");
140 SetV8FlagIfNotFeature(features::kAsmJsToWebAssembly, "--no-validate-asm");
140 SetV8FlagIfNotFeature(features::kWebAssembly, 141 SetV8FlagIfNotFeature(features::kWebAssembly,
141 "--wasm-disable-structured-cloning"); 142 "--wasm-disable-structured-cloning");
142 SetV8FlagIfFeature(features::kSharedArrayBuffer, 143 SetV8FlagIfFeature(features::kSharedArrayBuffer,
143 "--harmony-sharedarraybuffer"); 144 "--harmony-sharedarraybuffer");
144 SetV8FlagIfNotFeature(features::kSharedArrayBuffer, 145 SetV8FlagIfNotFeature(features::kSharedArrayBuffer,
145 "--no-harmony-sharedarraybuffer"); 146 "--no-harmony-sharedarraybuffer");
146 147
147 SetV8FlagIfFeature(features::kWebAssemblyTrapHandler, "--wasm-trap-handler"); 148 SetV8FlagIfFeature(features::kWebAssemblyTrapHandler, "--wasm-trap-handler");
148 #if defined(OS_LINUX) && defined(ARCH_CPU_X86_64) && !defined(OS_ANDROID) 149 #if defined(OS_LINUX) && defined(ARCH_CPU_X86_64) && !defined(OS_ANDROID)
149 if (base::FeatureList::IsEnabled(features::kWebAssemblyTrapHandler)) { 150 if (base::FeatureList::IsEnabled(features::kWebAssemblyTrapHandler)) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 192
192 void RenderProcessImpl::AddBindings(int bindings) { 193 void RenderProcessImpl::AddBindings(int bindings) {
193 enabled_bindings_ |= bindings; 194 enabled_bindings_ |= bindings;
194 } 195 }
195 196
196 int RenderProcessImpl::GetEnabledBindings() const { 197 int RenderProcessImpl::GetEnabledBindings() const {
197 return enabled_bindings_; 198 return enabled_bindings_;
198 } 199 }
199 200
200 } // namespace content 201 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/content_features.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698