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

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

Issue 53753003: Cleanups. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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_mips.cc ('k') | runtime/vm/flow_graph_inliner.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 (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 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 __ Bind(&null_args_loop_condition); 1005 __ Bind(&null_args_loop_condition);
1006 __ decq(RCX); 1006 __ decq(RCX);
1007 __ j(POSITIVE, &null_args_loop, Assembler::kNearJump); 1007 __ j(POSITIVE, &null_args_loop, Assembler::kNearJump);
1008 } 1008 }
1009 1009
1010 1010
1011 void FlowGraphCompiler::GenerateInlinedGetter(intptr_t offset) { 1011 void FlowGraphCompiler::GenerateInlinedGetter(intptr_t offset) {
1012 // TOS: return address. 1012 // TOS: return address.
1013 // +1 : receiver. 1013 // +1 : receiver.
1014 // Sequence node has one return node, its input is load field node. 1014 // Sequence node has one return node, its input is load field node.
1015 __ Comment("Inlined Getter");
1015 __ movq(RAX, Address(RSP, 1 * kWordSize)); 1016 __ movq(RAX, Address(RSP, 1 * kWordSize));
1016 __ movq(RAX, FieldAddress(RAX, offset)); 1017 __ movq(RAX, FieldAddress(RAX, offset));
1017 __ ret(); 1018 __ ret();
1018 } 1019 }
1019 1020
1020 1021
1021 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) { 1022 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) {
1022 // TOS: return address. 1023 // TOS: return address.
1023 // +1 : value 1024 // +1 : value
1024 // +2 : receiver. 1025 // +2 : receiver.
1025 // Sequence node has one store node and one return NULL node. 1026 // Sequence node has one store node and one return NULL node.
1027 __ Comment("Inlined Setter");
1026 __ movq(RAX, Address(RSP, 2 * kWordSize)); // Receiver. 1028 __ movq(RAX, Address(RSP, 2 * kWordSize)); // Receiver.
1027 __ movq(RBX, Address(RSP, 1 * kWordSize)); // Value. 1029 __ movq(RBX, Address(RSP, 1 * kWordSize)); // Value.
1028 __ StoreIntoObject(RAX, FieldAddress(RAX, offset), RBX); 1030 __ StoreIntoObject(RAX, FieldAddress(RAX, offset), RBX);
1029 __ LoadObject(RAX, Object::null_object(), PP); 1031 __ LoadObject(RAX, Object::null_object(), PP);
1030 __ ret(); 1032 __ ret();
1031 } 1033 }
1032 1034
1033 1035
1034 void FlowGraphCompiler::EmitFrameEntry() { 1036 void FlowGraphCompiler::EmitFrameEntry() {
1035 const Function& function = parsed_function().function(); 1037 const Function& function = parsed_function().function();
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after
1926 __ movups(reg, Address(RSP, 0)); 1928 __ movups(reg, Address(RSP, 0));
1927 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); 1929 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP);
1928 } 1930 }
1929 1931
1930 1932
1931 #undef __ 1933 #undef __
1932 1934
1933 } // namespace dart 1935 } // namespace dart
1934 1936
1935 #endif // defined TARGET_ARCH_X64 1937 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/flow_graph_inliner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698