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

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

Issue 8892002: Filter out maps from different global context when collecting type feedback. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: addressed latest comments Created 9 years 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 void StoreReceiverTypes(Assignment* expr, 249 void StoreReceiverTypes(Assignment* expr,
250 Handle<String> name, 250 Handle<String> name,
251 SmallMapList* types); 251 SmallMapList* types);
252 void CallReceiverTypes(Call* expr, 252 void CallReceiverTypes(Call* expr,
253 Handle<String> name, 253 Handle<String> name,
254 CallKind call_kind, 254 CallKind call_kind,
255 SmallMapList* types); 255 SmallMapList* types);
256 void CollectKeyedReceiverTypes(unsigned ast_id, 256 void CollectKeyedReceiverTypes(unsigned ast_id,
257 SmallMapList* types); 257 SmallMapList* types);
258 258
259 static bool CanRetainOtherContext(Map* map, Context* global_context);
260 static bool CanRetainOtherContext(JSFunction* function,
261 Context* global_context);
262
259 CheckType GetCallCheckType(Call* expr); 263 CheckType GetCallCheckType(Call* expr);
260 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); 264 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check);
261 265
262 Handle<JSFunction> GetCallTarget(Call* expr); 266 Handle<JSFunction> GetCallTarget(Call* expr);
263 267
264 bool LoadIsBuiltin(Property* expr, Builtins::Name id); 268 bool LoadIsBuiltin(Property* expr, Builtins::Name id);
265 269
266 // TODO(1571) We can't use ToBooleanStub::Types as the return value because 270 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
267 // of various cylces in our headers. Death to tons of implementations in 271 // of various cylces in our headers. Death to tons of implementations in
268 // headers!! :-P 272 // headers!! :-P
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 Handle<Context> global_context_; 304 Handle<Context> global_context_;
301 Isolate* isolate_; 305 Isolate* isolate_;
302 Handle<NumberDictionary> dictionary_; 306 Handle<NumberDictionary> dictionary_;
303 307
304 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 308 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
305 }; 309 };
306 310
307 } } // namespace v8::internal 311 } } // namespace v8::internal
308 312
309 #endif // V8_TYPE_INFO_H_ 313 #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