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

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

Issue 928833003: Add Function based profile tree (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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_ia32.cc ('k') | runtime/vm/instructions_arm.h » ('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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "vm/ast_printer.h" 10 #include "vm/ast_printer.h"
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 // Sequence node has one store node and one return NULL node. 970 // Sequence node has one store node and one return NULL node.
971 __ Comment("Inlined Setter"); 971 __ Comment("Inlined Setter");
972 __ movq(RAX, Address(RSP, 2 * kWordSize)); // Receiver. 972 __ movq(RAX, Address(RSP, 2 * kWordSize)); // Receiver.
973 __ movq(RBX, Address(RSP, 1 * kWordSize)); // Value. 973 __ movq(RBX, Address(RSP, 1 * kWordSize)); // Value.
974 __ StoreIntoObject(RAX, FieldAddress(RAX, offset), RBX); 974 __ StoreIntoObject(RAX, FieldAddress(RAX, offset), RBX);
975 __ LoadObject(RAX, Object::null_object(), PP); 975 __ LoadObject(RAX, Object::null_object(), PP);
976 __ ret(); 976 __ ret();
977 } 977 }
978 978
979 979
980 // NOTE: If the entry code shape changes, ReturnAddressLocator in profiler.cc
981 // needs to be updated to match.
980 void FlowGraphCompiler::EmitFrameEntry() { 982 void FlowGraphCompiler::EmitFrameEntry() {
981 ASSERT(Assembler::EntryPointToPcMarkerOffset() == 0); 983 ASSERT(Assembler::EntryPointToPcMarkerOffset() == 0);
982 984
983 const Function& function = parsed_function().function(); 985 const Function& function = parsed_function().function();
984 const Register new_pp = R13; 986 const Register new_pp = R13;
985 const Register new_pc = R12; 987 const Register new_pc = R12;
986 988
987 // Load PC marker. 989 // Load PC marker.
988 const intptr_t kRIPRelativeLeaqSize = 7; 990 const intptr_t kRIPRelativeLeaqSize = 7;
989 const intptr_t entry_to_rip_offset = __ CodeSize() + kRIPRelativeLeaqSize; 991 const intptr_t entry_to_rip_offset = __ CodeSize() + kRIPRelativeLeaqSize;
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 __ movups(reg, Address(RSP, 0)); 1786 __ movups(reg, Address(RSP, 0));
1785 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); 1787 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP);
1786 } 1788 }
1787 1789
1788 1790
1789 #undef __ 1791 #undef __
1790 1792
1791 } // namespace dart 1793 } // namespace dart
1792 1794
1793 #endif // defined TARGET_ARCH_X64 1795 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/instructions_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698