forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Gin] Add feature to control optimization in V8.
Change-Id: I7ff3a987d132d4ca8e0f350e851020b53d4fb009 Reviewed-on: https://chromium-review.googlesource.com/980947 Commit-Queue: Ross McIlroy <rmcilroy@chromium.org> Reviewed-by: Mythri Alle <mythria@chromium.org> Cr-Commit-Position: refs/heads/master@{#546143}
- Loading branch information
Showing
4 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "gin/gin_features.h" | ||
|
||
namespace features { | ||
|
||
// Enables optimization of JavaScript in V8. | ||
const base::Feature kV8OptimizeJavascript{"V8OptimizeJavascript", | ||
base::FEATURE_ENABLED_BY_DEFAULT}; | ||
|
||
} // namespace features |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef GIN_GIN_FEATURES_H_ | ||
#define GIN_GIN_FEATURES_H_ | ||
|
||
#include "base/feature_list.h" | ||
#include "gin/gin_export.h" | ||
|
||
namespace features { | ||
|
||
GIN_EXPORT extern const base::Feature kV8OptimizeJavascript; | ||
|
||
} // namespace features | ||
|
||
#endif // GIN_GIN_FEATURES_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters