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

Unified Diff: src/register-configuration.h

Issue 1405673003: provides a mechanism for optimizing compilers to select the different Register configuration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add the TODO comments. Created 5 years, 2 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
« no previous file with comments | « src/ppc/macro-assembler-ppc.cc ('k') | src/register-configuration.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/register-configuration.h
diff --git a/src/register-configuration.h b/src/register-configuration.h
index f12bc7c07c6dfb4beb79477f5a88ce16502b4c71..8ad1d783049079a171b13eeefc675a2a4133df7b 100644
--- a/src/register-configuration.h
+++ b/src/register-configuration.h
@@ -14,11 +14,18 @@ namespace internal {
// for instruction creation.
class RegisterConfiguration {
public:
+ // Define the optimized compiler selector for register configuration
+ // selection.
+ //
+ // TODO(X87): This distinction in RegisterConfigurations is temporary
+ // until x87 TF supports all of the registers that Crankshaft does.
+ enum CompilerSelector { CRANKSHAFT, TURBOFAN };
+
// Architecture independent maxes.
static const int kMaxGeneralRegisters = 32;
static const int kMaxDoubleRegisters = 32;
- static const RegisterConfiguration* ArchDefault();
+ static const RegisterConfiguration* ArchDefault(CompilerSelector compiler);
RegisterConfiguration(int num_general_registers, int num_double_registers,
int num_allocatable_general_registers,
« no previous file with comments | « src/ppc/macro-assembler-ppc.cc ('k') | src/register-configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698