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

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: Rebase. 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
« no previous file with comments | « src/flag-definitions.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 3605 matching lines...) Expand 10 before | Expand all | Expand 10 after
3616 Code* construct_stub = 3616 Code* construct_stub =
3617 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric); 3617 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric);
3618 share->set_construct_stub(construct_stub); 3618 share->set_construct_stub(construct_stub);
3619 share->set_instance_class_name(Object_string()); 3619 share->set_instance_class_name(Object_string());
3620 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); 3620 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER);
3621 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); 3621 share->set_script(undefined_value(), SKIP_WRITE_BARRIER);
3622 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); 3622 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER);
3623 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); 3623 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER);
3624 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); 3624 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER);
3625 share->set_ast_node_count(0); 3625 share->set_ast_node_count(0);
3626 share->set_stress_deopt_counter(FLAG_deopt_every_n_times);
3627 share->set_counters(0); 3626 share->set_counters(0);
3628 3627
3629 // Set integer fields (smi or int, depending on the architecture). 3628 // Set integer fields (smi or int, depending on the architecture).
3630 share->set_length(0); 3629 share->set_length(0);
3631 share->set_formal_parameter_count(0); 3630 share->set_formal_parameter_count(0);
3632 share->set_expected_nof_properties(0); 3631 share->set_expected_nof_properties(0);
3633 share->set_num_literals(0); 3632 share->set_num_literals(0);
3634 share->set_start_position_and_type(0); 3633 share->set_start_position_and_type(0);
3635 share->set_end_position(0); 3634 share->set_end_position(0);
3636 share->set_function_token_position(0); 3635 share->set_function_token_position(0);
(...skipping 4539 matching lines...) Expand 10 before | Expand all | Expand 10 after
8176 if (FLAG_parallel_recompilation) { 8175 if (FLAG_parallel_recompilation) {
8177 heap_->relocation_mutex_->Lock(); 8176 heap_->relocation_mutex_->Lock();
8178 #ifdef DEBUG 8177 #ifdef DEBUG
8179 heap_->relocation_mutex_locked_by_optimizer_thread_ = 8178 heap_->relocation_mutex_locked_by_optimizer_thread_ =
8180 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 8179 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
8181 #endif // DEBUG 8180 #endif // DEBUG
8182 } 8181 }
8183 } 8182 }
8184 8183
8185 } } // namespace v8::internal 8184 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698