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