| 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 7917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7928 set_live_objects_may_exist(true); | 7928 set_live_objects_may_exist(true); |
| 7929 } | 7929 } |
| 7930 | 7930 |
| 7931 | 7931 |
| 7932 void SharedFunctionInfo::ResetForNewContext(int new_ic_age) { | 7932 void SharedFunctionInfo::ResetForNewContext(int new_ic_age) { |
| 7933 code()->ClearInlineCaches(); | 7933 code()->ClearInlineCaches(); |
| 7934 set_ic_age(new_ic_age); | 7934 set_ic_age(new_ic_age); |
| 7935 if (code()->kind() == Code::FUNCTION) { | 7935 if (code()->kind() == Code::FUNCTION) { |
| 7936 code()->set_profiler_ticks(0); | 7936 code()->set_profiler_ticks(0); |
| 7937 if (optimization_disabled() && | 7937 if (optimization_disabled() && |
| 7938 opt_count() >= Compiler::kDefaultMaxOptCount) { | 7938 opt_count() >= FLAG_max_opt_count) { |
| 7939 // Re-enable optimizations if they were disabled due to opt_count limit. | 7939 // Re-enable optimizations if they were disabled due to opt_count limit. |
| 7940 set_optimization_disabled(false); | 7940 set_optimization_disabled(false); |
| 7941 code()->set_optimizable(true); | 7941 code()->set_optimizable(true); |
| 7942 } | 7942 } |
| 7943 set_opt_count(0); | 7943 set_opt_count(0); |
| 7944 set_deopt_count(0); | 7944 set_deopt_count(0); |
| 7945 } | 7945 } |
| 7946 } | 7946 } |
| 7947 | 7947 |
| 7948 | 7948 |
| (...skipping 5206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13155 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); | 13155 set_year(Smi::FromInt(year), SKIP_WRITE_BARRIER); |
| 13156 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); | 13156 set_month(Smi::FromInt(month), SKIP_WRITE_BARRIER); |
| 13157 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); | 13157 set_day(Smi::FromInt(day), SKIP_WRITE_BARRIER); |
| 13158 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); | 13158 set_weekday(Smi::FromInt(weekday), SKIP_WRITE_BARRIER); |
| 13159 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); | 13159 set_hour(Smi::FromInt(hour), SKIP_WRITE_BARRIER); |
| 13160 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); | 13160 set_min(Smi::FromInt(min), SKIP_WRITE_BARRIER); |
| 13161 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); | 13161 set_sec(Smi::FromInt(sec), SKIP_WRITE_BARRIER); |
| 13162 } | 13162 } |
| 13163 | 13163 |
| 13164 } } // namespace v8::internal | 13164 } } // namespace v8::internal |
| OLD | NEW |