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

Unified Diff: runtime/vm/heap.cc

Issue 600243002: Patchable AllocateArray stub, like instance allocation stubs. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | runtime/vm/instructions_arm64_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/heap.cc
===================================================================
--- runtime/vm/heap.cc (revision 40629)
+++ runtime/vm/heap.cc (working copy)
@@ -368,8 +368,10 @@
void Heap::UpdatePretenurePolicy() {
if (FLAG_disable_alloc_stubs_after_gc) {
ClassTable* table = isolate_->class_table();
- for (intptr_t cid = kNumPredefinedCids; cid < table->NumCids(); ++cid) {
- if (table->IsValidIndex(cid) && table->HasValidClassAt(cid)) {
+ for (intptr_t cid = 1; cid < table->NumCids(); ++cid) {
+ if (((cid >= kNumPredefinedCids) || (cid == kArrayCid)) &&
+ table->IsValidIndex(cid) &&
+ table->HasValidClassAt(cid)) {
const Class& cls = Class::Handle(isolate_, table->At(cid));
cls.SwitchAllocationStub();
}
« no previous file with comments | « no previous file | runtime/vm/instructions_arm64_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698