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

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

Issue 10878047: Revert to code state of 3.13.1 plus r12350 (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 8 years, 4 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 class Expression; 228 class Expression;
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: public ZoneObject { 235 class TypeFeedbackOracle: public ZoneObject {
236 public: 236 public:
237 TypeFeedbackOracle(Handle<Code> code, 237 TypeFeedbackOracle(Handle<Code> code,
238 Handle<Context> native_context, 238 Handle<Context> global_context,
239 Isolate* isolate, 239 Isolate* isolate,
240 Zone* zone); 240 Zone* zone);
241 241
242 bool LoadIsMonomorphicNormal(Property* expr); 242 bool LoadIsMonomorphicNormal(Property* expr);
243 bool LoadIsUninitialized(Property* expr); 243 bool LoadIsUninitialized(Property* expr);
244 bool LoadIsMegamorphicWithTypeInfo(Property* expr); 244 bool LoadIsMegamorphicWithTypeInfo(Property* expr);
245 bool StoreIsMonomorphicNormal(TypeFeedbackId ast_id); 245 bool StoreIsMonomorphicNormal(TypeFeedbackId ast_id);
246 bool StoreIsMegamorphicWithTypeInfo(TypeFeedbackId ast_id); 246 bool StoreIsMegamorphicWithTypeInfo(TypeFeedbackId ast_id);
247 bool CallIsMonomorphic(Call* expr); 247 bool CallIsMonomorphic(Call* expr);
248 bool CallNewIsMonomorphic(CallNew* expr); 248 bool CallNewIsMonomorphic(CallNew* expr);
(...skipping 10 matching lines...) Expand all
259 void StoreReceiverTypes(Assignment* expr, 259 void StoreReceiverTypes(Assignment* expr,
260 Handle<String> name, 260 Handle<String> name,
261 SmallMapList* types); 261 SmallMapList* types);
262 void CallReceiverTypes(Call* expr, 262 void CallReceiverTypes(Call* expr,
263 Handle<String> name, 263 Handle<String> name,
264 CallKind call_kind, 264 CallKind call_kind,
265 SmallMapList* types); 265 SmallMapList* types);
266 void CollectKeyedReceiverTypes(TypeFeedbackId ast_id, 266 void CollectKeyedReceiverTypes(TypeFeedbackId ast_id,
267 SmallMapList* types); 267 SmallMapList* types);
268 268
269 static bool CanRetainOtherContext(Map* map, Context* native_context); 269 static bool CanRetainOtherContext(Map* map, Context* global_context);
270 static bool CanRetainOtherContext(JSFunction* function, 270 static bool CanRetainOtherContext(JSFunction* function,
271 Context* native_context); 271 Context* global_context);
272 272
273 CheckType GetCallCheckType(Call* expr); 273 CheckType GetCallCheckType(Call* expr);
274 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); 274 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check);
275 275
276 Handle<JSFunction> GetCallTarget(Call* expr); 276 Handle<JSFunction> GetCallTarget(Call* expr);
277 Handle<JSFunction> GetCallNewTarget(CallNew* expr); 277 Handle<JSFunction> GetCallNewTarget(CallNew* expr);
278 278
279 Handle<Map> GetObjectLiteralStoreMap(ObjectLiteral::Property* prop); 279 Handle<Map> GetObjectLiteralStoreMap(ObjectLiteral::Property* prop);
280 280
281 bool LoadIsBuiltin(Property* expr, Builtins::Name id); 281 bool LoadIsBuiltin(Property* expr, Builtins::Name id);
(...skipping 28 matching lines...) Expand all
310 void RelocateRelocInfos(ZoneList<RelocInfo>* infos, 310 void RelocateRelocInfos(ZoneList<RelocInfo>* infos,
311 byte* old_start, 311 byte* old_start,
312 byte* new_start); 312 byte* new_start);
313 void ProcessRelocInfos(ZoneList<RelocInfo>* infos); 313 void ProcessRelocInfos(ZoneList<RelocInfo>* infos);
314 void ProcessTypeFeedbackCells(Handle<Code> code); 314 void ProcessTypeFeedbackCells(Handle<Code> code);
315 315
316 // Returns an element from the backing store. Returns undefined if 316 // Returns an element from the backing store. Returns undefined if
317 // there is no information. 317 // there is no information.
318 Handle<Object> GetInfo(TypeFeedbackId ast_id); 318 Handle<Object> GetInfo(TypeFeedbackId ast_id);
319 319
320 Handle<Context> native_context_; 320 Handle<Context> global_context_;
321 Isolate* isolate_; 321 Isolate* isolate_;
322 Handle<UnseededNumberDictionary> dictionary_; 322 Handle<UnseededNumberDictionary> dictionary_;
323 Zone* zone_; 323 Zone* zone_;
324 324
325 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 325 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
326 }; 326 };
327 327
328 } } // namespace v8::internal 328 } } // namespace v8::internal
329 329
330 #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