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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
7 | 7 |
8 #include "vm/instructions.h" | 8 #include "vm/instructions.h" |
9 #include "vm/instructions_x64.h" | 9 #include "vm/instructions_x64.h" |
10 | 10 |
| 11 #include "vm/constants_x64.h" |
11 #include "vm/cpu.h" | 12 #include "vm/cpu.h" |
12 #include "vm/constants_x64.h" | |
13 #include "vm/object.h" | 13 #include "vm/object.h" |
14 | 14 |
15 namespace dart { | 15 namespace dart { |
16 | 16 |
17 bool DecodeLoadObjectFromPoolOrThread(uword pc, const Code& code, Object* obj) { | 17 bool DecodeLoadObjectFromPoolOrThread(uword pc, const Code& code, Object* obj) { |
18 ASSERT(code.ContainsInstructionAt(pc)); | 18 ASSERT(code.ContainsInstructionAt(pc)); |
19 | 19 |
20 uint8_t* bytes = reinterpret_cast<uint8_t*>(pc); | 20 uint8_t* bytes = reinterpret_cast<uint8_t*>(pc); |
21 | 21 |
22 COMPILE_ASSERT(PP == R15); | 22 COMPILE_ASSERT(PP == R15); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 uint8_t offset = *reinterpret_cast<uint8_t*>(pc + 3); | 59 uint8_t offset = *reinterpret_cast<uint8_t*>(pc + 3); |
60 return Thread::ObjectAtOffset(offset, obj); | 60 return Thread::ObjectAtOffset(offset, obj); |
61 } | 61 } |
62 | 62 |
63 return false; | 63 return false; |
64 } | 64 } |
65 | 65 |
66 } // namespace dart | 66 } // namespace dart |
67 | 67 |
68 #endif // defined TARGET_ARCH_X64 | 68 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |