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

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

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, 10 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/type-info.h ('k') | src/x64/builtins-x64.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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 ASSERT(function != NULL); 241 ASSERT(function != NULL);
242 return Handle<JSObject>(JSObject::cast(function->instance_prototype())); 242 return Handle<JSObject>(JSObject::cast(function->instance_prototype()));
243 } 243 }
244 244
245 245
246 Handle<JSFunction> TypeFeedbackOracle::GetCallTarget(Call* expr) { 246 Handle<JSFunction> TypeFeedbackOracle::GetCallTarget(Call* expr) {
247 return Handle<JSFunction>::cast(GetInfo(expr->id())); 247 return Handle<JSFunction>::cast(GetInfo(expr->id()));
248 } 248 }
249 249
250 250
251 Handle<JSFunction> TypeFeedbackOracle::GetCallNewTarget(CallNew* expr) {
252 return Handle<JSFunction>::cast(GetInfo(expr->id()));
253 }
254
255
251 bool TypeFeedbackOracle::LoadIsBuiltin(Property* expr, Builtins::Name id) { 256 bool TypeFeedbackOracle::LoadIsBuiltin(Property* expr, Builtins::Name id) {
252 return *GetInfo(expr->id()) == 257 return *GetInfo(expr->id()) ==
253 isolate_->builtins()->builtin(id); 258 isolate_->builtins()->builtin(id);
254 } 259 }
255 260
256 261
257 TypeInfo TypeFeedbackOracle::CompareType(CompareOperation* expr) { 262 TypeInfo TypeFeedbackOracle::CompareType(CompareOperation* expr) {
258 Handle<Object> object = GetInfo(expr->id()); 263 Handle<Object> object = GetInfo(expr->id());
259 TypeInfo unknown = TypeInfo::Unknown(); 264 TypeInfo unknown = TypeInfo::Unknown();
260 if (!object->IsCode()) return unknown; 265 if (!object->IsCode()) return unknown;
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 USE(maybe_result); 659 USE(maybe_result);
655 #ifdef DEBUG 660 #ifdef DEBUG
656 Object* result = NULL; 661 Object* result = NULL;
657 // Dictionary has been allocated with sufficient size for all elements. 662 // Dictionary has been allocated with sufficient size for all elements.
658 ASSERT(maybe_result->ToObject(&result)); 663 ASSERT(maybe_result->ToObject(&result));
659 ASSERT(*dictionary_ == result); 664 ASSERT(*dictionary_ == result);
660 #endif 665 #endif
661 } 666 }
662 667
663 } } // namespace v8::internal 668 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/type-info.h ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698