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

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
« no previous file with comments | « src/heap.h ('k') | src/ia32/lithium-codegen-ia32.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 3004 matching lines...) Expand 10 before | Expand all | Expand 10 after
3015 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric); 3015 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric);
3016 share->set_construct_stub(construct_stub); 3016 share->set_construct_stub(construct_stub);
3017 share->set_instance_class_name(Object_symbol()); 3017 share->set_instance_class_name(Object_symbol());
3018 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); 3018 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER);
3019 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); 3019 share->set_script(undefined_value(), SKIP_WRITE_BARRIER);
3020 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); 3020 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER);
3021 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); 3021 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER);
3022 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); 3022 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER);
3023 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER); 3023 share->set_this_property_assignments(undefined_value(), SKIP_WRITE_BARRIER);
3024 share->set_ast_node_count(0); 3024 share->set_ast_node_count(0);
3025 share->set_deopt_counter(FLAG_deopt_every_n_times); 3025 share->set_stress_deopt_counter(FLAG_deopt_every_n_times);
3026 share->set_ic_age(0); 3026 share->set_counters(0);
3027 3027
3028 // Set integer fields (smi or int, depending on the architecture). 3028 // Set integer fields (smi or int, depending on the architecture).
3029 share->set_length(0); 3029 share->set_length(0);
3030 share->set_formal_parameter_count(0); 3030 share->set_formal_parameter_count(0);
3031 share->set_expected_nof_properties(0); 3031 share->set_expected_nof_properties(0);
3032 share->set_num_literals(0); 3032 share->set_num_literals(0);
3033 share->set_start_position_and_type(0); 3033 share->set_start_position_and_type(0);
3034 share->set_end_position(0); 3034 share->set_end_position(0);
3035 share->set_function_token_position(0); 3035 share->set_function_token_position(0);
3036 // All compiler hints default to false or 0. 3036 // All compiler hints default to false or 0.
(...skipping 4115 matching lines...) Expand 10 before | Expand all | Expand 10 after
7152 } else { 7152 } else {
7153 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died. 7153 p ^= 0x1d1ed & (Page::kPageSize - 1); // I died.
7154 } 7154 }
7155 remembered_unmapped_pages_[remembered_unmapped_pages_index_] = 7155 remembered_unmapped_pages_[remembered_unmapped_pages_index_] =
7156 reinterpret_cast<Address>(p); 7156 reinterpret_cast<Address>(p);
7157 remembered_unmapped_pages_index_++; 7157 remembered_unmapped_pages_index_++;
7158 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages; 7158 remembered_unmapped_pages_index_ %= kRememberedUnmappedPages;
7159 } 7159 }
7160 7160
7161 } } // namespace v8::internal 7161 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698