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

Unified Diff: src/crankshaft/x87/lithium-codegen-x87.cc

Issue 1410393004: X87: Re-reland: Remove register index/code indirection. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/crankshaft/x87/lithium-gap-resolver-x87.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/x87/lithium-codegen-x87.cc
diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc
index 622259ed613e7d64607dc94cb71bc0619b10e57a..c72483ede33321ef757b194ac1ed48e5d68872d0 100644
--- a/src/crankshaft/x87/lithium-codegen-x87.cc
+++ b/src/crankshaft/x87/lithium-codegen-x87.cc
@@ -518,13 +518,13 @@ bool LCodeGen::GenerateSafepointTable() {
}
-Register LCodeGen::ToRegister(int index) const {
- return Register::FromAllocationIndex(index);
+Register LCodeGen::ToRegister(int code) const {
+ return Register::from_code(code);
}
-X87Register LCodeGen::ToX87Register(int index) const {
- return X87Register::FromAllocationIndex(index);
+X87Register LCodeGen::ToX87Register(int code) const {
+ return X87Register::from_code(code);
}
@@ -700,7 +700,7 @@ void LCodeGen::X87Stack::CommitWrite(X87Register reg) {
DCHECK(is_mutable_);
// Assert the reg is prepared to write, but not on the virtual stack yet
DCHECK(!Contains(reg) && stack_[stack_depth_].is(reg) &&
- stack_depth_ < X87Register::kMaxNumAllocatableRegisters);
+ stack_depth_ < X87Register::kMaxNumAllocatableRegisters);
stack_depth_++;
}
« no previous file with comments | « no previous file | src/crankshaft/x87/lithium-gap-resolver-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698