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

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

Issue 408193002: Move function prototype handling into a special handler rather than IC (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Don't ensure that the IC state is monomorphic, but rather that the stubcache only contains handlers Created 6 years, 5 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/stub-cache.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 "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/types.h" 10 #include "src/types.h"
(...skipping 23 matching lines...) Expand all
34 bool CallNewIsMonomorphic(int slot); 34 bool CallNewIsMonomorphic(int slot);
35 35
36 // TODO(1571) We can't use ForInStatement::ForInType as the return value due 36 // TODO(1571) We can't use ForInStatement::ForInType as the return value due
37 // to various cycles in our headers. 37 // to various cycles in our headers.
38 // TODO(rossberg): once all oracle access is removed from ast.cc, it should 38 // TODO(rossberg): once all oracle access is removed from ast.cc, it should
39 // be possible. 39 // be possible.
40 byte ForInType(int feedback_vector_slot); 40 byte ForInType(int feedback_vector_slot);
41 41
42 KeyedAccessStoreMode GetStoreMode(TypeFeedbackId id); 42 KeyedAccessStoreMode GetStoreMode(TypeFeedbackId id);
43 43
44 void PropertyReceiverTypes(TypeFeedbackId id, 44 void PropertyReceiverTypes(TypeFeedbackId id, Handle<String> name,
45 Handle<String> name, 45 SmallMapList* receiver_types);
46 SmallMapList* receiver_types,
47 bool* is_prototype);
48 void KeyedPropertyReceiverTypes(TypeFeedbackId id, 46 void KeyedPropertyReceiverTypes(TypeFeedbackId id,
49 SmallMapList* receiver_types, 47 SmallMapList* receiver_types,
50 bool* is_string); 48 bool* is_string);
51 void AssignmentReceiverTypes(TypeFeedbackId id, 49 void AssignmentReceiverTypes(TypeFeedbackId id,
52 Handle<String> name, 50 Handle<String> name,
53 SmallMapList* receiver_types); 51 SmallMapList* receiver_types);
54 void KeyedAssignmentReceiverTypes(TypeFeedbackId id, 52 void KeyedAssignmentReceiverTypes(TypeFeedbackId id,
55 SmallMapList* receiver_types, 53 SmallMapList* receiver_types,
56 KeyedAccessStoreMode* store_mode); 54 KeyedAccessStoreMode* store_mode);
57 void CountReceiverTypes(TypeFeedbackId id, 55 void CountReceiverTypes(TypeFeedbackId id,
58 SmallMapList* receiver_types); 56 SmallMapList* receiver_types);
59 57
60 void CollectReceiverTypes(TypeFeedbackId id, 58 void CollectReceiverTypes(TypeFeedbackId id,
61 SmallMapList* types); 59 SmallMapList* types);
62 60
63 static bool CanRetainOtherContext(Map* map, Context* native_context); 61 static bool CanRetainOtherContext(Map* map, Context* native_context);
64 static bool CanRetainOtherContext(JSFunction* function, 62 static bool CanRetainOtherContext(JSFunction* function,
65 Context* native_context); 63 Context* native_context);
66 64
67 Handle<JSFunction> GetCallTarget(int slot); 65 Handle<JSFunction> GetCallTarget(int slot);
68 Handle<AllocationSite> GetCallAllocationSite(int slot); 66 Handle<AllocationSite> GetCallAllocationSite(int slot);
69 Handle<JSFunction> GetCallNewTarget(int slot); 67 Handle<JSFunction> GetCallNewTarget(int slot);
70 Handle<AllocationSite> GetCallNewAllocationSite(int slot); 68 Handle<AllocationSite> GetCallNewAllocationSite(int slot);
71 69
72 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id); 70 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id);
73 bool LoadIsStub(TypeFeedbackId id, ICStub* stub);
74 71
75 // TODO(1571) We can't use ToBooleanStub::Types as the return value because 72 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
76 // of various cycles in our headers. Death to tons of implementations in 73 // of various cycles in our headers. Death to tons of implementations in
77 // headers!! :-P 74 // headers!! :-P
78 byte ToBooleanTypes(TypeFeedbackId id); 75 byte ToBooleanTypes(TypeFeedbackId id);
79 76
80 // Get type information for arithmetic operations and compares. 77 // Get type information for arithmetic operations and compares.
81 void BinaryType(TypeFeedbackId id, 78 void BinaryType(TypeFeedbackId id,
82 Type** left, 79 Type** left,
83 Type** right, 80 Type** right,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 Zone* zone_; 122 Zone* zone_;
126 Handle<UnseededNumberDictionary> dictionary_; 123 Handle<UnseededNumberDictionary> dictionary_;
127 Handle<FixedArray> feedback_vector_; 124 Handle<FixedArray> feedback_vector_;
128 125
129 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 126 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
130 }; 127 };
131 128
132 } } // namespace v8::internal 129 } } // namespace v8::internal
133 130
134 #endif // V8_TYPE_INFO_H_ 131 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698