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

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

Issue 1409763004: [types] Use the TypeCache consistently for common types. (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 | « 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/compiler/simplified-operator.h" 10 #include "src/compiler/simplified-operator.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 14
15 // Forward declarations. 15 // Forward declarations.
16 class CompilationDependencies; 16 class CompilationDependencies;
17 class Factory; 17 class Factory;
18 class TypeCache;
18 19
19 20
20 namespace compiler { 21 namespace compiler {
21 22
22 // Forward declarations. 23 // Forward declarations.
23 class CommonOperatorBuilder; 24 class CommonOperatorBuilder;
24 class JSGraph; 25 class JSGraph;
25 class JSOperatorBuilder; 26 class JSOperatorBuilder;
26 class MachineOperatorBuilder; 27 class MachineOperatorBuilder;
27 28
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 Handle<Context> native_context() const { return native_context_; } 95 Handle<Context> native_context() const { return native_context_; }
95 CompilationDependencies* dependencies() const { return dependencies_; } 96 CompilationDependencies* dependencies() const { return dependencies_; }
96 Zone* zone() const { return zone_; } 97 Zone* zone() const { return zone_; }
97 98
98 JSGraph* const jsgraph_; 99 JSGraph* const jsgraph_;
99 Flags const flags_; 100 Flags const flags_;
100 Handle<GlobalObject> global_object_; 101 Handle<GlobalObject> global_object_;
101 Handle<Context> native_context_; 102 Handle<Context> native_context_;
102 CompilationDependencies* const dependencies_; 103 CompilationDependencies* const dependencies_;
103 Zone* const zone_; 104 Zone* const zone_;
105 TypeCache const& type_cache_;
104 106
105 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); 107 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization);
106 }; 108 };
107 109
108 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) 110 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags)
109 111
110 } // namespace compiler 112 } // namespace compiler
111 } // namespace internal 113 } // namespace internal
112 } // namespace v8 114 } // namespace v8
113 115
114 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ 116 #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