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

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

Issue 2743253002: [turbofan] Skip JSCallReducer and JSNativeContextSpecialization on asm.js. (Closed)
Patch Set: REBASE Created 3 years, 9 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-call-reducer.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 #include "src/deoptimize-reason.h"
(...skipping 22 matching lines...) Expand all
33 // Specializes a given JSGraph to a given native context, potentially constant 33 // Specializes a given JSGraph to a given native context, potentially constant
34 // folding some {LoadGlobal} nodes or strength reducing some {StoreGlobal} 34 // folding some {LoadGlobal} nodes or strength reducing some {StoreGlobal}
35 // nodes. And also specializes {LoadNamed} and {StoreNamed} nodes according 35 // nodes. And also specializes {LoadNamed} and {StoreNamed} nodes according
36 // to type feedback (if available). 36 // to type feedback (if available).
37 class JSNativeContextSpecialization final : public AdvancedReducer { 37 class JSNativeContextSpecialization final : public AdvancedReducer {
38 public: 38 public:
39 // Flags that control the mode of operation. 39 // Flags that control the mode of operation.
40 enum Flag { 40 enum Flag {
41 kNoFlags = 0u, 41 kNoFlags = 0u,
42 kAccessorInliningEnabled = 1u << 0, 42 kAccessorInliningEnabled = 1u << 0,
43 kBailoutOnUninitialized = 1u << 1, 43 kBailoutOnUninitialized = 1u << 1
44 kDeoptimizationEnabled = 1u << 2,
45 }; 44 };
46 typedef base::Flags<Flag> Flags; 45 typedef base::Flags<Flag> Flags;
47 46
48 JSNativeContextSpecialization(Editor* editor, JSGraph* jsgraph, Flags flags, 47 JSNativeContextSpecialization(Editor* editor, JSGraph* jsgraph, Flags flags,
49 Handle<Context> native_context, 48 Handle<Context> native_context,
50 CompilationDependencies* dependencies, 49 CompilationDependencies* dependencies,
51 Zone* zone); 50 Zone* zone);
52 51
53 Reduction Reduce(Node* node) final; 52 Reduction Reduce(Node* node) final;
54 53
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); 196 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization);
198 }; 197 };
199 198
200 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) 199 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags)
201 200
202 } // namespace compiler 201 } // namespace compiler
203 } // namespace internal 202 } // namespace internal
204 } // namespace v8 203 } // namespace v8
205 204
206 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ 205 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_
OLDNEW
« no previous file with comments | « src/compiler/js-call-reducer.cc ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698