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

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

Issue 2770003002: Set the current context to the function's context when entering to LAP. (Closed)
Patch Set: Crashing at cctest test-accessors/AccessorIC Created 3 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 unified diff | Download patch
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 #include "src/deoptimize-reason.h" 10 #include "src/deoptimize-reason.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 Node* InlinePropertyGetterCall(Node* receiver, Node* context, 135 Node* InlinePropertyGetterCall(Node* receiver, Node* context,
136 Node* frame_state, Node** effect, 136 Node* frame_state, Node** effect,
137 Node** control, 137 Node** control,
138 ZoneVector<Node*>* if_exceptions, 138 ZoneVector<Node*>* if_exceptions,
139 PropertyAccessInfo const& access_info); 139 PropertyAccessInfo const& access_info);
140 Node* InlinePropertySetterCall(Node* receiver, Node* value, Node* context, 140 Node* InlinePropertySetterCall(Node* receiver, Node* value, Node* context,
141 Node* frame_state, Node** effect, 141 Node* frame_state, Node** effect,
142 Node** control, 142 Node** control,
143 ZoneVector<Node*>* if_exceptions, 143 ZoneVector<Node*>* if_exceptions,
144 PropertyAccessInfo const& access_info); 144 PropertyAccessInfo const& access_info);
145 Node* InlineApiCall(Node* receiver, Node* context, Node* target, 145 Node* InlineApiCall(Node* receiver, Node* holder, Node* context, Node* target,
146 Node* frame_state, Node* value, Node** effect, 146 Node* frame_state, Node* value, Node** effect,
147 Node** control, Handle<SharedFunctionInfo> shared_info, 147 Node** control, Handle<SharedFunctionInfo> shared_info,
148 Handle<FunctionTemplateInfo> function_template_info); 148 Handle<FunctionTemplateInfo> function_template_info);
149 149
150 // Construct the appropriate subgraph for element access. 150 // Construct the appropriate subgraph for element access.
151 ValueEffectControl BuildElementAccess(Node* receiver, Node* index, 151 ValueEffectControl BuildElementAccess(Node* receiver, Node* index,
152 Node* value, Node* effect, 152 Node* value, Node* effect,
153 Node* control, 153 Node* control,
154 ElementAccessInfo const& access_info, 154 ElementAccessInfo const& access_info,
155 AccessMode access_mode, 155 AccessMode access_mode,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); 223 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization);
224 }; 224 };
225 225
226 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) 226 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags)
227 227
228 } // namespace compiler 228 } // namespace compiler
229 } // namespace internal 229 } // namespace internal
230 } // namespace v8 230 } // namespace v8
231 231
232 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ 232 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698