OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |