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

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

Issue 9304001: Implement inlining of constructor calls. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed moar comments by Vyacheslav Egorov. Created 8 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/runtime.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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 SmallMapList* types); 260 SmallMapList* types);
261 261
262 static bool CanRetainOtherContext(Map* map, Context* global_context); 262 static bool CanRetainOtherContext(Map* map, Context* global_context);
263 static bool CanRetainOtherContext(JSFunction* function, 263 static bool CanRetainOtherContext(JSFunction* function,
264 Context* global_context); 264 Context* global_context);
265 265
266 CheckType GetCallCheckType(Call* expr); 266 CheckType GetCallCheckType(Call* expr);
267 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check); 267 Handle<JSObject> GetPrototypeForPrimitiveCheck(CheckType check);
268 268
269 Handle<JSFunction> GetCallTarget(Call* expr); 269 Handle<JSFunction> GetCallTarget(Call* expr);
270 Handle<JSFunction> GetCallNewTarget(CallNew* expr);
270 271
271 bool LoadIsBuiltin(Property* expr, Builtins::Name id); 272 bool LoadIsBuiltin(Property* expr, Builtins::Name id);
272 273
273 // TODO(1571) We can't use ToBooleanStub::Types as the return value because 274 // TODO(1571) We can't use ToBooleanStub::Types as the return value because
274 // of various cylces in our headers. Death to tons of implementations in 275 // of various cylces in our headers. Death to tons of implementations in
275 // headers!! :-P 276 // headers!! :-P
276 byte ToBooleanTypes(unsigned ast_id); 277 byte ToBooleanTypes(unsigned ast_id);
277 278
278 // Get type information for arithmetic operations and compares. 279 // Get type information for arithmetic operations and compares.
279 TypeInfo UnaryType(UnaryOperation* expr); 280 TypeInfo UnaryType(UnaryOperation* expr);
(...skipping 28 matching lines...) Expand all
308 Handle<Context> global_context_; 309 Handle<Context> global_context_;
309 Isolate* isolate_; 310 Isolate* isolate_;
310 Handle<UnseededNumberDictionary> dictionary_; 311 Handle<UnseededNumberDictionary> dictionary_;
311 312
312 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 313 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
313 }; 314 };
314 315
315 } } // namespace v8::internal 316 } } // namespace v8::internal
316 317
317 #endif // V8_TYPE_INFO_H_ 318 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698