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

Unified Diff: src/compiler/int64-lowering.h

Issue 1704033002: [wasm] WasmRunner can run tests with I64 parameters and return value. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@new_wasm_runner
Patch Set: Created 4 years, 10 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
Index: src/compiler/int64-lowering.h
diff --git a/src/compiler/int64-lowering.h b/src/compiler/int64-lowering.h
index dcdeae243de960cc20f7e1da1b88b04477561a08..f290f7d24cff5bb97bed9d5f11f66c459381a61c 100644
--- a/src/compiler/int64-lowering.h
+++ b/src/compiler/int64-lowering.h
@@ -18,30 +18,43 @@ namespace compiler {
class Int64Lowering {
public:
Int64Lowering(Graph* graph, MachineOperatorBuilder* machine,
- CommonOperatorBuilder* common, Zone* zone);
+ CommonOperatorBuilder* common, Zone* zone,
+ Signature<MachineRepresentation>* signature);
- void ReduceGraph();
- Graph* graph() const { return graph_; }
- MachineOperatorBuilder* machine() const { return machine_; }
- CommonOperatorBuilder* common() const { return common_; }
+ void LowerGraph();
private:
enum class State : uint8_t { kUnvisited, kOnStack, kInputsPushed, kVisited };
struct Replacement {
+ // Assumption: if low == nullptr, then also high == nullptr.
Node* low;
Node* high;
};
- void ReduceTop();
- void ReduceNode(Node* node);
+ Zone* zone() const { return zone_; }
+ Graph* graph() const { return graph_; }
+ MachineOperatorBuilder* machine() const { return machine_; }
+ CommonOperatorBuilder* common() const { return common_; }
+ Signature<MachineRepresentation>* signature() const { return signature_; }
+
+ void LowerNode(Node* node);
+ bool DefaultLowering(Node* node);
+
+ void ReplaceNode(Node* old, Node* new_low, Node* new_high);
+ bool HasReplacementLow(Node* node);
+ Node* GetReplacementLow(Node* node);
+ bool HasReplacementHigh(Node* node);
+ Node* GetReplacementHigh(Node* node);
+ Zone* zone_;
Graph* const graph_;
MachineOperatorBuilder* machine_;
CommonOperatorBuilder* common_;
NodeMarker<State> state_;
ZoneStack<Node*> stack_;
Replacement* replacements_;
+ Signature<MachineRepresentation>* signature_;
};
} // namespace compiler

Powered by Google App Engine
This is Rietveld 408576698