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 4212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4223 static const intptr_t kUncheckedEntryOffset = 0; | 4223 static const intptr_t kUncheckedEntryOffset = 0; |
4224 #elif defined(TARGET_ARCH_X64) | 4224 #elif defined(TARGET_ARCH_X64) |
4225 static const intptr_t kCheckedEntryOffset = 16; | 4225 static const intptr_t kCheckedEntryOffset = 16; |
4226 static const intptr_t kUncheckedEntryOffset = 38; | 4226 static const intptr_t kUncheckedEntryOffset = 38; |
4227 #elif defined(TARGET_ARCH_ARM) | 4227 #elif defined(TARGET_ARCH_ARM) |
4228 static const intptr_t kCheckedEntryOffset = 8; | 4228 static const intptr_t kCheckedEntryOffset = 8; |
4229 static const intptr_t kUncheckedEntryOffset = 32; | 4229 static const intptr_t kUncheckedEntryOffset = 32; |
4230 #elif defined(TARGET_ARCH_ARM64) | 4230 #elif defined(TARGET_ARCH_ARM64) |
4231 static const intptr_t kCheckedEntryOffset = 16; | 4231 static const intptr_t kCheckedEntryOffset = 16; |
4232 static const intptr_t kUncheckedEntryOffset = 40; | 4232 static const intptr_t kUncheckedEntryOffset = 40; |
4233 #elif defined(TARGET_ARCH_MIPS) | |
4234 static const intptr_t kCheckedEntryOffset = 12; | |
4235 static const intptr_t kUncheckedEntryOffset = 52; | |
4236 #elif defined(TARGET_ARCH_DBC) | 4233 #elif defined(TARGET_ARCH_DBC) |
4237 static const intptr_t kCheckedEntryOffset = 0; | 4234 static const intptr_t kCheckedEntryOffset = 0; |
4238 static const intptr_t kUncheckedEntryOffset = 0; | 4235 static const intptr_t kUncheckedEntryOffset = 0; |
4239 #else | 4236 #else |
4240 #error Missing entry offsets for current architecture | 4237 #error Missing entry offsets for current architecture |
4241 #endif | 4238 #endif |
4242 | 4239 |
4243 static uword CheckedEntryPoint(const RawInstructions* instr) { | 4240 static uword CheckedEntryPoint(const RawInstructions* instr) { |
4244 uword entry = PayloadStart(instr); | 4241 uword entry = PayloadStart(instr); |
4245 if (!HasSingleEntryPoint(instr)) { | 4242 if (!HasSingleEntryPoint(instr)) { |
(...skipping 4808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9054 | 9051 |
9055 inline void TypeArguments::SetHash(intptr_t value) const { | 9052 inline void TypeArguments::SetHash(intptr_t value) const { |
9056 // This is only safe because we create a new Smi, which does not cause | 9053 // This is only safe because we create a new Smi, which does not cause |
9057 // heap allocation. | 9054 // heap allocation. |
9058 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 9055 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
9059 } | 9056 } |
9060 | 9057 |
9061 } // namespace dart | 9058 } // namespace dart |
9062 | 9059 |
9063 #endif // RUNTIME_VM_OBJECT_H_ | 9060 #endif // RUNTIME_VM_OBJECT_H_ |
OLD | NEW |