| OLD | NEW |
| 1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #ifndef SRC_VM_HEAP_H_ | 5 #ifndef SRC_VM_HEAP_H_ |
| 6 #define SRC_VM_HEAP_H_ | 6 #define SRC_VM_HEAP_H_ |
| 7 | 7 |
| 8 #include "src/shared/globals.h" | 8 #include "src/shared/globals.h" |
| 9 #include "src/shared/random.h" | 9 #include "src/shared/random.h" |
| 10 #include "src/vm/object.h" | 10 #include "src/vm/object.h" |
| 11 #include "src/vm/object_memory.h" | 11 #include "src/vm/object_memory.h" |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // | 251 // |
| 252 // [object] must be either a Smi or a LargeInteger. | 252 // [object] must be either a Smi or a LargeInteger. |
| 253 inline int64 AsForeignInt64(Object* object) { | 253 inline int64 AsForeignInt64(Object* object) { |
| 254 return object->IsSmi() ? Smi::cast(object)->value() | 254 return object->IsSmi() ? Smi::cast(object)->value() |
| 255 : LargeInteger::cast(object)->value(); | 255 : LargeInteger::cast(object)->value(); |
| 256 } | 256 } |
| 257 | 257 |
| 258 } // namespace fletch | 258 } // namespace fletch |
| 259 | 259 |
| 260 #endif // SRC_VM_HEAP_H_ | 260 #endif // SRC_VM_HEAP_H_ |
| OLD | NEW |