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

Unified Diff: src/compiler/js-context-specialization.h

Issue 1196623002: [ubsan] Fix HeapObjectMatcher to avoid invalid casts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE Created 5 years, 6 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-context-specialization.h
diff --git a/src/compiler/js-context-specialization.h b/src/compiler/js-context-specialization.h
index f01ac3f9707e702bb15c1299d5a7d57c7901e7d5..1f0c2b817ad3ebcbcf83df508fb6f31414db820c 100644
--- a/src/compiler/js-context-specialization.h
+++ b/src/compiler/js-context-specialization.h
@@ -6,13 +6,16 @@
#define V8_COMPILER_JS_CONTEXT_SPECIALIZATION_H_
#include "src/compiler/graph-reducer.h"
-#include "src/compiler/js-graph.h"
-#include "src/contexts.h"
namespace v8 {
namespace internal {
namespace compiler {
+// Forward declarations.
+class JSGraph;
+class JSOperatorBuilder;
+
+
// Specializes a given JSGraph to a given context, potentially constant folding
// some {LoadContext} nodes or strength reducing some {StoreContext} nodes.
class JSContextSpecializer : public AdvancedReducer {
@@ -27,10 +30,17 @@ class JSContextSpecializer : public AdvancedReducer {
Reduction ReduceJSStoreContext(Node* node);
private:
- JSGraph* jsgraph_;
+ Isolate* isolate() const;
+ JSOperatorBuilder* javascript() const;
+ JSGraph* jsgraph() const { return jsgraph_; }
+
+ JSGraph* const jsgraph_;
+
+ DISALLOW_COPY_AND_ASSIGN(JSContextSpecializer);
};
-}
-}
-} // namespace v8::internal::compiler
+
+} // namespace compiler
+} // namespace internal
+} // namespace v8
#endif // V8_COMPILER_JS_CONTEXT_SPECIALIZATION_H_

Powered by Google App Engine
This is Rietveld 408576698