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

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

Issue 2161543002: [turbofan] Add support for eager/soft deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Do the ports properly Created 4 years, 5 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 | « src/compiler/js-intrinsic-lowering.cc ('k') | 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 #include "src/deoptimize-reason.h"
10 11
11 namespace v8 { 12 namespace v8 {
12 namespace internal { 13 namespace internal {
13 14
14 // Forward declarations. 15 // Forward declarations.
15 class CompilationDependencies; 16 class CompilationDependencies;
16 class Factory; 17 class Factory;
17 class FeedbackNexus; 18 class FeedbackNexus;
18 class TypeCache; 19 class TypeCache;
19 20
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 Reduction ReduceNamedAccess(Node* node, Node* value, 71 Reduction ReduceNamedAccess(Node* node, Node* value,
71 FeedbackNexus const& nexus, Handle<Name> name, 72 FeedbackNexus const& nexus, Handle<Name> name,
72 AccessMode access_mode, 73 AccessMode access_mode,
73 LanguageMode language_mode); 74 LanguageMode language_mode);
74 Reduction ReduceNamedAccess(Node* node, Node* value, 75 Reduction ReduceNamedAccess(Node* node, Node* value,
75 MapHandleList const& receiver_maps, 76 MapHandleList const& receiver_maps,
76 Handle<Name> name, AccessMode access_mode, 77 Handle<Name> name, AccessMode access_mode,
77 LanguageMode language_mode, 78 LanguageMode language_mode,
78 Node* index = nullptr); 79 Node* index = nullptr);
79 80
80 Reduction ReduceSoftDeoptimize(Node* node); 81 Reduction ReduceSoftDeoptimize(Node* node, DeoptimizeReason reason);
81 82
82 // Adds stability dependencies on all prototypes of every class in 83 // Adds stability dependencies on all prototypes of every class in
83 // {receiver_type} up to (and including) the {holder}. 84 // {receiver_type} up to (and including) the {holder}.
84 void AssumePrototypesStable(Type* receiver_type, 85 void AssumePrototypesStable(Type* receiver_type,
85 Handle<Context> native_context, 86 Handle<Context> native_context,
86 Handle<JSObject> holder); 87 Handle<JSObject> holder);
87 88
88 // Extract receiver maps from {nexus} and filter based on {receiver} if 89 // Extract receiver maps from {nexus} and filter based on {receiver} if
89 // possible. 90 // possible.
90 bool ExtractReceiverMaps(Node* receiver, Node* effect, 91 bool ExtractReceiverMaps(Node* receiver, Node* effect,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); 126 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization);
126 }; 127 };
127 128
128 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) 129 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags)
129 130
130 } // namespace compiler 131 } // namespace compiler
131 } // namespace internal 132 } // namespace internal
132 } // namespace v8 133 } // namespace v8
133 134
134 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ 135 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_
OLDNEW
« no previous file with comments | « src/compiler/js-intrinsic-lowering.cc ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698