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

Unified Diff: build/config/v8_target_cpu.gni

Issue 2070653003: Rework v8_target_arch / target_cpu approach to use v8_target_cpu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« build/config/arm.gni ('K') | « build/config/mips.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/v8_target_cpu.gni
diff --git a/build/config/v8_target_cpu.gni b/build/config/v8_target_cpu.gni
new file mode 100644
index 0000000000000000000000000000000000000000..c1927fbf09234b0f016e833ab07f9c86eb561d50
--- /dev/null
+++ b/build/config/v8_target_cpu.gni
@@ -0,0 +1,20 @@
+# Copyright 2016 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.
+
+declare_args() {
+ # This arg is used when we want to tell the JIT-generating v8 code
+ # that we want to have it generate for an architecture that is different
+ # than the architecture that v8 will actually run on; we then run the
+ # code under an emulator. For example, we might run v8 on x86, but
+ # generate arm code and run that under emulation.
+ #
+ # This arg is defined here rather than in the v8 project because we want
+ # some of the common architecture-specific args (like arm_float_abi or
+ # mips_arch_variant) to be set to their defaults either if the current_cpu
+ # applies *or* if the v8_target_cpu applies.
+ #
+ # TODO(crbug.com/620527) - rework this whole approach so that it isn't
+ # v8-specific.
+ v8_target_cpu = target_cpu
Michael Achenbach 2016/06/16 07:49:55 This logic: https://cs.chromium.org/chromium/src/v
Dirk Pranke 2016/06/16 17:35:05 Done, in the interest of moving forward, but I was
+}
« build/config/arm.gni ('K') | « build/config/mips.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698