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

Unified Diff: test/cctest/compiler/test-gap-resolver.cc

Issue 1365073002: Revert of Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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/x87/assembler-x87.h ('k') | test/cctest/compiler/test-run-native-calls.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-gap-resolver.cc
diff --git a/test/cctest/compiler/test-gap-resolver.cc b/test/cctest/compiler/test-gap-resolver.cc
index 7dade3df33a5d821a71f6a2acab2d57e37149f1b..a081ddb8fe9d79410692e8fb43413b693e1ec2a0 100644
--- a/test/cctest/compiler/test-gap-resolver.cc
+++ b/test/cctest/compiler/test-gap-resolver.cc
@@ -73,13 +73,7 @@
AllocatedOperand::AllocatedKind kind;
int index;
if (!is_constant) {
- if (op.IsRegister()) {
- index = AllocatedOperand::cast(op).GetRegister().code();
- } else if (op.IsDoubleRegister()) {
- index = AllocatedOperand::cast(op).GetDoubleRegister().code();
- } else {
- index = AllocatedOperand::cast(op).index();
- }
+ index = AllocatedOperand::cast(op).index();
kind = AllocatedOperand::cast(op).allocated_kind();
} else {
index = ConstantOperand::cast(op).virtual_register();
@@ -96,9 +90,7 @@
return ConstantOperand(key.index);
}
return AllocatedOperand(
- key.kind,
- v8::internal::compiler::InstructionSequence::DefaultRepresentation(),
- key.index);
+ key.kind, InstructionSequence::DefaultRepresentation(), key.index);
}
friend std::ostream& operator<<(std::ostream& os,
« no previous file with comments | « src/x87/assembler-x87.h ('k') | test/cctest/compiler/test-run-native-calls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698