Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Side by Side Diff: src/heap.cc

Issue 9836091: Reset function info counters after context disposal. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comment Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/factory.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2879 matching lines...) Expand 10 before | Expand all | Expand 10 after
2890 Code* construct_stub = 2890 Code* construct_stub =
2891 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric); 2891 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric);
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_deopt_counter(FLAG_deopt_every_n_times); 2901 share->set_deopt_counter(FLAG_deopt_every_n_times);
2901 share->set_profiler_ticks(0); 2902 share->set_profiler_ticks(0);
2902 share->set_ast_node_count(0); 2903 share->set_ic_age(0);
2903 2904
2904 // Set integer fields (smi or int, depending on the architecture). 2905 // Set integer fields (smi or int, depending on the architecture).
2905 share->set_length(0); 2906 share->set_length(0);
2906 share->set_formal_parameter_count(0); 2907 share->set_formal_parameter_count(0);
2907 share->set_expected_nof_properties(0); 2908 share->set_expected_nof_properties(0);
2908 share->set_num_literals(0); 2909 share->set_num_literals(0);
2909 share->set_start_position_and_type(0); 2910 share->set_start_position_and_type(0);
2910 share->set_end_position(0); 2911 share->set_end_position(0);
2911 share->set_function_token_position(0); 2912 share->set_function_token_position(0);
2912 // All compiler hints default to false or 0. 2913 // All compiler hints default to false or 0.
(...skipping 4064 matching lines...) Expand 10 before | Expand all | Expand 10 after
6977 } else { 6978 } else {
6978 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died. 6979 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died.
6979 } 6980 }
6980 remembered_unmapped_pages_[remembered_unmapped_pages_index_] = 6981 remembered_unmapped_pages_[remembered_unmapped_pages_index_] =
6981 reinterpret_cast<Address>(p); 6982 reinterpret_cast<Address>(p);
6982 remembered_unmapped_pages_index_++; 6983 remembered_unmapped_pages_index_++;
6983 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages; 6984 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages;
6984 } 6985 }
6985 6986
6986 } } // namespace v8::internal 6987 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698