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

Side by Side Diff: src/type-info.h

Issue 279423005: Customized support for feedback on calls to Array. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase and comments. Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/objects.cc ('k') | src/type-info.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_TYPE_INFO_H_ 5 #ifndef V8_TYPE_INFO_H_
6 #define V8_TYPE_INFO_H_ 6 #define V8_TYPE_INFO_H_
7 7
8 #include "allocation.h" 8 #include "allocation.h"
9 #include "globals.h" 9 #include "globals.h"
10 #include "types.h" 10 #include "types.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 SmallMapList* receiver_types); 58 SmallMapList* receiver_types);
59 59
60 void CollectReceiverTypes(TypeFeedbackId id, 60 void CollectReceiverTypes(TypeFeedbackId id,
61 SmallMapList* types); 61 SmallMapList* types);
62 62
63 static bool CanRetainOtherContext(Map* map, Context* native_context); 63 static bool CanRetainOtherContext(Map* map, Context* native_context);
64 static bool CanRetainOtherContext(JSFunction* function, 64 static bool CanRetainOtherContext(JSFunction* function,
65 Context* native_context); 65 Context* native_context);
66 66
67 Handle<JSFunction> GetCallTarget(int slot); 67 Handle<JSFunction> GetCallTarget(int slot);
68 Handle<AllocationSite> GetCallAllocationSite(int slot);
68 Handle<JSFunction> GetCallNewTarget(int slot); 69 Handle<JSFunction> GetCallNewTarget(int slot);
69 Handle<AllocationSite> GetCallNewAllocationSite(int slot); 70 Handle<AllocationSite> GetCallNewAllocationSite(int slot);
70 71
71 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id); 72 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id);
72 bool LoadIsStub(TypeFeedbackId id, ICStub* stub); 73 bool LoadIsStub(TypeFeedbackId id, ICStub* stub);
73 74
74 // TODO(1571) We can't use ToBooleanStub::Types as the return value because 75 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
75 // of various cycles in our headers. Death to tons of implementations in 76 // of various cycles in our headers. Death to tons of implementations in
76 // headers!! :-P 77 // headers!! :-P
77 byte ToBooleanTypes(TypeFeedbackId id); 78 byte ToBooleanTypes(TypeFeedbackId id);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 Zone* zone_; 125 Zone* zone_;
125 Handle<UnseededNumberDictionary> dictionary_; 126 Handle<UnseededNumberDictionary> dictionary_;
126 Handle<FixedArray> feedback_vector_; 127 Handle<FixedArray> feedback_vector_;
127 128
128 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 129 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
129 }; 130 };
130 131
131 } } // namespace v8::internal 132 } } // namespace v8::internal
132 133
133 #endif // V8_TYPE_INFO_H_ 134 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698