OLD | NEW |
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 #include "src/compiler/js-native-context-specialization.h" | 5 #include "src/compiler/js-native-context-specialization.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/compilation-dependencies.h" | 9 #include "src/compilation-dependencies.h" |
10 #include "src/compiler/access-builder.h" | 10 #include "src/compiler/access-builder.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 struct JSNativeContextSpecialization::ScriptContextTableLookupResult { | 26 struct JSNativeContextSpecialization::ScriptContextTableLookupResult { |
27 Handle<Context> context; | 27 Handle<Context> context; |
28 bool immutable; | 28 bool immutable; |
29 int index; | 29 int index; |
30 }; | 30 }; |
31 | 31 |
32 | 32 |
33 JSNativeContextSpecialization::JSNativeContextSpecialization( | 33 JSNativeContextSpecialization::JSNativeContextSpecialization( |
34 Editor* editor, JSGraph* jsgraph, Flags flags, | 34 Editor* editor, JSGraph* jsgraph, Flags flags, |
35 Handle<GlobalObject> global_object, CompilationDependencies* dependencies, | 35 Handle<JSGlobalObject> global_object, CompilationDependencies* dependencies, |
36 Zone* zone) | 36 Zone* zone) |
37 : AdvancedReducer(editor), | 37 : AdvancedReducer(editor), |
38 jsgraph_(jsgraph), | 38 jsgraph_(jsgraph), |
39 flags_(flags), | 39 flags_(flags), |
40 global_object_(global_object), | 40 global_object_(global_object), |
41 native_context_(global_object->native_context(), isolate()), | 41 native_context_(global_object->native_context(), isolate()), |
42 dependencies_(dependencies), | 42 dependencies_(dependencies), |
43 zone_(zone), | 43 zone_(zone), |
44 type_cache_(TypeCache::Get()), | 44 type_cache_(TypeCache::Get()), |
45 access_info_factory_(dependencies, native_context(), graph()->zone()) {} | 45 access_info_factory_(dependencies, native_context(), graph()->zone()) {} |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 } | 824 } |
825 | 825 |
826 | 826 |
827 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { | 827 SimplifiedOperatorBuilder* JSNativeContextSpecialization::simplified() const { |
828 return jsgraph()->simplified(); | 828 return jsgraph()->simplified(); |
829 } | 829 } |
830 | 830 |
831 } // namespace compiler | 831 } // namespace compiler |
832 } // namespace internal | 832 } // namespace internal |
833 } // namespace v8 | 833 } // namespace v8 |
OLD | NEW |