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 2830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2841 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric); | 2841 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric); |
2842 share->set_construct_stub(construct_stub); | 2842 share->set_construct_stub(construct_stub); |
2843 share->set_instance_class_name(Object_symbol()); | 2843 share->set_instance_class_name(Object_symbol()); |
2844 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); | 2844 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); |
2845 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); | 2845 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); |
2846 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); | 2846 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); |
2847 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); | 2847 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); |
2848 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); | 2848 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); |
2849 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); | 2849 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); |
2850 share->set_deopt_counter(Smi::FromInt(FLAG_deopt_every_n_times)); | 2850 share->set_deopt_counter(Smi::FromInt(FLAG_deopt_every_n_times)); |
| 2851 share->set_ast_node_count(0); |
2851 | 2852 |
2852 // Set integer fields (smi or int, depending on the architecture). | 2853 // Set integer fields (smi or int, depending on the architecture). |
2853 share->set_length(0); | 2854 share->set_length(0); |
2854 share->set_formal_parameter_count(0); | 2855 share->set_formal_parameter_count(0); |
2855 share->set_expected_nof_properties(0); | 2856 share->set_expected_nof_properties(0); |
2856 share->set_num_literals(0); | 2857 share->set_num_literals(0); |
2857 share->set_start_position_and_type(0); | 2858 share->set_start_position_and_type(0); |
2858 share->set_end_position(0); | 2859 share->set_end_position(0); |
2859 share->set_function_token_position(0); | 2860 share->set_function_token_position(0); |
2860 // All compiler hints default to false or 0. | 2861 // All compiler hints default to false or 0. |
(...skipping 3977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6838 isolate_->heap()->store_buffer()->Compact(); | 6839 isolate_->heap()->store_buffer()->Compact(); |
6839 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); | 6840 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); |
6840 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { | 6841 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { |
6841 next = chunk->next_chunk(); | 6842 next = chunk->next_chunk(); |
6842 isolate_->memory_allocator()->Free(chunk); | 6843 isolate_->memory_allocator()->Free(chunk); |
6843 } | 6844 } |
6844 chunks_queued_for_free_ = NULL; | 6845 chunks_queued_for_free_ = NULL; |
6845 } | 6846 } |
6846 | 6847 |
6847 } } // namespace v8::internal | 6848 } } // namespace v8::internal |
OLD | NEW |