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 4067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4078 ASSERT(!isolate_->code_range()->exists() || | 4078 ASSERT(!isolate_->code_range()->exists() || |
4079 isolate_->code_range()->contains(code->address())); | 4079 isolate_->code_range()->contains(code->address())); |
4080 code->set_instruction_size(desc.instr_size); | 4080 code->set_instruction_size(desc.instr_size); |
4081 code->set_relocation_info(reloc_info); | 4081 code->set_relocation_info(reloc_info); |
4082 code->set_flags(flags); | 4082 code->set_flags(flags); |
4083 code->set_raw_kind_specific_flags1(0); | 4083 code->set_raw_kind_specific_flags1(0); |
4084 code->set_raw_kind_specific_flags2(0); | 4084 code->set_raw_kind_specific_flags2(0); |
4085 code->set_is_crankshafted(crankshafted); | 4085 code->set_is_crankshafted(crankshafted); |
4086 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER); | 4086 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER); |
4087 code->set_raw_type_feedback_info(undefined_value()); | 4087 code->set_raw_type_feedback_info(undefined_value()); |
4088 code->set_next_code_link(undefined_value()); | |
4089 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER); | 4088 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER); |
4090 code->set_gc_metadata(Smi::FromInt(0)); | 4089 code->set_gc_metadata(Smi::FromInt(0)); |
4091 code->set_ic_age(global_ic_age_); | 4090 code->set_ic_age(global_ic_age_); |
4092 code->set_prologue_offset(prologue_offset); | 4091 code->set_prologue_offset(prologue_offset); |
4093 if (code->kind() == Code::OPTIMIZED_FUNCTION) { | 4092 if (code->kind() == Code::OPTIMIZED_FUNCTION) { |
4094 code->set_marked_for_deoptimization(false); | 4093 code->set_marked_for_deoptimization(false); |
4095 } | 4094 } |
4096 code->set_constant_pool(empty_constant_pool_array()); | 4095 code->set_constant_pool(empty_constant_pool_array()); |
4097 | 4096 |
4098 #ifdef ENABLE_DEBUGGER_SUPPORT | 4097 #ifdef ENABLE_DEBUGGER_SUPPORT |
(...skipping 3616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7715 static_cast<int>(object_sizes_last_time_[index])); | 7714 static_cast<int>(object_sizes_last_time_[index])); |
7716 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7715 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
7717 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7716 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
7718 | 7717 |
7719 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7718 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
7720 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7719 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
7721 ClearObjectStats(); | 7720 ClearObjectStats(); |
7722 } | 7721 } |
7723 | 7722 |
7724 } } // namespace v8::internal | 7723 } } // namespace v8::internal |
OLD | NEW |