Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: runtime/vm/assembler_dbc.cc

Issue 1911253002: Never include_isolate or allow_embedded_addresses. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698