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

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

Issue 648613006: Implement bigint absAdd, absSub, mulAdd, sqrAdd, estQuotientDigit intrinsics, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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/intrinsifier_x64.cc ('k') | no next file » | 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 5344 matching lines...) Expand 10 before | Expand all | Expand 10 after
5355 intptr_t Used() const; 5355 intptr_t Used() const;
5356 void SetUsed(intptr_t value) const; 5356 void SetUsed(intptr_t value) const;
5357 uint32_t DigitAt(intptr_t index) const; 5357 uint32_t DigitAt(intptr_t index) const;
5358 void SetDigitAt(intptr_t index, uint32_t value) const; 5358 void SetDigitAt(intptr_t index, uint32_t value) const;
5359 5359
5360 const char* ToDecCString(uword (*allocator)(intptr_t size)) const; 5360 const char* ToDecCString(uword (*allocator)(intptr_t size)) const;
5361 const char* ToHexCString(uword (*allocator)(intptr_t size)) const; 5361 const char* ToHexCString(uword (*allocator)(intptr_t size)) const;
5362 5362
5363 static const intptr_t kExtraDigits = 4; // Same as _Bigint.EXTRA_DIGITS 5363 static const intptr_t kExtraDigits = 4; // Same as _Bigint.EXTRA_DIGITS
5364 static const intptr_t kBitsPerDigit = 32; // Same as _Bigint.DIGIT_BITS 5364 static const intptr_t kBitsPerDigit = 32; // Same as _Bigint.DIGIT_BITS
5365 static const intptr_t kBytesPerDigit = 4;
5365 static const int64_t kDigitBase = 1LL << kBitsPerDigit; 5366 static const int64_t kDigitBase = 1LL << kBitsPerDigit;
5366 static const int64_t kDigitMask = kDigitBase - 1; 5367 static const int64_t kDigitMask = kDigitBase - 1;
5367 5368
5368 static RawBigint* New(Heap::Space space = Heap::kNew); 5369 static RawBigint* New(Heap::Space space = Heap::kNew);
5369 5370
5370 static RawBigint* NewFromInt64(int64_t value, 5371 static RawBigint* NewFromInt64(int64_t value,
5371 Heap::Space space = Heap::kNew); 5372 Heap::Space space = Heap::kNew);
5372 5373
5373 static RawBigint* NewFromUint64(uint64_t value, 5374 static RawBigint* NewFromUint64(uint64_t value,
5374 Heap::Space space = Heap::kNew); 5375 Heap::Space space = Heap::kNew);
(...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after
7469 7470
7470 7471
7471 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 7472 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
7472 intptr_t index) { 7473 intptr_t index) {
7473 return array.At((index * kEntryLength) + kTargetFunctionIndex); 7474 return array.At((index * kEntryLength) + kTargetFunctionIndex);
7474 } 7475 }
7475 7476
7476 } // namespace dart 7477 } // namespace dart
7477 7478
7478 #endif // VM_OBJECT_H_ 7479 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698