OLD | NEW |
---|---|
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 4343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4354 | 4354 |
4355 | 4355 |
4356 class Integer : public Number { | 4356 class Integer : public Number { |
4357 public: | 4357 public: |
4358 static RawInteger* New(const String& str, Heap::Space space = Heap::kNew); | 4358 static RawInteger* New(const String& str, Heap::Space space = Heap::kNew); |
4359 static RawInteger* NewFromUint64( | 4359 static RawInteger* NewFromUint64( |
4360 uint64_t value, Heap::Space space = Heap::kNew); | 4360 uint64_t value, Heap::Space space = Heap::kNew); |
4361 | 4361 |
4362 // Returns a canonical Integer object allocated in the old gen space. | 4362 // Returns a canonical Integer object allocated in the old gen space. |
4363 static RawInteger* NewCanonical(const String& str); | 4363 static RawInteger* NewCanonical(const String& str); |
4364 static RawInteger* NewCanonical(int64_t value); | |
Ivan Posva
2013/10/29 21:42:59
ditto
Søren Gjesse
2013/10/30 11:44:02
Done.
| |
4364 | 4365 |
4365 // Do not throw JavascriptIntegerOverflow if 'silent' is true. | 4366 // Do not throw JavascriptIntegerOverflow if 'silent' is true. |
4366 static RawInteger* New(int64_t value, | 4367 static RawInteger* New(int64_t value, |
4367 Heap::Space space = Heap::kNew, | 4368 Heap::Space space = Heap::kNew, |
4368 const bool silent = false); | 4369 const bool silent = false); |
4369 | 4370 |
4370 virtual double AsDoubleValue() const; | 4371 virtual double AsDoubleValue() const; |
4371 virtual int64_t AsInt64Value() const; | 4372 virtual int64_t AsInt64Value() const; |
4372 | 4373 |
4373 // Returns 0, -1 or 1. | 4374 // Returns 0, -1 or 1. |
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6295 | 6296 |
6296 | 6297 |
6297 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6298 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
6298 intptr_t index) { | 6299 intptr_t index) { |
6299 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6300 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
6300 } | 6301 } |
6301 | 6302 |
6302 } // namespace dart | 6303 } // namespace dart |
6303 | 6304 |
6304 #endif // VM_OBJECT_H_ | 6305 #endif // VM_OBJECT_H_ |
OLD | NEW |