| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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" // NOLINT | 5 #include "vm/globals.h" // NOLINT |
| 6 #if defined(TARGET_ARCH_DBC) | 6 #if defined(TARGET_ARCH_DBC) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/longjump.h" | 10 #include "vm/longjump.h" |
| 11 #include "vm/runtime_entry.h" | 11 #include "vm/runtime_entry.h" |
| 12 #include "vm/simulator.h" | 12 #include "vm/simulator.h" |
| 13 #include "vm/stack_frame.h" | 13 #include "vm/stack_frame.h" |
| 14 #include "vm/stub_code.h" | 14 #include "vm/stub_code.h" |
| 15 | 15 |
| 16 namespace dart { | 16 namespace dart { |
| 17 | 17 |
| 18 DECLARE_FLAG(bool, allow_absolute_addresses); | |
| 19 DECLARE_FLAG(bool, check_code_pointer); | 18 DECLARE_FLAG(bool, check_code_pointer); |
| 20 DECLARE_FLAG(bool, inline_alloc); | 19 DECLARE_FLAG(bool, inline_alloc); |
| 21 | 20 |
| 22 void Assembler::InitializeMemoryWithBreakpoints(uword data, intptr_t length) { | 21 void Assembler::InitializeMemoryWithBreakpoints(uword data, intptr_t length) { |
| 23 const uword end = data + length; | 22 const uword end = data + length; |
| 24 while (data < end) { | 23 while (data < end) { |
| 25 *reinterpret_cast<int32_t*>(data) = Bytecode::kTrap; | 24 *reinterpret_cast<int32_t*>(data) = Bytecode::kTrap; |
| 26 data += sizeof(int32_t); | 25 data += sizeof(int32_t); |
| 27 } | 26 } |
| 28 } | 27 } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 | 132 |
| 134 intptr_t Assembler::AddConstant(const Object& obj) { | 133 intptr_t Assembler::AddConstant(const Object& obj) { |
| 135 return object_pool_wrapper().FindObject( | 134 return object_pool_wrapper().FindObject( |
| 136 Object::ZoneHandle(obj.raw())); | 135 Object::ZoneHandle(obj.raw())); |
| 137 } | 136 } |
| 138 | 137 |
| 139 | 138 |
| 140 } // namespace dart | 139 } // namespace dart |
| 141 | 140 |
| 142 #endif // defined TARGET_ARCH_DBC | 141 #endif // defined TARGET_ARCH_DBC |
| OLD | NEW |