| 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 3761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3772 Code* code = Code::cast(result); | 3772 Code* code = Code::cast(result); |
| 3773 ASSERT(!isolate_->code_range()->exists() || | 3773 ASSERT(!isolate_->code_range()->exists() || |
| 3774 isolate_->code_range()->contains(code->address())); | 3774 isolate_->code_range()->contains(code->address())); |
| 3775 code->set_instruction_size(desc.instr_size); | 3775 code->set_instruction_size(desc.instr_size); |
| 3776 code->set_relocation_info(reloc_info); | 3776 code->set_relocation_info(reloc_info); |
| 3777 code->set_flags(flags); | 3777 code->set_flags(flags); |
| 3778 if (code->is_call_stub() || code->is_keyed_call_stub()) { | 3778 if (code->is_call_stub() || code->is_keyed_call_stub()) { |
| 3779 code->set_check_type(RECEIVER_MAP_CHECK); | 3779 code->set_check_type(RECEIVER_MAP_CHECK); |
| 3780 } | 3780 } |
| 3781 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER); | 3781 code->set_deoptimization_data(empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 3782 code->set_type_feedback_info(undefined_value(), SKIP_WRITE_BARRIER); | 3782 code->InitializeTypeFeedbackInfoNoWriteBarrier(undefined_value()); |
| 3783 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER); | 3783 code->set_handler_table(empty_fixed_array(), SKIP_WRITE_BARRIER); |
| 3784 code->set_gc_metadata(Smi::FromInt(0)); | 3784 code->set_gc_metadata(Smi::FromInt(0)); |
| 3785 code->set_ic_age(global_ic_age_); | 3785 code->set_ic_age(global_ic_age_); |
| 3786 // Allow self references to created code object by patching the handle to | 3786 // Allow self references to created code object by patching the handle to |
| 3787 // point to the newly allocated Code object. | 3787 // point to the newly allocated Code object. |
| 3788 if (!self_reference.is_null()) { | 3788 if (!self_reference.is_null()) { |
| 3789 *(self_reference.location()) = code; | 3789 *(self_reference.location()) = code; |
| 3790 } | 3790 } |
| 3791 // Migrate generated code. | 3791 // Migrate generated code. |
| 3792 // The generated code can contain Object** values (typically from handles) | 3792 // The generated code can contain Object** values (typically from handles) |
| (...skipping 3686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7479 static_cast<int>(object_sizes_last_time_[index])); | 7479 static_cast<int>(object_sizes_last_time_[index])); |
| 7480 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) | 7480 FIXED_ARRAY_SUB_INSTANCE_TYPE_LIST(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 7481 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 7481 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 7482 | 7482 |
| 7483 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 7483 memcpy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 7484 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 7484 memcpy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 7485 ClearObjectStats(); | 7485 ClearObjectStats(); |
| 7486 } | 7486 } |
| 7487 | 7487 |
| 7488 } } // namespace v8::internal | 7488 } } // namespace v8::internal |
| OLD | NEW |