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

Side by Side Diff: src/heap.cc

Issue 9403009: Count ICs that have type information. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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
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 2852 matching lines...) Expand 10 before | Expand all | Expand 10 after
2863 share->set_instance_class_name(Object_symbol()); 2863 share->set_instance_class_name(Object_symbol());
2864 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); 2864 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER);
2865 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); 2865 share->set_script(undefined_value(), SKIP_WRITE_BARRIER);
2866 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); 2866 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER);
2867 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); 2867 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER);
2868 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); 2868 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER);
2869 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); 2869 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER);
2870 share->set_deopt_counter(FLAG_deopt_every_n_times); 2870 share->set_deopt_counter(FLAG_deopt_every_n_times);
2871 share->set_profiler_ticks(0); 2871 share->set_profiler_ticks(0);
2872 share->set_ast_node_count(0); 2872 share->set_ast_node_count(0);
2873 share->set_ic_total_count(0);
2874 share->set_ic_typeinfo_count(0);
2873 2875
2874 // Set integer fields (smi or int, depending on the architecture). 2876 // Set integer fields (smi or int, depending on the architecture).
2875 share->set_length(0); 2877 share->set_length(0);
2876 share->set_formal_parameter_count(0); 2878 share->set_formal_parameter_count(0);
2877 share->set_expected_nof_properties(0); 2879 share->set_expected_nof_properties(0);
2878 share->set_num_literals(0); 2880 share->set_num_literals(0);
2879 share->set_start_position_and_type(0); 2881 share->set_start_position_and_type(0);
2880 share->set_end_position(0); 2882 share->set_end_position(0);
2881 share->set_function_token_position(0); 2883 share->set_function_token_position(0);
2882 // All compiler hints default to false or 0. 2884 // All compiler hints default to false or 0.
(...skipping 3998 matching lines...) Expand 10 before | Expand all | Expand 10 after
6881 isolate_->heap()->store_buffer()->Compact(); 6883 isolate_->heap()->store_buffer()->Compact();
6882 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED); 6884 isolate_->heap()->store_buffer()->Filter(MemoryChunk::ABOUT_TO_BE_FREED);
6883 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) { 6885 for (chunk = chunks_queued_for_free_; chunk != NULL; chunk = next) {
6884 next = chunk->next_chunk(); 6886 next = chunk->next_chunk();
6885 isolate_->memory_allocator()->Free(chunk); 6887 isolate_->memory_allocator()->Free(chunk);
6886 } 6888 }
6887 chunks_queued_for_free_ = NULL; 6889 chunks_queued_for_free_ = NULL;
6888 } 6890 }
6889 6891
6890 } } // namespace v8::internal 6892 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698