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

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

Issue 1428923002: [turbofan] Specialize JSCallFunction based on CallIC feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 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 #include "src/compiler/simplified-operator.h" 10 #include "src/compiler/simplified-operator.h"
(...skipping 30 matching lines...) Expand all
41 typedef base::Flags<Flag> Flags; 41 typedef base::Flags<Flag> Flags;
42 42
43 JSNativeContextSpecialization(Editor* editor, JSGraph* jsgraph, Flags flags, 43 JSNativeContextSpecialization(Editor* editor, JSGraph* jsgraph, Flags flags,
44 Handle<GlobalObject> global_object, 44 Handle<GlobalObject> global_object,
45 CompilationDependencies* dependencies, 45 CompilationDependencies* dependencies,
46 Zone* zone); 46 Zone* zone);
47 47
48 Reduction Reduce(Node* node) final; 48 Reduction Reduce(Node* node) final;
49 49
50 private: 50 private:
51 Reduction ReduceJSCallFunction(Node* node);
51 Reduction ReduceJSLoadGlobal(Node* node); 52 Reduction ReduceJSLoadGlobal(Node* node);
52 Reduction ReduceJSStoreGlobal(Node* node); 53 Reduction ReduceJSStoreGlobal(Node* node);
53 Reduction ReduceJSLoadNamed(Node* node); 54 Reduction ReduceJSLoadNamed(Node* node);
54 Reduction ReduceJSStoreNamed(Node* node); 55 Reduction ReduceJSStoreNamed(Node* node);
55 56
56 Reduction Replace(Node* node, Node* value, Node* effect = nullptr, 57 Reduction Replace(Node* node, Node* value, Node* effect = nullptr,
57 Node* control = nullptr) { 58 Node* control = nullptr) {
58 ReplaceWithValue(node, value, effect, control); 59 ReplaceWithValue(node, value, effect, control);
59 return Changed(value); 60 return Changed(value);
60 } 61 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); 108 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization);
108 }; 109 };
109 110
110 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) 111 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags)
111 112
112 } // namespace compiler 113 } // namespace compiler
113 } // namespace internal 114 } // namespace internal
114 } // namespace v8 115 } // namespace v8
115 116
116 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ 117 #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