Chromium Code Reviews| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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, "--expose-wasm"); | |
|
bradnelson
2016/08/02 23:46:06
The flag is actually --validate-asm
John
2016/08/03 14:12:15
unrelated to this CL, but the asm-wasm tests don't
| |
| 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 Loading... | |
| 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 |
| OLD | NEW |