| OLD | NEW |
| 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 7853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7864 set_ic_age(new_ic_age); | 7864 set_ic_age(new_ic_age); |
| 7865 if (code()->kind() == Code::FUNCTION) { | 7865 if (code()->kind() == Code::FUNCTION) { |
| 7866 code()->set_profiler_ticks(0); | 7866 code()->set_profiler_ticks(0); |
| 7867 if (optimization_disabled() && | 7867 if (optimization_disabled() && |
| 7868 opt_count() >= Compiler::kDefaultMaxOptCount) { | 7868 opt_count() >= Compiler::kDefaultMaxOptCount) { |
| 7869 // Re-enable optimizations if they were disabled due to opt_count limit. | 7869 // Re-enable optimizations if they were disabled due to opt_count limit. |
| 7870 set_optimization_disabled(false); | 7870 set_optimization_disabled(false); |
| 7871 code()->set_optimizable(true); | 7871 code()->set_optimizable(true); |
| 7872 } | 7872 } |
| 7873 set_opt_count(0); | 7873 set_opt_count(0); |
| 7874 set_opt_reenable_tries(0); | |
| 7875 } | 7874 } |
| 7876 } | 7875 } |
| 7877 | 7876 |
| 7878 | 7877 |
| 7879 static void GetMinInobjectSlack(Map* map, void* data) { | 7878 static void GetMinInobjectSlack(Map* map, void* data) { |
| 7880 int slack = map->unused_property_fields(); | 7879 int slack = map->unused_property_fields(); |
| 7881 if (*reinterpret_cast<int*>(data) > slack) { | 7880 if (*reinterpret_cast<int*>(data) > slack) { |
| 7882 *reinterpret_cast<int*>(data) = slack; | 7881 *reinterpret_cast<int*>(data) = slack; |
| 7883 } | 7882 } |
| 7884 } | 7883 } |
| (...skipping 5083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12968 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 12967 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
| 12969 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 12968 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
| 12970 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 12969 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
| 12971 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 12970 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
| 12972 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 12971 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
| 12973 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 12972 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
| 12974 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 12973 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
| 12975 } | 12974 } |
| 12976 | 12975 |
| 12977 } } // namespace v8::internal | 12976 } } // namespace v8::internal |
| OLD | NEW |