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

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

Issue 23587024: Revert revision 27542 "Make Dart_IdentityEqual live up to its spec and not leak boxing implementati… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | 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 3721 matching lines...) Expand 10 before | Expand all | Expand 10 after
3732 RawType* GetType() const; 3732 RawType* GetType() const;
3733 3733
3734 virtual RawAbstractTypeArguments* GetTypeArguments() const; 3734 virtual RawAbstractTypeArguments* GetTypeArguments() const;
3735 virtual void SetTypeArguments(const AbstractTypeArguments& value) const; 3735 virtual void SetTypeArguments(const AbstractTypeArguments& value) const;
3736 3736
3737 // Check if the type of this instance is a subtype of the given type. 3737 // Check if the type of this instance is a subtype of the given type.
3738 bool IsInstanceOf(const AbstractType& type, 3738 bool IsInstanceOf(const AbstractType& type,
3739 const AbstractTypeArguments& type_instantiator, 3739 const AbstractTypeArguments& type_instantiator,
3740 Error* bound_error) const; 3740 Error* bound_error) const;
3741 3741
3742 // Check whether this instance is identical to the argument according to the
3743 // specification of dare:core's identical().
3744 bool IsIdenticalTo(const Instance& other) const;
3745
3746 bool IsValidNativeIndex(int index) const { 3742 bool IsValidNativeIndex(int index) const {
3747 return ((index >= 0) && (index < clazz()->ptr()->num_native_fields_)); 3743 return ((index >= 0) && (index < clazz()->ptr()->num_native_fields_));
3748 } 3744 }
3749 3745
3750 inline intptr_t GetNativeField(Isolate* isolate, int index) const; 3746 inline intptr_t GetNativeField(Isolate* isolate, int index) const;
3751 void SetNativeField(int index, intptr_t value) const; 3747 void SetNativeField(int index, intptr_t value) const;
3752 3748
3753 // Returns true if the instance is a closure object. 3749 // Returns true if the instance is a closure object.
3754 bool IsClosure() const; 3750 bool IsClosure() const;
3755 3751
(...skipping 2410 matching lines...) Expand 10 before | Expand all | Expand 10 after
6166 6162
6167 6163
6168 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6164 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6169 intptr_t index) { 6165 intptr_t index) {
6170 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6166 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6171 } 6167 }
6172 6168
6173 } // namespace dart 6169 } // namespace dart
6174 6170
6175 #endif // VM_OBJECT_H_ 6171 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698