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

Unified Diff: src/compiler/instruction-selector-impl.h

Issue 1075903002: [turbofan] support small immediates (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/compiler/instruction.cc ('k') | src/compiler/register-allocator-verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction-selector-impl.h
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h
index 657167ee7dc388fbe1b8c917dabfc691d204b441..79d3c5783858e65121f239bb69aa2c546ed264be 100644
--- a/src/compiler/instruction-selector-impl.h
+++ b/src/compiler/instruction-selector-impl.h
@@ -119,8 +119,7 @@ class OperandGenerator {
}
InstructionOperand UseImmediate(Node* node) {
- int index = sequence()->AddImmediate(ToConstant(node));
- return ImmediateOperand(index);
+ return sequence()->AddImmediate(ToConstant(node));
}
InstructionOperand UseLocation(Node* node, LinkageLocation location,
@@ -149,8 +148,7 @@ class OperandGenerator {
}
InstructionOperand TempImmediate(int32_t imm) {
- int index = sequence()->AddImmediate(Constant(imm));
- return ImmediateOperand(index);
+ return sequence()->AddImmediate(Constant(imm));
}
InstructionOperand TempLocation(LinkageLocation location, MachineType type) {
@@ -159,9 +157,8 @@ class OperandGenerator {
}
InstructionOperand Label(BasicBlock* block) {
- int index = sequence()->AddImmediate(
+ return sequence()->AddImmediate(
Constant(RpoNumber::FromInt(block->rpo_number())));
- return ImmediateOperand(index);
}
protected:
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/compiler/register-allocator-verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698