Chromium Code Reviews| Index: src/compiler/js-context-specialization.h |
| diff --git a/src/compiler/js-context-specialization.h b/src/compiler/js-context-specialization.h |
| index b8b50ed6c36a1dbbf0f2a575892e8328c4500f36..1c0b54ffb0e5cb5acbcaf838a5a1abaa3db8cfe5 100644 |
| --- a/src/compiler/js-context-specialization.h |
| +++ b/src/compiler/js-context-specialization.h |
| @@ -16,12 +16,14 @@ namespace compiler { |
| // Specializes a given JSGraph to a given context, potentially constant folding |
| // some {LoadContext} nodes or strength reducing some {StoreContext} nodes. |
| -class JSContextSpecializer { |
| +class JSContextSpecializer : public Reducer { |
| public: |
| JSContextSpecializer(CompilationInfo* info, JSGraph* jsgraph, Node* context) |
| : info_(info), jsgraph_(jsgraph), context_(context) {} |
| - void SpecializeToContext(); |
| + virtual Reduction Reduce(Node* node) OVERRIDE; |
|
Benedikt Meurer
2014/12/01 17:51:57
According to the style guide there should be at mo
|
| + |
| + // Visible for unit testing. |
| Reduction ReduceJSLoadContext(Node* node); |
| Reduction ReduceJSStoreContext(Node* node); |