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

Side by Side Diff: src/compiler/js-native-context-specialization.h

Issue 1972563002: [turbofan] Infer some receiver maps when lowering loads/stores. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Make tests happy. Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ 5 #ifndef V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_
6 #define V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ 6 #define V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/compiler/graph-reducer.h" 9 #include "src/compiler/graph-reducer.h"
10 10
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 Node* index = nullptr); 78 Node* index = nullptr);
79 79
80 Reduction ReduceSoftDeoptimize(Node* node); 80 Reduction ReduceSoftDeoptimize(Node* node);
81 81
82 // Adds stability dependencies on all prototypes of every class in 82 // Adds stability dependencies on all prototypes of every class in
83 // {receiver_type} up to (and including) the {holder}. 83 // {receiver_type} up to (and including) the {holder}.
84 void AssumePrototypesStable(Type* receiver_type, 84 void AssumePrototypesStable(Type* receiver_type,
85 Handle<Context> native_context, 85 Handle<Context> native_context,
86 Handle<JSObject> holder); 86 Handle<JSObject> holder);
87 87
88 // Extract receiver maps from {nexus} and filter based on {receiver} if
89 // possible.
90 bool ExtractReceiverMaps(Node* receiver, Node* effect,
91 FeedbackNexus const& nexus,
92 MapHandleList* receiver_maps);
93
94 // Try to infer a map for the given {receiver} at the current {effect}.
95 // If a map is returned then you can be sure that the {receiver} definitely
96 // has the returned map at this point in the program (identified by {effect}).
97 MaybeHandle<Map> InferReceiverMap(Node* receiver, Node* effect);
98 // Try to infer a root map for the {receiver} independent of the current
99 // program location.
100 MaybeHandle<Map> InferReceiverRootMap(Node* receiver);
101
88 // Retrieve the native context from the given {node} if known. 102 // Retrieve the native context from the given {node} if known.
89 MaybeHandle<Context> GetNativeContext(Node* node); 103 MaybeHandle<Context> GetNativeContext(Node* node);
90 104
91 Graph* graph() const; 105 Graph* graph() const;
92 JSGraph* jsgraph() const { return jsgraph_; } 106 JSGraph* jsgraph() const { return jsgraph_; }
93 Isolate* isolate() const; 107 Isolate* isolate() const;
94 Factory* factory() const; 108 Factory* factory() const;
95 CommonOperatorBuilder* common() const; 109 CommonOperatorBuilder* common() const;
96 JSOperatorBuilder* javascript() const; 110 JSOperatorBuilder* javascript() const;
97 SimplifiedOperatorBuilder* simplified() const; 111 SimplifiedOperatorBuilder* simplified() const;
(...skipping 13 matching lines...) Expand all
111 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); 125 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization);
112 }; 126 };
113 127
114 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) 128 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags)
115 129
116 } // namespace compiler 130 } // namespace compiler
117 } // namespace internal 131 } // namespace internal
118 } // namespace v8 132 } // namespace v8
119 133
120 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ 134 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698