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

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

Issue 10534006: Remove TLS access for current Zone. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review. Created 8 years, 6 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 // 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 class Property; 229 class Property;
230 class SmallMapList; 230 class SmallMapList;
231 class UnaryOperation; 231 class UnaryOperation;
232 class ForInStatement; 232 class ForInStatement;
233 233
234 234
235 class TypeFeedbackOracle BASE_EMBEDDED { 235 class TypeFeedbackOracle BASE_EMBEDDED {
236 public: 236 public:
237 TypeFeedbackOracle(Handle<Code> code, 237 TypeFeedbackOracle(Handle<Code> code,
238 Handle<Context> global_context, 238 Handle<Context> global_context,
239 Isolate* isolate); 239 Isolate* isolate,
240 Zone* zone);
240 241
241 bool LoadIsMonomorphicNormal(Property* expr); 242 bool LoadIsMonomorphicNormal(Property* expr);
242 bool LoadIsUninitialized(Property* expr); 243 bool LoadIsUninitialized(Property* expr);
243 bool LoadIsMegamorphicWithTypeInfo(Property* expr); 244 bool LoadIsMegamorphicWithTypeInfo(Property* expr);
244 bool StoreIsMonomorphicNormal(Expression* expr); 245 bool StoreIsMonomorphicNormal(Expression* expr);
245 bool StoreIsMegamorphicWithTypeInfo(Expression* expr); 246 bool StoreIsMegamorphicWithTypeInfo(Expression* expr);
246 bool CallIsMonomorphic(Call* expr); 247 bool CallIsMonomorphic(Call* expr);
247 bool CallNewIsMonomorphic(CallNew* expr); 248 bool CallNewIsMonomorphic(CallNew* expr);
248 bool ObjectLiteralStoreIsMonomorphic(ObjectLiteral::Property* prop); 249 bool ObjectLiteralStoreIsMonomorphic(ObjectLiteral::Property* prop);
249 250
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 287
287 // Get type information for arithmetic operations and compares. 288 // Get type information for arithmetic operations and compares.
288 TypeInfo UnaryType(UnaryOperation* expr); 289 TypeInfo UnaryType(UnaryOperation* expr);
289 TypeInfo BinaryType(BinaryOperation* expr); 290 TypeInfo BinaryType(BinaryOperation* expr);
290 TypeInfo CompareType(CompareOperation* expr); 291 TypeInfo CompareType(CompareOperation* expr);
291 bool IsSymbolCompare(CompareOperation* expr); 292 bool IsSymbolCompare(CompareOperation* expr);
292 Handle<Map> GetCompareMap(CompareOperation* expr); 293 Handle<Map> GetCompareMap(CompareOperation* expr);
293 TypeInfo SwitchType(CaseClause* clause); 294 TypeInfo SwitchType(CaseClause* clause);
294 TypeInfo IncrementType(CountOperation* expr); 295 TypeInfo IncrementType(CountOperation* expr);
295 296
297 Zone* zone() const { return zone_; }
298
296 private: 299 private:
297 void CollectReceiverTypes(unsigned ast_id, 300 void CollectReceiverTypes(unsigned ast_id,
298 Handle<String> name, 301 Handle<String> name,
299 Code::Flags flags, 302 Code::Flags flags,
300 SmallMapList* types); 303 SmallMapList* types);
301 304
302 void SetInfo(unsigned ast_id, Object* target); 305 void SetInfo(unsigned ast_id, Object* target);
303 306
304 void BuildDictionary(Handle<Code> code); 307 void BuildDictionary(Handle<Code> code);
305 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos); 308 void GetRelocInfos(Handle<Code> code, ZoneList<RelocInfo>* infos);
306 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos); 309 void CreateDictionary(Handle<Code> code, ZoneList<RelocInfo>* infos);
307 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, 310 void RelocateRelocInfos(ZoneList<RelocInfo>* infos,
308 byte* old_start, 311 byte* old_start,
309 byte* new_start); 312 byte* new_start);
310 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); 313 void ProcessRelocInfos(ZoneList<RelocInfo>* infos);
311 void ProcessTypeFeedbackCells(Handle<Code> code); 314 void ProcessTypeFeedbackCells(Handle<Code> code);
312 315
313 // Returns an element from the backing store. Returns undefined if 316 // Returns an element from the backing store. Returns undefined if
314 // there is no information. 317 // there is no information.
315 Handle<Object> GetInfo(unsigned ast_id); 318 Handle<Object> GetInfo(unsigned ast_id);
316 319
317 Handle<Context> global_context_; 320 Handle<Context> global_context_;
318 Isolate* isolate_; 321 Isolate* isolate_;
319 Handle<UnseededNumberDictionary> dictionary_; 322 Handle<UnseededNumberDictionary> dictionary_;
323 Zone* zone_;
320 324
321 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 325 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
322 }; 326 };
323 327
324 } } // namespace v8::internal 328 } } // namespace v8::internal
325 329
326 #endif // V8_TYPE_INFO_H_ 330 #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