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

Side by Side Diff: runtime/vm/object.h

Issue 1990613002: Attempt to fix the linker issues by wrapping the template call with a helper (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | runtime/vm/object.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) 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 #ifndef VM_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 MemberKind kind) const; 1504 MemberKind kind) const;
1505 RawField* LookupField(const String& name, MemberKind kind) const; 1505 RawField* LookupField(const String& name, MemberKind kind) const;
1506 1506
1507 RawFunction* LookupAccessorFunction(const char* prefix, 1507 RawFunction* LookupAccessorFunction(const char* prefix,
1508 intptr_t prefix_length, 1508 intptr_t prefix_length,
1509 const String& name) const; 1509 const String& name) const;
1510 1510
1511 // Allocate an instance class which has a VM implementation. 1511 // Allocate an instance class which has a VM implementation.
1512 template <class FakeInstance> static RawClass* New(intptr_t id); 1512 template <class FakeInstance> static RawClass* New(intptr_t id);
1513 1513
1514 // Helper that calls 'Class::New<Instance>(kIllegalCid)'.
1515 static RawClass* NewInstanceClass();
1516
1514 // Check the subtype or 'more specific' relationship. 1517 // Check the subtype or 'more specific' relationship.
1515 bool TypeTest(TypeTestKind test_kind, 1518 bool TypeTest(TypeTestKind test_kind,
1516 const TypeArguments& type_arguments, 1519 const TypeArguments& type_arguments,
1517 const Class& other, 1520 const Class& other,
1518 const TypeArguments& other_type_arguments, 1521 const TypeArguments& other_type_arguments,
1519 Error* bound_error, 1522 Error* bound_error,
1520 TrailPtr bound_trail, 1523 TrailPtr bound_trail,
1521 Heap::Space space) const; 1524 Heap::Space space) const;
1522 1525
1523 static bool TypeTestNonRecursive( 1526 static bool TypeTestNonRecursive(
(...skipping 7078 matching lines...) Expand 10 before | Expand all | Expand 10 after
8602 8605
8603 8606
8604 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8607 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8605 intptr_t index) { 8608 intptr_t index) {
8606 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8609 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8607 } 8610 }
8608 8611
8609 } // namespace dart 8612 } // namespace dart
8610 8613
8611 #endif // VM_OBJECT_H_ 8614 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698