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

Side by Side Diff: src/hydrogen.cc

Issue 6551011: Fix CPU profiling for Crankshaft. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 4081 matching lines...) Expand 10 before | Expand all | Expand 10 after
4092 4092
4093 // Generate the deoptimization data for the unoptimized version of 4093 // Generate the deoptimization data for the unoptimized version of
4094 // the target function if we don't already have it. 4094 // the target function if we don't already have it.
4095 if (!shared->has_deoptimization_support()) { 4095 if (!shared->has_deoptimization_support()) {
4096 // Note that we compile here using the same AST that we will use for 4096 // Note that we compile here using the same AST that we will use for
4097 // generating the optimized inline code. 4097 // generating the optimized inline code.
4098 inner_info.EnableDeoptimizationSupport(); 4098 inner_info.EnableDeoptimizationSupport();
4099 if (!FullCodeGenerator::MakeCode(&inner_info)) return false; 4099 if (!FullCodeGenerator::MakeCode(&inner_info)) return false;
4100 shared->EnableDeoptimizationSupport(*inner_info.code()); 4100 shared->EnableDeoptimizationSupport(*inner_info.code());
4101 Compiler::RecordFunctionCompilation( 4101 Compiler::RecordFunctionCompilation(
4102 Logger::FUNCTION_TAG, 4102 Logger::FUNCTION_TAG, &inner_info, shared);
4103 Handle<String>(shared->DebugName()),
4104 shared->start_position(),
4105 &inner_info);
4106 } 4103 }
4107 4104
4108 // Save the pending call context and type feedback oracle. Set up new ones 4105 // Save the pending call context and type feedback oracle. Set up new ones
4109 // for the inlined function. 4106 // for the inlined function.
4110 ASSERT(shared->has_deoptimization_support()); 4107 ASSERT(shared->has_deoptimization_support());
4111 AstContext* saved_call_context = call_context(); 4108 AstContext* saved_call_context = call_context();
4112 HBasicBlock* saved_function_return = function_return(); 4109 HBasicBlock* saved_function_return = function_return();
4113 TypeFeedbackOracle* saved_oracle = oracle(); 4110 TypeFeedbackOracle* saved_oracle = oracle();
4114 // On-stack replacement cannot target inlined functions. Since we don't 4111 // On-stack replacement cannot target inlined functions. Since we don't
4115 // use a separate CompilationInfo structure for the inlined function, we 4112 // use a separate CompilationInfo structure for the inlined function, we
(...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after
6090 } 6087 }
6091 } 6088 }
6092 6089
6093 #ifdef DEBUG 6090 #ifdef DEBUG
6094 if (graph_ != NULL) graph_->Verify(); 6091 if (graph_ != NULL) graph_->Verify();
6095 if (allocator_ != NULL) allocator_->Verify(); 6092 if (allocator_ != NULL) allocator_->Verify();
6096 #endif 6093 #endif
6097 } 6094 }
6098 6095
6099 } } // namespace v8::internal 6096 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698