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

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

Issue 10451006: - Rename NativeLoadField/NativeStoreField to LoadVMField/StoreVMField. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 (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 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 const Class& cls = Class::Handle(function.signature_class()); 1082 const Class& cls = Class::Handle(function.signature_class());
1083 if (cls.HasTypeArguments()) { 1083 if (cls.HasTypeArguments()) {
1084 __ popq(RCX); // Discard type arguments. 1084 __ popq(RCX); // Discard type arguments.
1085 } 1085 }
1086 if (function.IsImplicitInstanceClosureFunction()) { 1086 if (function.IsImplicitInstanceClosureFunction()) {
1087 __ popq(RCX); // Discard receiver. 1087 __ popq(RCX); // Discard receiver.
1088 } 1088 }
1089 } 1089 }
1090 1090
1091 1091
1092 void FlowGraphCompiler::VisitNativeLoadField(NativeLoadFieldComp* comp) { 1092 void FlowGraphCompiler::VisitLoadVMField(LoadVMFieldComp* comp) {
1093 LoadValue(RAX, comp->value()); 1093 // Moved to intermediate_language_x64.cc.
1094 __ movq(RAX, FieldAddress(RAX, comp->offset_in_bytes())); 1094 UNREACHABLE();
1095 } 1095 }
1096 1096
1097 1097
1098 void FlowGraphCompiler::VisitNativeStoreField(NativeStoreFieldComp* comp) { 1098 void FlowGraphCompiler::VisitStoreVMField(StoreVMFieldComp* comp) {
1099 LoadValue(RBX, comp->dest()); 1099 // Moved to intermediate_language_x64.cc.
1100 LoadValue(RAX, comp->value()); 1100 UNREACHABLE();
1101 __ StoreIntoObject(RBX, FieldAddress(RBX, comp->offset_in_bytes()), RAX);
1102 } 1101 }
1103 1102
1104 1103
1105 void FlowGraphCompiler::VisitInstantiateTypeArguments( 1104 void FlowGraphCompiler::VisitInstantiateTypeArguments(
1106 InstantiateTypeArgumentsComp* comp) { 1105 InstantiateTypeArgumentsComp* comp) {
1107 __ popq(RAX); // Instantiator. 1106 __ popq(RAX); // Instantiator.
1108 1107
1109 // RAX is the instantiator AbstractTypeArguments object (or null). 1108 // RAX is the instantiator AbstractTypeArguments object (or null).
1110 // If the instantiator is null and if the type argument vector 1109 // If the instantiator is null and if the type argument vector
1111 // instantiated from null becomes a vector of Dynamic, then use null as 1110 // instantiated from null becomes a vector of Dynamic, then use null as
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1911 1910
1912 1911
1913 void FlowGraphCompiler::FinalizeComments(const Code& code) { 1912 void FlowGraphCompiler::FinalizeComments(const Code& code) {
1914 code.set_comments(assembler_->GetCodeComments()); 1913 code.set_comments(assembler_->GetCodeComments());
1915 } 1914 }
1916 1915
1917 1916
1918 } // namespace dart 1917 } // namespace dart
1919 1918
1920 #endif // defined TARGET_ARCH_X64 1919 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698