| OLD | NEW |
| 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/intrinsifier.h" | 8 #include "vm/intrinsifier.h" |
| 9 | 9 |
| 10 #include "vm/assembler.h" | 10 #include "vm/assembler.h" |
| (...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1402 __ LoadObject(RAX, bool_true); | 1402 __ LoadObject(RAX, bool_true); |
| 1403 __ ret(); | 1403 __ ret(); |
| 1404 return true; | 1404 return true; |
| 1405 } | 1405 } |
| 1406 | 1406 |
| 1407 | 1407 |
| 1408 static intptr_t GetOffsetForField(const char* class_name_p, | 1408 static intptr_t GetOffsetForField(const char* class_name_p, |
| 1409 const char* field_name_p) { | 1409 const char* field_name_p) { |
| 1410 const String& class_name = String::Handle(Symbols::New(class_name_p)); | 1410 const String& class_name = String::Handle(Symbols::New(class_name_p)); |
| 1411 const String& field_name = String::Handle(Symbols::New(field_name_p)); | 1411 const String& field_name = String::Handle(Symbols::New(field_name_p)); |
| 1412 const Library& coreimpl_lib = Library::Handle(Library::CoreImplLibrary()); | 1412 const Library& core_lib = Library::Handle(Library::CoreLibrary()); |
| 1413 const Class& cls = | 1413 const Class& cls = |
| 1414 Class::Handle(coreimpl_lib.LookupClassAllowPrivate(class_name)); | 1414 Class::Handle(core_lib.LookupClassAllowPrivate(class_name)); |
| 1415 ASSERT(!cls.IsNull()); | 1415 ASSERT(!cls.IsNull()); |
| 1416 const Field& field = Field::ZoneHandle(cls.LookupInstanceField(field_name)); | 1416 const Field& field = Field::ZoneHandle(cls.LookupInstanceField(field_name)); |
| 1417 ASSERT(!field.IsNull()); | 1417 ASSERT(!field.IsNull()); |
| 1418 return field.Offset(); | 1418 return field.Offset(); |
| 1419 } | 1419 } |
| 1420 | 1420 |
| 1421 | 1421 |
| 1422 static const char* kFixedSizeArrayIteratorClassName = "_FixedSizeArrayIterator"; | 1422 static const char* kFixedSizeArrayIteratorClassName = "_FixedSizeArrayIterator"; |
| 1423 | 1423 |
| 1424 // Class 'FixedSizeArrayIterator': | 1424 // Class 'FixedSizeArrayIterator': |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1557 __ LoadObject(RAX, bool_true); | 1557 __ LoadObject(RAX, bool_true); |
| 1558 __ ret(); | 1558 __ ret(); |
| 1559 return true; | 1559 return true; |
| 1560 } | 1560 } |
| 1561 | 1561 |
| 1562 #undef __ | 1562 #undef __ |
| 1563 | 1563 |
| 1564 } // namespace dart | 1564 } // namespace dart |
| 1565 | 1565 |
| 1566 #endif // defined TARGET_ARCH_X64 | 1566 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |