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

Unified Diff: src/compiler/js-graph.h

Issue 473263004: Towards removing dependency from generic lowering on compilation info. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/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_; }

Powered by Google App Engine
This is Rietveld 408576698