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 4210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4221 } | 4221 } |
4222 | 4222 |
4223 // Initialize the object | 4223 // Initialize the object |
4224 result->set_map_no_write_barrier(code_map()); | 4224 result->set_map_no_write_barrier(code_map()); |
4225 Code* code = Code::cast(result); | 4225 Code* code = Code::cast(result); |
4226 ASSERT(!isolate_->code_range()->exists() || | 4226 ASSERT(!isolate_->code_range()->exists() || |
4227 isolate_->code_range()->contains(code->address())); | 4227 isolate_->code_range()->contains(code->address())); |
4228 code->set_instruction_size(desc.instr_size); | 4228 code->set_instruction_size(desc.instr_size); |
4229 code->set_relocation_info(reloc_info); | 4229 code->set_relocation_info(reloc_info); |
4230 code->set_flags(flags); | 4230 code->set_flags(flags); |
| 4231 code->set_raw_kind_specific_flags1(0); |
| 4232 code->set_raw_kind_specific_flags2(0); |
4231 if (code->is_call_stub() || code->is_keyed_call_stub()) { | 4233 if (code->is_call_stub() || code->is_keyed_call_stub()) { |
4232 code->set_check_type(RECEIVER_MAP_CHECK); | 4234 code->set_check_type(RECEIVER_MAP_CHECK); |
4233 } | 4235 } |
4234 code->set_is_crankshafted(crankshafted); | 4236 code->set_is_crankshafted(crankshafted); |
4235 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER); | 4237 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER); |
4236 code->set_raw_type_feedback_info(undefined_value()); | 4238 code->set_raw_type_feedback_info(undefined_value()); |
4237 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER); | 4239 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER); |
4238 code->set_gc_metadata(Smi::FromInt(0)); | 4240 code->set_gc_metadata(Smi::FromInt(0)); |
4239 code->set_ic_age(global_ic_age_); | 4241 code->set_ic_age(global_ic_age_); |
4240 code->set_prologue_offset(prologue_offset); | 4242 code->set_prologue_offset(prologue_offset); |
(...skipping 3716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7957 static_cast<int>(object_sizes_last_time_[index])); | 7959 static_cast<int>(object_sizes_last_time_[index])); |
7958 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 7960 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
7959 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7961 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
7960 | 7962 |
7961 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7963 OS::MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
7962 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7964 OS::MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
7963 ClearObjectStats(); | 7965 ClearObjectStats(); |
7964 } | 7966 } |
7965 | 7967 |
7966 } } // namespace v8::internal | 7968 } } // namespace v8::internal |
OLD | NEW |