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 2997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3008 share->set_construct_stub(construct_stub); | 3008 share->set_construct_stub(construct_stub); |
3009 share->set_instance_class_name(Object_symbol()); | 3009 share->set_instance_class_name(Object_symbol()); |
3010 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); | 3010 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); |
3011 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); | 3011 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); |
3012 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); | 3012 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); |
3013 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); | 3013 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); |
3014 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); | 3014 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); |
3015 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); | 3015 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); |
3016 share->set_ast_node_count(0); | 3016 share->set_ast_node_count(0); |
3017 share->set_deopt_counter(FLAG_deopt_every_n_times); | 3017 share->set_deopt_counter(FLAG_deopt_every_n_times); |
| 3018 share->set_ic_age(0); |
3018 | 3019 |
3019 // Set integer fields (smi or int, depending on the architecture). | 3020 // Set integer fields (smi or int, depending on the architecture). |
3020 share->set_length(0); | 3021 share->set_length(0); |
3021 share->set_formal_parameter_count(0); | 3022 share->set_formal_parameter_count(0); |
3022 share->set_expected_nof_properties(0); | 3023 share->set_expected_nof_properties(0); |
3023 share->set_num_literals(0); | 3024 share->set_num_literals(0); |
3024 share->set_start_position_and_type(0); | 3025 share->set_start_position_and_type(0); |
3025 share->set_end_position(0); | 3026 share->set_end_position(0); |
3026 share->set_function_token_position(0); | 3027 share->set_function_token_position(0); |
3027 // All compiler hints default to false or 0. | 3028 // All compiler hints default to false or 0. |
3028 share->set_compiler_hints(0); | 3029 share->set_compiler_hints(0); |
3029 share->set_this_property_assignments_count(0); | 3030 share->set_this_property_assignments_count(0); |
3030 share->set_opt_count(0); | 3031 share->set_opt_count(0); |
3031 share->set_ic_age(0); | |
3032 share->set_opt_reenable_tries(0); | |
3033 | 3032 |
3034 return share; | 3033 return share; |
3035 } | 3034 } |
3036 | 3035 |
3037 | 3036 |
3038 MaybeObject* Heap::AllocateJSMessageObject(String* type, | 3037 MaybeObject* Heap::AllocateJSMessageObject(String* type, |
3039 JSArray* arguments, | 3038 JSArray* arguments, |
3040 int start_position, | 3039 int start_position, |
3041 int end_position, | 3040 int end_position, |
3042 Object* script, | 3041 Object* script, |
(...skipping 4096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7139 } else { | 7138 } else { |
7140 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died. | 7139 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died. |
7141 } | 7140 } |
7142 remembered_unmapped_pages_[remembered_unmapped_pages_index_] = | 7141 remembered_unmapped_pages_[remembered_unmapped_pages_index_] = |
7143 reinterpret_cast<Address>(p); | 7142 reinterpret_cast<Address>(p); |
7144 remembered_unmapped_pages_index_++; | 7143 remembered_unmapped_pages_index_++; |
7145 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages; | 7144 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages; |
7146 } | 7145 } |
7147 | 7146 |
7148 } } // namespace v8::internal | 7147 } } // namespace v8::internal |
OLD | NEW |