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

Side by Side Diff: src/runtime.cc

Issue 169713002: Revert "Add a premonomorphic state to the call target cache." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/code-stubs-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 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 14744 matching lines...) Expand 10 before | Expand all | Expand 10 after
14755 CONVERT_ARG_HANDLE_CHECKED(Object, type_info, parameters_start + 1); 14755 CONVERT_ARG_HANDLE_CHECKED(Object, type_info, parameters_start + 1);
14756 #ifdef DEBUG 14756 #ifdef DEBUG
14757 if (!no_caller_args) { 14757 if (!no_caller_args) {
14758 CONVERT_SMI_ARG_CHECKED(arg_count, parameters_start + 2); 14758 CONVERT_SMI_ARG_CHECKED(arg_count, parameters_start + 2);
14759 ASSERT(arg_count == caller_args->length()); 14759 ASSERT(arg_count == caller_args->length());
14760 } 14760 }
14761 #endif 14761 #endif
14762 14762
14763 Handle<AllocationSite> site; 14763 Handle<AllocationSite> site;
14764 if (!type_info.is_null() && 14764 if (!type_info.is_null() &&
14765 *type_info != isolate->heap()->null_value() &&
14766 *type_info != isolate->heap()->undefined_value()) { 14765 *type_info != isolate->heap()->undefined_value()) {
14767 site = Handle<AllocationSite>::cast(type_info); 14766 site = Handle<AllocationSite>::cast(type_info);
14768 ASSERT(!site->SitePointsToLiteral()); 14767 ASSERT(!site->SitePointsToLiteral());
14769 } 14768 }
14770 14769
14771 return ArrayConstructorCommon(isolate, 14770 return ArrayConstructorCommon(isolate,
14772 constructor, 14771 constructor,
14773 site, 14772 site,
14774 caller_args); 14773 caller_args);
14775 } 14774 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
14880 // Handle last resort GC and make sure to allow future allocations 14879 // Handle last resort GC and make sure to allow future allocations
14881 // to grow the heap without causing GCs (if possible). 14880 // to grow the heap without causing GCs (if possible).
14882 isolate->counters()->gc_last_resort_from_js()->Increment(); 14881 isolate->counters()->gc_last_resort_from_js()->Increment();
14883 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags, 14882 isolate->heap()->CollectAllGarbage(Heap::kNoGCFlags,
14884 "Runtime::PerformGC"); 14883 "Runtime::PerformGC");
14885 } 14884 }
14886 } 14885 }
14887 14886
14888 14887
14889 } } // namespace v8::internal 14888 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698