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

Side by Side Diff: src/heap.cc

Issue 19383002: Make deoptimization stress count global. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 3565 matching lines...) Expand 10 before | Expand all | Expand 10 after
3576 Code* construct_stub = 3576 Code* construct_stub =
3577 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric); 3577 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric);
3578 share->set_construct_stub(construct_stub); 3578 share->set_construct_stub(construct_stub);
3579 share->set_instance_class_name(Object_string()); 3579 share->set_instance_class_name(Object_string());
3580 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); 3580 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER);
3581 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); 3581 share->set_script(undefined_value(), SKIP_WRITE_BARRIER);
3582 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); 3582 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER);
3583 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); 3583 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER);
3584 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); 3584 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER);
3585 share->set_ast_node_count(0); 3585 share->set_ast_node_count(0);
3586 share->set_stress_deopt_counter(FLAG_deopt_every_n_times);
3587 share->set_counters(0); 3586 share->set_counters(0);
3588 3587
3589 // Set integer fields (smi or int, depending on the architecture). 3588 // Set integer fields (smi or int, depending on the architecture).
3590 share->set_length(0); 3589 share->set_length(0);
3591 share->set_formal_parameter_count(0); 3590 share->set_formal_parameter_count(0);
3592 share->set_expected_nof_properties(0); 3591 share->set_expected_nof_properties(0);
3593 share->set_num_literals(0); 3592 share->set_num_literals(0);
3594 share->set_start_position_and_type(0); 3593 share->set_start_position_and_type(0);
3595 share->set_end_position(0); 3594 share->set_end_position(0);
3596 share->set_function_token_position(0); 3595 share->set_function_token_position(0);
(...skipping 4538 matching lines...) Expand 10 before | Expand all | Expand 10 after
8135 if (FLAG_parallel_recompilation) { 8134 if (FLAG_parallel_recompilation) {
8136 heap_->relocation_mutex_->Lock(); 8135 heap_->relocation_mutex_->Lock();
8137 #ifdef DEBUG 8136 #ifdef DEBUG
8138 heap_->relocation_mutex_locked_by_optimizer_thread_ = 8137 heap_->relocation_mutex_locked_by_optimizer_thread_ =
8139 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 8138 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
8140 #endif // DEBUG 8139 #endif // DEBUG
8141 } 8140 }
8142 } 8141 }
8143 8142
8144 } } // namespace v8::internal 8143 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698