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

Side by Side Diff: src/heap.cc

Issue 10534063: Reland r11425 "Re-enable optimization for hot functions that have optimization disabled due to many… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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 2999 matching lines...) Expand 10 before | Expand all | Expand 10 after
3010 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric); 3010 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric);
3011 share->set_construct_stub(construct_stub); 3011 share->set_construct_stub(construct_stub);
3012 share->set_instance_class_name(Object_symbol()); 3012 share->set_instance_class_name(Object_symbol());
3013 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); 3013 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER);
3014 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); 3014 share->set_script(undefined_value(), SKIP_WRITE_BARRIER);
3015 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); 3015 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER);
3016 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); 3016 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER);
3017 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); 3017 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER);
3018 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); 3018 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER);
3019 share->set_ast_node_count(0); 3019 share->set_ast_node_count(0);
3020 share->set_deopt_counter(FLAG_deopt_every_n_times); 3020 share->set_stress_deopt_counter(FLAG_deopt_every_n_times);
3021 share->set_ic_age(0); 3021 share->set_counters(0);
3022 3022
3023 // Set integer fields (smi or int, depending on the architecture). 3023 // Set integer fields (smi or int, depending on the architecture).
3024 share->set_length(0); 3024 share->set_length(0);
3025 share->set_formal_parameter_count(0); 3025 share->set_formal_parameter_count(0);
3026 share->set_expected_nof_properties(0); 3026 share->set_expected_nof_properties(0);
3027 share->set_num_literals(0); 3027 share->set_num_literals(0);
3028 share->set_start_position_and_type(0); 3028 share->set_start_position_and_type(0);
3029 share->set_end_position(0); 3029 share->set_end_position(0);
3030 share->set_function_token_position(0); 3030 share->set_function_token_position(0);
3031 // All compiler hints default to false or 0. 3031 // All compiler hints default to false or 0.
(...skipping 4113 matching lines...) Expand 10 before | Expand all | Expand 10 after
7145 } else { 7145 } else {
7146 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died. 7146 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died.
7147 } 7147 }
7148 remembered_unmapped_pages_[remembered_unmapped_pages_index_] = 7148 remembered_unmapped_pages_[remembered_unmapped_pages_index_] =
7149 reinterpret_cast<Address>(p); 7149 reinterpret_cast<Address>(p);
7150 remembered_unmapped_pages_index_++; 7150 remembered_unmapped_pages_index_++;
7151 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages; 7151 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages;
7152 } 7152 }
7153 7153
7154 } } // namespace v8::internal 7154 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698