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

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

Issue 1748913002: Factor out code that looks up a canonical type and adds it to the canonical_types_ array if necessa… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix bug Created 4 years, 9 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') | runtime/vm/object.cc » ('J')
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 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
1481 static bool TypeTestNonRecursive( 1481 static bool TypeTestNonRecursive(
1482 const Class& cls, 1482 const Class& cls,
1483 TypeTestKind test_kind, 1483 TypeTestKind test_kind,
1484 const TypeArguments& type_arguments, 1484 const TypeArguments& type_arguments,
1485 const Class& other, 1485 const Class& other,
1486 const TypeArguments& other_type_arguments, 1486 const TypeArguments& other_type_arguments,
1487 Error* bound_error, 1487 Error* bound_error,
1488 TrailPtr bound_trail, 1488 TrailPtr bound_trail,
1489 Heap::Space space); 1489 Heap::Space space);
1490 1490
1491 RawAbstractType* LookupCanonicalType(const AbstractType& type,
1492 intptr_t start_index) const;
1493
1491 FINAL_HEAP_OBJECT_IMPLEMENTATION(Class, Object); 1494 FINAL_HEAP_OBJECT_IMPLEMENTATION(Class, Object);
1492 friend class AbstractType; 1495 friend class AbstractType;
1493 friend class Instance; 1496 friend class Instance;
1494 friend class Object; 1497 friend class Object;
1495 friend class Type; 1498 friend class Type;
1496 friend class FunctionType; 1499 friend class FunctionType;
1497 friend class Intrinsifier; 1500 friend class Intrinsifier;
1498 friend class Precompiler; 1501 friend class Precompiler;
1499 }; 1502 };
1500 1503
(...skipping 6962 matching lines...) Expand 10 before | Expand all | Expand 10 after
8463 8466
8464 8467
8465 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 8468 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
8466 intptr_t index) { 8469 intptr_t index) {
8467 return array.At((index * kEntryLength) + kTargetFunctionIndex); 8470 return array.At((index * kEntryLength) + kTargetFunctionIndex);
8468 } 8471 }
8469 8472
8470 } // namespace dart 8473 } // namespace dart
8471 8474
8472 #endif // VM_OBJECT_H_ 8475 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698