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

Side by Side Diff: src/heap.cc

Issue 23817003: Propagate bailout and dont_optimize reasons to cpu-profiler (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: comments addressed Created 7 years, 3 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 3663 matching lines...) Expand 10 before | Expand all | Expand 10 after
3674 // Set integer fields (smi or int, depending on the architecture). 3674 // Set integer fields (smi or int, depending on the architecture).
3675 share->set_length(0); 3675 share->set_length(0);
3676 share->set_formal_parameter_count(0); 3676 share->set_formal_parameter_count(0);
3677 share->set_expected_nof_properties(0); 3677 share->set_expected_nof_properties(0);
3678 share->set_num_literals(0); 3678 share->set_num_literals(0);
3679 share->set_start_position_and_type(0); 3679 share->set_start_position_and_type(0);
3680 share->set_end_position(0); 3680 share->set_end_position(0);
3681 share->set_function_token_position(0); 3681 share->set_function_token_position(0);
3682 // All compiler hints default to false or 0. 3682 // All compiler hints default to false or 0.
3683 share->set_compiler_hints(0); 3683 share->set_compiler_hints(0);
3684 share->set_opt_count(0); 3684 share->set_opt_count_and_bailout_reason(0);
3685 3685
3686 return share; 3686 return share;
3687 } 3687 }
3688 3688
3689 3689
3690 MaybeObject* Heap::AllocateJSMessageObject(String* type, 3690 MaybeObject* Heap::AllocateJSMessageObject(String* type,
3691 JSArray* arguments, 3691 JSArray* arguments,
3692 int start_position, 3692 int start_position,
3693 int end_position, 3693 int end_position,
3694 Object* script, 3694 Object* script,
(...skipping 4400 matching lines...) Expand 10 before | Expand all | Expand 10 after
8095 if (FLAG_concurrent_recompilation) { 8095 if (FLAG_concurrent_recompilation) {
8096 heap_->relocation_mutex_->Lock(); 8096 heap_->relocation_mutex_->Lock();
8097 #ifdef DEBUG 8097 #ifdef DEBUG
8098 heap_->relocation_mutex_locked_by_optimizer_thread_ = 8098 heap_->relocation_mutex_locked_by_optimizer_thread_ =
8099 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread(); 8099 heap_->isolate()->optimizing_compiler_thread()->IsOptimizerThread();
8100 #endif // DEBUG 8100 #endif // DEBUG
8101 } 8101 }
8102 } 8102 }
8103 8103
8104 } } // namespace v8::internal 8104 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/full-codegen.cc ('k') | src/hydrogen.cc » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698