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

Unified Diff: src/compiler/js-generic-lowering.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-generic-lowering.h
diff --git a/src/compiler/js-generic-lowering.h b/src/compiler/js-generic-lowering.h
index f1c0aa9a8eb219c3e5da45d234c21cd260cc26d9..7112e4f08657fb38b41914966ec92448f124712d 100644
--- a/src/compiler/js-generic-lowering.h
+++ b/src/compiler/js-generic-lowering.h
@@ -10,6 +10,7 @@
#include "src/allocation.h"
#include "src/compiler/graph.h"
#include "src/compiler/graph-reducer.h"
+#include "src/compiler/js-context-specialization.h"
#include "src/compiler/js-graph.h"
#include "src/compiler/opcodes.h"
#include "src/unique.h"
@@ -30,8 +31,8 @@ class Linkage;
// Lowers JS-level operators to runtime and IC calls in the "generic" case.
class JSGenericLowering : public Reducer {
public:
- JSGenericLowering(CompilationInfo* info, JSGraph* graph,
- MachineOperatorBuilder* machine);
+ JSGenericLowering(JSGraph* graph, JSContextSpecializer* spec,
+ Linkage* linkage, MachineOperatorBuilder* machine);
virtual ~JSGenericLowering() {}
virtual Reduction Reduce(Node* node);
@@ -64,13 +65,12 @@ class JSGenericLowering : public Reducer {
JSGraph* jsgraph() const { return jsgraph_; }
Graph* graph() const { return jsgraph()->graph(); }
Linkage* linkage() const { return linkage_; }
- CompilationInfo* info() const { return info_; }
CommonOperatorBuilder* common() const { return jsgraph()->common(); }
MachineOperatorBuilder* machine() const { return machine_; }
private:
- CompilationInfo* info_;
JSGraph* jsgraph_;
+ JSContextSpecializer* spec_;
Linkage* linkage_;
MachineOperatorBuilder* machine_;
SetOncePointer<Node> centrystub_constant_;

Powered by Google App Engine
This is Rietveld 408576698