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

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

Issue 1424733002: [turbofan] Improve deferred code handling for polymorphic property access. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Undo unrelated change. 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 enum PropertyAccessMode { kLoad, kStore }; 62 enum PropertyAccessMode { kLoad, kStore };
63 class PropertyAccessInfo; 63 class PropertyAccessInfo;
64 bool ComputePropertyAccessInfo(Handle<Map> map, Handle<Name> name, 64 bool ComputePropertyAccessInfo(Handle<Map> map, Handle<Name> name,
65 PropertyAccessMode access_mode, 65 PropertyAccessMode access_mode,
66 PropertyAccessInfo* access_info); 66 PropertyAccessInfo* access_info);
67 bool ComputePropertyAccessInfos(MapHandleList const& maps, Handle<Name> name, 67 bool ComputePropertyAccessInfos(MapHandleList const& maps, Handle<Name> name,
68 PropertyAccessMode access_mode, 68 PropertyAccessMode access_mode,
69 ZoneVector<PropertyAccessInfo>* access_infos); 69 ZoneVector<PropertyAccessInfo>* access_infos);
70 70
71 Reduction ReduceNamedAccess(Node* node, Node* value,
72 MapHandleList const& receiver_maps,
73 Handle<Name> name,
74 PropertyAccessMode access_mode);
75
71 struct ScriptContextTableLookupResult; 76 struct ScriptContextTableLookupResult;
72 bool LookupInScriptContextTable(Handle<Name> name, 77 bool LookupInScriptContextTable(Handle<Name> name,
73 ScriptContextTableLookupResult* result); 78 ScriptContextTableLookupResult* result);
74 79
75 // Adds stability dependencies on all prototypes of every class in 80 // Adds stability dependencies on all prototypes of every class in
76 // {receiver_type} up to (and including) the {holder}. 81 // {receiver_type} up to (and including) the {holder}.
77 void AssumePrototypesStable(Type* receiver_type, Handle<JSObject> holder); 82 void AssumePrototypesStable(Type* receiver_type, Handle<JSObject> holder);
78 83
79 Graph* graph() const; 84 Graph* graph() const;
80 JSGraph* jsgraph() const { return jsgraph_; } 85 JSGraph* jsgraph() const { return jsgraph_; }
(...skipping 19 matching lines...) Expand all
100 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); 105 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization);
101 }; 106 };
102 107
103 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) 108 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags)
104 109
105 } // namespace compiler 110 } // namespace compiler
106 } // namespace internal 111 } // namespace internal
107 } // namespace v8 112 } // namespace v8
108 113
109 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ 114 #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