| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2792 Code* code = Code::cast(result); | 2792 Code* code = Code::cast(result); |
| 2793 ASSERT(!isolate_->code_range()->exists() || | 2793 ASSERT(!isolate_->code_range()->exists() || |
| 2794 isolate_->code_range()->contains(code->address())); | 2794 isolate_->code_range()->contains(code->address())); |
| 2795 code->set_instruction_size(desc.instr_size); | 2795 code->set_instruction_size(desc.instr_size); |
| 2796 code->set_relocation_info(ByteArray::cast(reloc_info)); | 2796 code->set_relocation_info(ByteArray::cast(reloc_info)); |
| 2797 code->set_flags(flags); | 2797 code->set_flags(flags); |
| 2798 if (code->is_call_stub() || code->is_keyed_call_stub()) { | 2798 if (code->is_call_stub() || code->is_keyed_call_stub()) { |
| 2799 code->set_check_type(RECEIVER_MAP_CHECK); | 2799 code->set_check_type(RECEIVER_MAP_CHECK); |
| 2800 } | 2800 } |
| 2801 code->set_deoptimization_data(empty_fixed_array()); | 2801 code->set_deoptimization_data(empty_fixed_array()); |
| 2802 code->set_next_code_flushing_candidate(undefined_value()); |
| 2802 // Allow self references to created code object by patching the handle to | 2803 // Allow self references to created code object by patching the handle to |
| 2803 // point to the newly allocated Code object. | 2804 // point to the newly allocated Code object. |
| 2804 if (!self_reference.is_null()) { | 2805 if (!self_reference.is_null()) { |
| 2805 *(self_reference.location()) = code; | 2806 *(self_reference.location()) = code; |
| 2806 } | 2807 } |
| 2807 // Migrate generated code. | 2808 // Migrate generated code. |
| 2808 // The generated code can contain Object** values (typically from handles) | 2809 // The generated code can contain Object** values (typically from handles) |
| 2809 // that are dereferenced during the copy to point directly to the actual heap | 2810 // that are dereferenced during the copy to point directly to the actual heap |
| 2810 // objects. These pointers can include references to the code object itself, | 2811 // objects. These pointers can include references to the code object itself, |
| 2811 // through the self_reference parameter. | 2812 // through the self_reference parameter. |
| (...skipping 3047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5859 } | 5860 } |
| 5860 | 5861 |
| 5861 | 5862 |
| 5862 void ExternalStringTable::TearDown() { | 5863 void ExternalStringTable::TearDown() { |
| 5863 new_space_strings_.Free(); | 5864 new_space_strings_.Free(); |
| 5864 old_space_strings_.Free(); | 5865 old_space_strings_.Free(); |
| 5865 } | 5866 } |
| 5866 | 5867 |
| 5867 | 5868 |
| 5868 } } // namespace v8::internal | 5869 } } // namespace v8::internal |
| OLD | NEW |