Index: src/compiler/js-graph.h |
diff --git a/src/compiler/js-graph.h b/src/compiler/js-graph.h |
index b016a828c119aea33bf7565b88b96d26ddd0a0e5..89840d6262e07283b5ba9a30126e756dd9bd2d08 100644 |
--- a/src/compiler/js-graph.h |
+++ b/src/compiler/js-graph.h |
@@ -73,6 +73,16 @@ class JSGraph : public ZoneObject { |
return Constant(immediate); |
} |
+ Node* LoadObjectField(Node* object, int offset, Node* context, Node* effect, |
+ MachineType type = kMachAnyTagged) { |
titzer
2014/08/20 12:54:38
This doesn't seem like the right place for this me
sigurds
2014/08/22 14:01:33
Done.
|
+ // TODO(sigurds) Use simplified load here once it is ready. |
+ MachineOperatorBuilder machine(zone()); |
+ Node* field_load = graph()->NewNode(machine.Load(type), object, |
+ Int32Constant(offset - kHeapObjectTag), |
+ context, effect); |
+ return field_load; |
+ } |
+ |
JSOperatorBuilder* javascript() { return &javascript_; } |
CommonOperatorBuilder* common() { return common_; } |
Graph* graph() { return graph_; } |