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

Unified Diff: src/type-info.cc

Issue 132963012: Pretenure call new support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 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 side-by-side diff with in-line comments
Download patch
Index: src/type-info.cc
diff --git a/src/type-info.cc b/src/type-info.cc
index 1c08e0cd12cebac22c497309272a87ac1f2a9498..84f9a483d8262abdc21e14954c0a8f99fd62beb5 100644
--- a/src/type-info.cc
+++ b/src/type-info.cc
@@ -153,30 +153,19 @@ KeyedAccessStoreMode TypeFeedbackOracle::GetStoreMode(
Handle<JSFunction> TypeFeedbackOracle::GetCallTarget(int slot) {
Handle<Object> info = GetInfo(slot);
Hannes Payer (out of office) 2014/02/11 15:51:23 we can do that in one line
mvstanton 2014/02/17 15:53:08 Done.
- if (info->IsAllocationSite()) {
- return Handle<JSFunction>(isolate()->global_context()->array_function());
- } else {
- return Handle<JSFunction>::cast(info);
- }
+ return Handle<JSFunction>::cast(info);
}
Handle<JSFunction> TypeFeedbackOracle::GetCallNewTarget(int slot) {
Handle<Object> info = GetInfo(slot);
Hannes Payer (out of office) 2014/02/11 15:51:23 we can do that in one line
mvstanton 2014/02/17 15:53:08 Done.
- if (info->IsAllocationSite()) {
- return Handle<JSFunction>(isolate()->global_context()->array_function());
- } else {
- return Handle<JSFunction>::cast(info);
- }
+ return Handle<JSFunction>::cast(info);
}
Handle<AllocationSite> TypeFeedbackOracle::GetCallNewAllocationSite(int slot) {
Handle<Object> info = GetInfo(slot);
Hannes Payer (out of office) 2014/02/11 15:51:23 we can do that in one line
mvstanton 2014/02/17 15:53:08 Done.
- if (info->IsAllocationSite()) {
- return Handle<AllocationSite>::cast(info);
- }
- return Handle<AllocationSite>::null();
+ return Handle<AllocationSite>::cast(info);
}

Powered by Google App Engine
This is Rietveld 408576698