Index: src/compiler/raw-machine-assembler.cc |
diff --git a/src/compiler/raw-machine-assembler.cc b/src/compiler/raw-machine-assembler.cc |
index eabdf5871c634e887c259eed6d66de9ac47185ab..cdf45ab776ede43dad119b69142816fbca8134c9 100644 |
--- a/src/compiler/raw-machine-assembler.cc |
+++ b/src/compiler/raw-machine-assembler.cc |
@@ -120,46 +120,23 @@ |
} |
void RawMachineAssembler::Return(Node* value) { |
- Node* values[] = {Int32Constant(0), value}; |
- Node* ret = MakeNode(common()->Return(1), 2, values); |
+ Node* ret = MakeNode(common()->Return(), 1, &value); |
schedule()->AddReturn(CurrentBlock(), ret); |
current_block_ = nullptr; |
} |
void RawMachineAssembler::Return(Node* v1, Node* v2) { |
- Node* values[] = {Int32Constant(0), v1, v2}; |
- Node* ret = MakeNode(common()->Return(2), 3, values); |
+ Node* values[] = {v1, v2}; |
+ Node* ret = MakeNode(common()->Return(2), 2, values); |
schedule()->AddReturn(CurrentBlock(), ret); |
current_block_ = nullptr; |
} |
void RawMachineAssembler::Return(Node* v1, Node* v2, Node* v3) { |
- Node* values[] = {Int32Constant(0), v1, v2, v3}; |
- Node* ret = MakeNode(common()->Return(3), 4, values); |
- schedule()->AddReturn(CurrentBlock(), ret); |
- current_block_ = nullptr; |
-} |
- |
-void RawMachineAssembler::PopAndReturn(Node* pop, Node* value) { |
- Node* values[] = {pop, value}; |
- Node* ret = MakeNode(common()->Return(1), 2, values); |
- schedule()->AddReturn(CurrentBlock(), ret); |
- current_block_ = nullptr; |
-} |
- |
-void RawMachineAssembler::PopAndReturn(Node* pop, Node* v1, Node* v2) { |
- Node* values[] = {pop, v1, v2}; |
- Node* ret = MakeNode(common()->Return(2), 3, values); |
- schedule()->AddReturn(CurrentBlock(), ret); |
- current_block_ = nullptr; |
-} |
- |
-void RawMachineAssembler::PopAndReturn(Node* pop, Node* v1, Node* v2, |
- Node* v3) { |
- Node* values[] = {pop, v1, v2, v3}; |
- Node* ret = MakeNode(common()->Return(3), 4, values); |
+ Node* values[] = {v1, v2, v3}; |
+ Node* ret = MakeNode(common()->Return(3), 3, values); |
schedule()->AddReturn(CurrentBlock(), ret); |
current_block_ = nullptr; |
} |