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 RUNTIME_VM_OBJECT_H_ | 5 #ifndef RUNTIME_VM_OBJECT_H_ |
6 #define RUNTIME_VM_OBJECT_H_ | 6 #define RUNTIME_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 4198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4209 static const intptr_t kUncheckedEntryOffset = 0; | 4209 static const intptr_t kUncheckedEntryOffset = 0; |
4210 #elif defined(TARGET_ARCH_X64) | 4210 #elif defined(TARGET_ARCH_X64) |
4211 static const intptr_t kCheckedEntryOffset = 16; | 4211 static const intptr_t kCheckedEntryOffset = 16; |
4212 static const intptr_t kUncheckedEntryOffset = 38; | 4212 static const intptr_t kUncheckedEntryOffset = 38; |
4213 #elif defined(TARGET_ARCH_ARM) | 4213 #elif defined(TARGET_ARCH_ARM) |
4214 static const intptr_t kCheckedEntryOffset = 8; | 4214 static const intptr_t kCheckedEntryOffset = 8; |
4215 static const intptr_t kUncheckedEntryOffset = 32; | 4215 static const intptr_t kUncheckedEntryOffset = 32; |
4216 #elif defined(TARGET_ARCH_ARM64) | 4216 #elif defined(TARGET_ARCH_ARM64) |
4217 static const intptr_t kCheckedEntryOffset = 16; | 4217 static const intptr_t kCheckedEntryOffset = 16; |
4218 static const intptr_t kUncheckedEntryOffset = 40; | 4218 static const intptr_t kUncheckedEntryOffset = 40; |
4219 #elif defined(TARGET_ARCH_MIPS) | |
4220 static const intptr_t kCheckedEntryOffset = 12; | |
4221 static const intptr_t kUncheckedEntryOffset = 52; | |
4222 #elif defined(TARGET_ARCH_DBC) | 4219 #elif defined(TARGET_ARCH_DBC) |
4223 static const intptr_t kCheckedEntryOffset = 0; | 4220 static const intptr_t kCheckedEntryOffset = 0; |
4224 static const intptr_t kUncheckedEntryOffset = 0; | 4221 static const intptr_t kUncheckedEntryOffset = 0; |
4225 #else | 4222 #else |
4226 #error Missing entry offsets for current architecture | 4223 #error Missing entry offsets for current architecture |
4227 #endif | 4224 #endif |
4228 | 4225 |
4229 static uword CheckedEntryPoint(const RawInstructions* instr) { | 4226 static uword CheckedEntryPoint(const RawInstructions* instr) { |
4230 uword entry = PayloadStart(instr); | 4227 uword entry = PayloadStart(instr); |
4231 if (!HasSingleEntryPoint(instr)) { | 4228 if (!HasSingleEntryPoint(instr)) { |
(...skipping 4823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9055 | 9052 |
9056 inline void TypeArguments::SetHash(intptr_t value) const { | 9053 inline void TypeArguments::SetHash(intptr_t value) const { |
9057 // This is only safe because we create a new Smi, which does not cause | 9054 // This is only safe because we create a new Smi, which does not cause |
9058 // heap allocation. | 9055 // heap allocation. |
9059 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 9056 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
9060 } | 9057 } |
9061 | 9058 |
9062 } // namespace dart | 9059 } // namespace dart |
9063 | 9060 |
9064 #endif // RUNTIME_VM_OBJECT_H_ | 9061 #endif // RUNTIME_VM_OBJECT_H_ |
OLD | NEW |