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

Side by Side Diff: vm/intrinsifier_ia32.cc

Issue 11316203: Rename the field type_arguments_instance_field_offset_ to (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years 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 | « vm/flow_graph_optimizer.cc ('k') | vm/object.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) 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 // The intrinsic code below is executed before a method has built its frame. 5 // The intrinsic code below is executed before a method has built its frame.
6 // The return address is on the stack and the arguments below it. 6 // The return address is on the stack and the arguments below it.
7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved. 7 // Registers EDX (arguments descriptor) and ECX (function) must be preserved.
8 // Each intrinsification method returns true if the corresponding 8 // Each intrinsification method returns true if the corresponding
9 // Dart method was intrinsified. 9 // Dart method was intrinsified.
10 10
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 174
175 175
176 static intptr_t ComputeObjectArrayTypeArgumentsOffset() { 176 static intptr_t ComputeObjectArrayTypeArgumentsOffset() {
177 const String& class_name = String::Handle(Symbols::New("_ObjectArray")); 177 const String& class_name = String::Handle(Symbols::New("_ObjectArray"));
178 const Library& core_lib = Library::Handle(Library::CoreLibrary()); 178 const Library& core_lib = Library::Handle(Library::CoreLibrary());
179 const Class& cls = 179 const Class& cls =
180 Class::Handle(core_lib.LookupClassAllowPrivate(class_name)); 180 Class::Handle(core_lib.LookupClassAllowPrivate(class_name));
181 ASSERT(!cls.IsNull()); 181 ASSERT(!cls.IsNull());
182 ASSERT(cls.HasTypeArguments()); 182 ASSERT(cls.HasTypeArguments());
183 ASSERT(cls.NumTypeArguments() == 1); 183 ASSERT(cls.NumTypeArguments() == 1);
184 const intptr_t field_offset = cls.type_arguments_instance_field_offset(); 184 const intptr_t field_offset = cls.type_arguments_field_offset();
185 ASSERT(field_offset != Class::kNoTypeArguments); 185 ASSERT(field_offset != Class::kNoTypeArguments);
186 return field_offset; 186 return field_offset;
187 } 187 }
188 188
189 189
190 // Intrinsify only for Smi value and index. Non-smi values need a store buffer 190 // Intrinsify only for Smi value and index. Non-smi values need a store buffer
191 // update. Array length is always a Smi. 191 // update. Array length is always a Smi.
192 bool Intrinsifier::Array_setIndexed(Assembler* assembler) { 192 bool Intrinsifier::Array_setIndexed(Assembler* assembler) {
193 Label fall_through; 193 Label fall_through;
194 if (FLAG_enable_type_checks) { 194 if (FLAG_enable_type_checks) {
(...skipping 1538 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 __ Bind(&is_true); 1733 __ Bind(&is_true);
1734 __ LoadObject(EAX, bool_true); 1734 __ LoadObject(EAX, bool_true);
1735 __ ret(); 1735 __ ret();
1736 return true; 1736 return true;
1737 } 1737 }
1738 1738
1739 #undef __ 1739 #undef __
1740 } // namespace dart 1740 } // namespace dart
1741 1741
1742 #endif // defined TARGET_ARCH_IA32 1742 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « vm/flow_graph_optimizer.cc ('k') | vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698