| 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 2992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3003 share->set_construct_stub(construct_stub); | 3003 share->set_construct_stub(construct_stub); |
| 3004 share->set_instance_class_name(Object_symbol()); | 3004 share->set_instance_class_name(Object_symbol()); |
| 3005 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); | 3005 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); |
| 3006 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); | 3006 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); |
| 3007 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); | 3007 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); |
| 3008 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); | 3008 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); |
| 3009 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); | 3009 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); |
| 3010 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); | 3010 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); |
| 3011 share->set_ast_node_count(0); | 3011 share->set_ast_node_count(0); |
| 3012 share->set_deopt_counter(FLAG_deopt_every_n_times); | 3012 share->set_deopt_counter(FLAG_deopt_every_n_times); |
| 3013 share->set_ic_age(0); | |
| 3014 | 3013 |
| 3015 // Set integer fields (smi or int, depending on the architecture). | 3014 // Set integer fields (smi or int, depending on the architecture). |
| 3016 share->set_length(0); | 3015 share->set_length(0); |
| 3017 share->set_formal_parameter_count(0); | 3016 share->set_formal_parameter_count(0); |
| 3018 share->set_expected_nof_properties(0); | 3017 share->set_expected_nof_properties(0); |
| 3019 share->set_num_literals(0); | 3018 share->set_num_literals(0); |
| 3020 share->set_start_position_and_type(0); | 3019 share->set_start_position_and_type(0); |
| 3021 share->set_end_position(0); | 3020 share->set_end_position(0); |
| 3022 share->set_function_token_position(0); | 3021 share->set_function_token_position(0); |
| 3023 // All compiler hints default to false or 0. | 3022 // All compiler hints default to false or 0. |
| 3024 share->set_compiler_hints(0); | 3023 share->set_compiler_hints(0); |
| 3025 share->set_this_property_assignments_count(0); | 3024 share->set_this_property_assignments_count(0); |
| 3026 share->set_opt_count(0); | 3025 share->set_opt_count(0); |
| 3026 share->set_ic_age(0); |
| 3027 share->set_opt_reenable_tries(0); |
| 3027 | 3028 |
| 3028 return share; | 3029 return share; |
| 3029 } | 3030 } |
| 3030 | 3031 |
| 3031 | 3032 |
| 3032 MaybeObject* Heap::AllocateJSMessageObject(String* type, | 3033 MaybeObject* Heap::AllocateJSMessageObject(String* type, |
| 3033 JSArray* arguments, | 3034 JSArray* arguments, |
| 3034 int start_position, | 3035 int start_position, |
| 3035 int end_position, | 3036 int end_position, |
| 3036 Object* script, | 3037 Object* script, |
| (...skipping 4086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7123 } else { | 7124 } else { |
| 7124 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died. | 7125 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died. |
| 7125 } | 7126 } |
| 7126 remembered_unmapped_pages_[remembered_unmapped_pages_index_] = | 7127 remembered_unmapped_pages_[remembered_unmapped_pages_index_] = |
| 7127 reinterpret_cast<Address>(p); | 7128 reinterpret_cast<Address>(p); |
| 7128 remembered_unmapped_pages_index_++; | 7129 remembered_unmapped_pages_index_++; |
| 7129 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages; | 7130 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages; |
| 7130 } | 7131 } |
| 7131 | 7132 |
| 7132 } } // namespace v8::internal | 7133 } } // namespace v8::internal |
| OLD | NEW |