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

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

Issue 196133017: Experimental parser: merge r19949 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 9 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/token.h ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 26 matching lines...) Expand all
37 namespace internal { 37 namespace internal {
38 38
39 // Forward declarations. 39 // Forward declarations.
40 class ICStub; 40 class ICStub;
41 class SmallMapList; 41 class SmallMapList;
42 42
43 43
44 class TypeFeedbackOracle: public ZoneObject { 44 class TypeFeedbackOracle: public ZoneObject {
45 public: 45 public:
46 TypeFeedbackOracle(Handle<Code> code, 46 TypeFeedbackOracle(Handle<Code> code,
47 Handle<FixedArray> feedback_vector,
47 Handle<Context> native_context, 48 Handle<Context> native_context,
48 Zone* zone); 49 Zone* zone);
49 50
50 bool LoadIsUninitialized(TypeFeedbackId id); 51 bool LoadIsUninitialized(TypeFeedbackId id);
51 bool StoreIsUninitialized(TypeFeedbackId id); 52 bool StoreIsUninitialized(TypeFeedbackId id);
52 bool StoreIsKeyedPolymorphic(TypeFeedbackId id); 53 bool StoreIsKeyedPolymorphic(TypeFeedbackId id);
53 bool CallIsMonomorphic(int slot); 54 bool CallIsMonomorphic(int slot);
54 bool CallIsMonomorphic(TypeFeedbackId aid); 55 bool CallIsMonomorphic(TypeFeedbackId aid);
55 bool KeyedArrayCallIsHoley(TypeFeedbackId id); 56 bool KeyedArrayCallIsHoley(TypeFeedbackId id);
56 bool CallNewIsMonomorphic(int slot); 57 bool CallNewIsMonomorphic(int slot);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 Handle<String> name, 123 Handle<String> name,
123 Code::Flags flags, 124 Code::Flags flags,
124 SmallMapList* types); 125 SmallMapList* types);
125 126
126 void SetInfo(TypeFeedbackId id, Object* target); 127 void SetInfo(TypeFeedbackId id, Object* target);
127 128
128 void BuildDictionary(Handle<Code> code); 129 void BuildDictionary(Handle<Code> code);
129 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); 130 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos);
130 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); 131 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos);
131 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, 132 void RelocateRelocInfos(ZoneList<RelocInfo>* infos,
132 byte* old_start, 133 Code* old_code,
133 byte* new_start); 134 Code* new_code);
134 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); 135 void ProcessRelocInfos(ZoneList<RelocInfo>* infos);
135 136
136 // Returns an element from the backing store. Returns undefined if 137 // Returns an element from the backing store. Returns undefined if
137 // there is no information. 138 // there is no information.
138 Handle<Object> GetInfo(TypeFeedbackId id); 139 Handle<Object> GetInfo(TypeFeedbackId id);
139 140
140 // Returns an element from the type feedback vector. Returns undefined 141 // Returns an element from the type feedback vector. Returns undefined
141 // if there is no information. 142 // if there is no information.
142 Handle<Object> GetInfo(int slot); 143 Handle<Object> GetInfo(int slot);
143 144
144 private: 145 private:
145 Handle<Context> native_context_; 146 Handle<Context> native_context_;
146 Zone* zone_; 147 Zone* zone_;
147 Handle<UnseededNumberDictionary> dictionary_; 148 Handle<UnseededNumberDictionary> dictionary_;
148 Handle<FixedArray> feedback_vector_; 149 Handle<FixedArray> feedback_vector_;
149 150
150 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 151 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
151 }; 152 };
152 153
153 } } // namespace v8::internal 154 } } // namespace v8::internal
154 155
155 #endif // V8_TYPE_INFO_H_ 156 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/token.h ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698