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

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

Issue 580903004: Make sure Bigint._digits is always a Uint32List (instead of sometimes null). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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/method_recognizer.h ('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 6722 matching lines...) Expand 10 before | Expand all | Expand 10 after
6733 } 6733 }
6734 } 6734 }
6735 } 6735 }
6736 6736
6737 static bool IsTypedData(const Instance& obj) { 6737 static bool IsTypedData(const Instance& obj) {
6738 ASSERT(!obj.IsNull()); 6738 ASSERT(!obj.IsNull());
6739 intptr_t cid = obj.raw()->GetClassId(); 6739 intptr_t cid = obj.raw()->GetClassId();
6740 return RawObject::IsTypedDataClassId(cid); 6740 return RawObject::IsTypedDataClassId(cid);
6741 } 6741 }
6742 6742
6743 static RawTypedData* EmptyUint32Array(Isolate* isolate);
6744
6743 protected: 6745 protected:
6744 void SetLength(intptr_t value) const { 6746 void SetLength(intptr_t value) const {
6745 raw_ptr()->length_ = Smi::New(value); 6747 raw_ptr()->length_ = Smi::New(value);
6746 } 6748 }
6747 6749
6748 private: 6750 private:
6749 static const intptr_t element_size[]; 6751 static const intptr_t element_size[];
6750 6752
6751 FINAL_HEAP_OBJECT_IMPLEMENTATION(TypedData, Instance); 6753 FINAL_HEAP_OBJECT_IMPLEMENTATION(TypedData, Instance);
6752 friend class Class; 6754 friend class Class;
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
7476 7478
7477 7479
7478 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7480 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7479 intptr_t index) { 7481 intptr_t index) {
7480 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7482 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7481 } 7483 }
7482 7484
7483 } // namespace dart 7485 } // namespace dart
7484 7486
7485 #endif // VM_OBJECT_H_ 7487 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/method_recognizer.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698