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 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1946 return accessors; | 1946 return accessors; |
1947 } | 1947 } |
1948 | 1948 |
1949 | 1949 |
1950 MaybeObject* Heap::AllocateTypeFeedbackInfo() { | 1950 MaybeObject* Heap::AllocateTypeFeedbackInfo() { |
1951 TypeFeedbackInfo* info; | 1951 TypeFeedbackInfo* info; |
1952 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); | 1952 { MaybeObject* maybe_info = AllocateStruct(TYPE_FEEDBACK_INFO_TYPE); |
1953 if (!maybe_info->To(&info)) return maybe_info; | 1953 if (!maybe_info->To(&info)) return maybe_info; |
1954 } | 1954 } |
1955 info->set_ic_total_count(0); | 1955 info->set_ic_total_count(0); |
1956 info->set_ic_with_typeinfo_count(0); | 1956 info->set_ic_with_type_info_count(0); |
1957 info->set_type_feedback_cells(TypeFeedbackCells::cast(empty_fixed_array()), | 1957 info->set_type_feedback_cells(TypeFeedbackCells::cast(empty_fixed_array()), |
1958 SKIP_WRITE_BARRIER); | 1958 SKIP_WRITE_BARRIER); |
1959 return info; | 1959 return info; |
1960 } | 1960 } |
1961 | 1961 |
1962 | 1962 |
1963 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) { | 1963 MaybeObject* Heap::AllocateAliasedArgumentsEntry(int aliased_context_slot) { |
1964 AliasedArgumentsEntry* entry; | 1964 AliasedArgumentsEntry* entry; |
1965 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE); | 1965 { MaybeObject* maybe_entry = AllocateStruct(ALIASED_ARGUMENTS_ENTRY_TYPE); |
1966 if (!maybe_entry->To(&entry)) return maybe_entry; | 1966 if (!maybe_entry->To(&entry)) return maybe_entry; |
(...skipping 925 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2892 share->set_construct_stub(construct_stub); | 2892 share->set_construct_stub(construct_stub); |
2893 share->set_instance_class_name(Object_symbol()); | 2893 share->set_instance_class_name(Object_symbol()); |
2894 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); | 2894 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); |
2895 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); | 2895 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); |
2896 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); | 2896 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); |
2897 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); | 2897 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); |
2898 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); | 2898 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); |
2899 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); | 2899 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); |
2900 share->set_ast_node_count(0); | 2900 share->set_ast_node_count(0); |
2901 share->set_deopt_counter(FLAG_deopt_every_n_times); | 2901 share->set_deopt_counter(FLAG_deopt_every_n_times); |
2902 share->set_profiler_ticks(0); | |
2903 share->set_ic_age(0); | 2902 share->set_ic_age(0); |
2904 | 2903 |
2905 // Set integer fields (smi or int, depending on the architecture). | 2904 // Set integer fields (smi or int, depending on the architecture). |
2906 share->set_length(0); | 2905 share->set_length(0); |
2907 share->set_formal_parameter_count(0); | 2906 share->set_formal_parameter_count(0); |
2908 share->set_expected_nof_properties(0); | 2907 share->set_expected_nof_properties(0); |
2909 share->set_num_literals(0); | 2908 share->set_num_literals(0); |
2910 share->set_start_position_and_type(0); | 2909 share->set_start_position_and_type(0); |
2911 share->set_end_position(0); | 2910 share->set_end_position(0); |
2912 share->set_function_token_position(0); | 2911 share->set_function_token_position(0); |
(...skipping 4065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6978 } else { | 6977 } else { |
6979 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died. | 6978 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died. |
6980 } | 6979 } |
6981 remembered_unmapped_pages_[remembered_unmapped_pages_index_] = | 6980 remembered_unmapped_pages_[remembered_unmapped_pages_index_] = |
6982 reinterpret_cast<Address>(p); | 6981 reinterpret_cast<Address>(p); |
6983 remembered_unmapped_pages_index_++; | 6982 remembered_unmapped_pages_index_++; |
6984 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages; | 6983 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages; |
6985 } | 6984 } |
6986 | 6985 |
6987 } } // namespace v8::internal | 6986 } } // namespace v8::internal |
OLD | NEW |