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

Side by Side Diff: src/objects.cc

Issue 10534063: Reland r11425 "Re-enable optimization for hot functions that have optimization disabled due to many… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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
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 8009 matching lines...) Expand 10 before | Expand all | Expand 10 after
8020 set_ic_age(new_ic_age); 8020 set_ic_age(new_ic_age);
8021 if (code()->kind() == Code::FUNCTION) { 8021 if (code()->kind() == Code::FUNCTION) {
8022 code()->set_profiler_ticks(0); 8022 code()->set_profiler_ticks(0);
8023 if (optimization_disabled() && 8023 if (optimization_disabled() &&
8024 opt_count() >= Compiler::kDefaultMaxOptCount) { 8024 opt_count() >= Compiler::kDefaultMaxOptCount) {
8025 // Re-enable optimizations if they were disabled due to opt_count limit. 8025 // Re-enable optimizations if they were disabled due to opt_count limit.
8026 set_optimization_disabled(false); 8026 set_optimization_disabled(false);
8027 code()->set_optimizable(true); 8027 code()->set_optimizable(true);
8028 } 8028 }
8029 set_opt_count(0); 8029 set_opt_count(0);
8030 set_deopt_count(0);
8030 } 8031 }
8031 } 8032 }
8032 8033
8033 8034
8034 static void GetMinInobjectSlack(Map* map, void* data) { 8035 static void GetMinInobjectSlack(Map* map, void* data) {
8035 int slack = map->unused_property_fields(); 8036 int slack = map->unused_property_fields();
8036 if (*reinterpret_cast<int*>(data) > slack) { 8037 if (*reinterpret_cast<int*>(data) > slack) {
8037 *reinterpret_cast<int*>(data) = slack; 8038 *reinterpret_cast<int*>(data) = slack;
8038 } 8039 }
8039 } 8040 }
(...skipping 5178 matching lines...) Expand 10 before | Expand all | Expand 10 after
13218 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); 13219 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER);
13219 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); 13220 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER);
13220 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); 13221 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER);
13221 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); 13222 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER);
13222 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); 13223 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER);
13223 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); 13224 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER);
13224 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); 13225 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER);
13225 } 13226 }
13226 13227
13227 } } // namespace v8::internal 13228 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698