| 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 4072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4083 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER); | 4083 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 4084 code->set_raw_type_feedback_info(undefined_value()); | 4084 code->set_raw_type_feedback_info(undefined_value()); |
| 4085 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER); | 4085 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 4086 code->set_gc_metadata(Smi::FromInt(0)); | 4086 code->set_gc_metadata(Smi::FromInt(0)); |
| 4087 code->set_ic_age(global_ic_age_); | 4087 code->set_ic_age(global_ic_age_); |
| 4088 code->set_prologue_offset(prologue_offset); | 4088 code->set_prologue_offset(prologue_offset); |
| 4089 if (code->kind() == Code::OPTIMIZED_FUNCTION) { | 4089 if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
| 4090 code->set_marked_for_deoptimization(false); | 4090 code->set_marked_for_deoptimization(false); |
| 4091 } | 4091 } |
| 4092 code->set_constant_pool(empty_constant_pool_array()); | 4092 code->set_constant_pool(empty_constant_pool_array()); |
| 4093 #if V8_TARGET_ARCH_ARM |
| 4094 code->set_registers_mask(desc.registers_mask); |
| 4095 code->set_double_registers_mask(desc.double_registers_mask); |
| 4096 #endif |
| 4093 | 4097 |
| 4094 #ifdef ENABLE_DEBUGGER_SUPPORT | 4098 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 4095 if (code->kind() == Code::FUNCTION) { | 4099 if (code->kind() == Code::FUNCTION) { |
| 4096 code->set_has_debug_break_slots( | 4100 code->set_has_debug_break_slots( |
| 4097 isolate_->debugger()->IsDebuggerActive()); | 4101 isolate_->debugger()->IsDebuggerActive()); |
| 4098 } | 4102 } |
| 4099 #endif | 4103 #endif |
| 4100 | 4104 |
| 4101 // Allow self references to created code object by patching the handle to | 4105 // Allow self references to created code object by patching the handle to |
| 4102 // point to the newly allocated Code object. | 4106 // point to the newly allocated Code object. |
| (...skipping 3609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7712 static_cast<int>(object_sizes_last_time_[index])); | 7716 static_cast<int>(object_sizes_last_time_[index])); |
| 7713 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7717 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 7714 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7718 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 7715 | 7719 |
| 7716 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7720 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 7717 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7721 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 7718 ClearObjectStats(); | 7722 ClearObjectStats(); |
| 7719 } | 7723 } |
| 7720 | 7724 |
| 7721 } } // namespace v8::internal | 7725 } } // namespace v8::internal |
| OLD | NEW |