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

Unified Diff: src/compiler/node-properties.h

Issue 1451143005: [turbofan] Decouple inlining and native context specialization. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove misleading comment about MaybeHandle. Created 5 years, 1 month 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-native-context-specialization.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/node-properties.h
diff --git a/src/compiler/node-properties.h b/src/compiler/node-properties.h
index 9534ef3c3bfd5e629e6a1d2ff364432aa119c7ab..8019019cba1865fa78f6ca48b59d56b025722f72 100644
--- a/src/compiler/node-properties.h
+++ b/src/compiler/node-properties.h
@@ -116,6 +116,27 @@ class NodeProperties final {
static void CollectControlProjections(Node* node, Node** proj, size_t count);
// ---------------------------------------------------------------------------
+ // Context.
+
+ // Try to retrieve the specialization context from the given {node},
+ // optionally utilizing the knowledge about the (outermost) function
+ // {context}.
+ static MaybeHandle<Context> GetSpecializationContext(
+ Node* node, MaybeHandle<Context> context = MaybeHandle<Context>());
+
+ // Try to retrieve the specialization native context from the given
+ // {node}, optionally utilizing the knowledge about the (outermost)
+ // {native_context}.
+ static MaybeHandle<Context> GetSpecializationNativeContext(
+ Node* node, MaybeHandle<Context> native_context = MaybeHandle<Context>());
+
+ // Try to retrieve the specialization global object from the given
+ // {node}, optionally utilizing the knowledge about the (outermost)
+ // {native_context}.
+ static MaybeHandle<JSGlobalObject> GetSpecializationGlobalObject(
+ Node* node, MaybeHandle<Context> native_context = MaybeHandle<Context>());
+
+ // ---------------------------------------------------------------------------
// Type.
static bool IsTyped(Node* node) { return node->type() != nullptr; }
« no previous file with comments | « src/compiler/js-native-context-specialization.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698