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

Unified Diff: src/compiler/operator.h

Issue 1379593002: [turbofan] Pass scope infos as static operator parameters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-turbofan-verifier
Patch Set: Fix Windows build. Created 5 years, 3 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
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/unittests/compiler/js-context-relaxation-unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/operator.h
diff --git a/src/compiler/operator.h b/src/compiler/operator.h
index 0cd0aaf1c2ce1e8389ad2b8512d60830e3935812..eba430f927c525e777213c4a762a587fd94cf1f2 100644
--- a/src/compiler/operator.h
+++ b/src/compiler/operator.h
@@ -217,6 +217,13 @@ inline Handle<String> const& OpParameter(const Operator* op) {
->parameter();
}
+template <>
+inline Handle<ScopeInfo> const& OpParameter(const Operator* op) {
+ return reinterpret_cast<
+ const Operator1<Handle<ScopeInfo>, Handle<ScopeInfo>::equal_to,
+ Handle<ScopeInfo>::hash>*>(op)->parameter();
+}
+
} // namespace compiler
} // namespace internal
} // namespace v8
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | test/unittests/compiler/js-context-relaxation-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698