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

Side by Side Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 10116012: Add more timing information. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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 | « runtime/vm/flow_graph_compiler_x64.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
7 7
8 #include "vm/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 9
10 #include "lib/error.h" 10 #include "lib/error.h"
(...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after
1592 if (!FLAG_trace_functions) { 1592 if (!FLAG_trace_functions) {
1593 return Intrinsifier::Intrinsify(parsed_function_.function(), assembler_); 1593 return Intrinsifier::Intrinsify(parsed_function_.function(), assembler_);
1594 } 1594 }
1595 return false; 1595 return false;
1596 } 1596 }
1597 1597
1598 1598
1599 // TODO(srdjan): Investigate where to put the argument type checks for 1599 // TODO(srdjan): Investigate where to put the argument type checks for
1600 // checked mode. 1600 // checked mode.
1601 void FlowGraphCompiler::CompileGraph() { 1601 void FlowGraphCompiler::CompileGraph() {
1602 TimerScope timer(FLAG_compiler_stats, &CompilerStats::graphcompiler_timer);
1602 if (TryIntrinsify()) { 1603 if (TryIntrinsify()) {
1603 // Make it patchable: code must have a minimum code size, nop(2) increases 1604 // Make it patchable: code must have a minimum code size, nop(2) increases
1604 // the minimum code size appropriately. 1605 // the minimum code size appropriately.
1605 __ nop(2); 1606 __ nop(2);
1606 __ int3(); 1607 __ int3();
1607 __ jmp(&StubCode::FixCallersTargetLabel()); 1608 __ jmp(&StubCode::FixCallersTargetLabel());
1608 return; 1609 return;
1609 } 1610 }
1610 // Specialized version of entry code from CodeGenerator::GenerateEntryCode. 1611 // Specialized version of entry code from CodeGenerator::GenerateEntryCode.
1611 const Function& function = parsed_function_.function(); 1612 const Function& function = parsed_function_.function();
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 1726
1726 void FlowGraphCompiler::FinalizePcDescriptors(const Code& code) { 1727 void FlowGraphCompiler::FinalizePcDescriptors(const Code& code) {
1727 ASSERT(pc_descriptors_list_ != NULL); 1728 ASSERT(pc_descriptors_list_ != NULL);
1728 const PcDescriptors& descriptors = PcDescriptors::Handle( 1729 const PcDescriptors& descriptors = PcDescriptors::Handle(
1729 pc_descriptors_list_->FinalizePcDescriptors(code.EntryPoint())); 1730 pc_descriptors_list_->FinalizePcDescriptors(code.EntryPoint()));
1730 descriptors.Verify(parsed_function_.function().is_optimizable()); 1731 descriptors.Verify(parsed_function_.function().is_optimizable());
1731 code.set_pc_descriptors(descriptors); 1732 code.set_pc_descriptors(descriptors);
1732 } 1733 }
1733 1734
1734 1735
1736 void FlowGraphCompiler::FinalizeStackmaps(const Code& code) {
1737 // TODO(srdjan): Compute stack maps for optimizing compiler.
1738 code.set_stackmaps(Array::Handle());
1739 }
1740
1741
1735 void FlowGraphCompiler::FinalizeVarDescriptors(const Code& code) { 1742 void FlowGraphCompiler::FinalizeVarDescriptors(const Code& code) {
1736 const LocalVarDescriptors& var_descs = LocalVarDescriptors::Handle( 1743 const LocalVarDescriptors& var_descs = LocalVarDescriptors::Handle(
1737 parsed_function_.node_sequence()->scope()->GetVarDescriptors()); 1744 parsed_function_.node_sequence()->scope()->GetVarDescriptors());
1738 code.set_var_descriptors(var_descs); 1745 code.set_var_descriptors(var_descs);
1739 } 1746 }
1740 1747
1741 1748
1742 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) { 1749 void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) {
1743 ASSERT(exception_handlers_list_ != NULL); 1750 ASSERT(exception_handlers_list_ != NULL);
1744 const ExceptionHandlers& handlers = ExceptionHandlers::Handle( 1751 const ExceptionHandlers& handlers = ExceptionHandlers::Handle(
1745 exception_handlers_list_->FinalizeExceptionHandlers(code.EntryPoint())); 1752 exception_handlers_list_->FinalizeExceptionHandlers(code.EntryPoint()));
1746 code.set_exception_handlers(handlers); 1753 code.set_exception_handlers(handlers);
1747 } 1754 }
1748 1755
1749 1756
1750 } // namespace dart 1757 } // namespace dart
1751 1758
1752 #endif // defined TARGET_ARCH_X64 1759 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698