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

Side by Side Diff: src/heap.cc

Issue 21593002: Propagate bailout reason to cpu profile node. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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/cpu-profiler.cc ('k') | src/heap-snapshot-generator.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 3607 matching lines...) Expand 10 before | Expand all | Expand 10 after
3618 share->set_optimized_code_map(Smi::FromInt(0)); 3618 share->set_optimized_code_map(Smi::FromInt(0));
3619 share->set_scope_info(ScopeInfo::Empty(isolate_)); 3619 share->set_scope_info(ScopeInfo::Empty(isolate_));
3620 Code* construct_stub = 3620 Code* construct_stub =
3621 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric); 3621 isolate_->builtins()->builtin(Builtins::kJSConstructStubGeneric);
3622 share->set_construct_stub(construct_stub); 3622 share->set_construct_stub(construct_stub);
3623 share->set_instance_class_name(Object_string()); 3623 share->set_instance_class_name(Object_string());
3624 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER); 3624 share->set_function_data(undefined_value(), SKIP_WRITE_BARRIER);
3625 share->set_script(undefined_value(), SKIP_WRITE_BARRIER); 3625 share->set_script(undefined_value(), SKIP_WRITE_BARRIER);
3626 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER); 3626 share->set_debug_info(undefined_value(), SKIP_WRITE_BARRIER);
3627 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER); 3627 share->set_inferred_name(empty_string(), SKIP_WRITE_BARRIER);
3628 share->set_bailout_reason(empty_string(), SKIP_WRITE_BARRIER);
3628 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER); 3629 share->set_initial_map(undefined_value(), SKIP_WRITE_BARRIER);
3629 share->set_ast_node_count(0); 3630 share->set_ast_node_count(0);
3630 share->set_counters(0); 3631 share->set_counters(0);
3631 3632
3632 // Set integer fields (smi or int, depending on the architecture). 3633 // Set integer fields (smi or int, depending on the architecture).
3633 share->set_length(0); 3634 share->set_length(0);
3634 share->set_formal_parameter_count(0); 3635 share->set_formal_parameter_count(0);
3635 share->set_expected_nof_properties(0); 3636 share->set_expected_nof_properties(0);
3636 share->set_num_literals(0); 3637 share->set_num_literals(0);
3637 share->set_start_position_and_type(0); 3638 share->set_start_position_and_type(0);
(...skipping 4398 matching lines...) Expand 10 before | Expand all | Expand 10 after
8036 if (FLAG_parallel_recompilation) { 8037 if (FLAG_parallel_recompilation) {
8037 heap_->relocation_mutex_->Lock(); 8038 heap_->relocation_mutex_->Lock();
8038 #ifdef DEBUG 8039 #ifdef DEBUG
8039 heap_->relocation_mutex_locked_by_optimizer_thread_ = 8040 heap_->relocation_mutex_locked_by_optimizer_thread_ =
8040 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 8041 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
8041 #endif // DEBUG 8042 #endif // DEBUG
8042 } 8043 }
8043 } 8044 }
8044 8045
8045 } } // namespace v8::internal 8046 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/cpu-profiler.cc ('k') | src/heap-snapshot-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698