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

Side by Side Diff: runtime/vm/simulator_arm64.h

Issue 311903004: Fixes to run "Hello, world!" on arm64 hardware. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/runtime_entry_arm64.cc ('k') | runtime/vm/simulator_arm64.cc » ('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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // Declares a Simulator for ARM64 instructions if we are not generating a native 5 // Declares a Simulator for ARM64 instructions if we are not generating a native
6 // ARM64 binary. This Simulator allows us to run and debug ARM64 code generation 6 // ARM64 binary. This Simulator allows us to run and debug ARM64 code generation
7 // on regular desktop machines. 7 // on regular desktop machines.
8 // Dart calls into generated code by "calling" the InvokeDartCode stub, 8 // Dart calls into generated code by "calling" the InvokeDartCode stub,
9 // which will start execution in the Simulator or forwards to the real entry 9 // which will start execution in the Simulator or forwards to the real entry
10 // on a ARM64 HW platform. 10 // on a ARM64 HW platform.
(...skipping 30 matching lines...) Expand all
41 // The currently executing Simulator instance, which is associated to the 41 // The currently executing Simulator instance, which is associated to the
42 // current isolate 42 // current isolate
43 static Simulator* Current(); 43 static Simulator* Current();
44 44
45 // Accessors for register state. 45 // Accessors for register state.
46 // The default value for R31Type has to be R31IsSP because get_register is 46 // The default value for R31Type has to be R31IsSP because get_register is
47 // accessed from architecture independent code through SPREG without 47 // accessed from architecture independent code through SPREG without
48 // specifying the type. We also can't translate a dummy value for SPREG into 48 // specifying the type. We also can't translate a dummy value for SPREG into
49 // a real value because the architecture independent code expects SPREG to 49 // a real value because the architecture independent code expects SPREG to
50 // be a real register value. 50 // be a real register value.
51 void set_register(Register reg, int64_t value, R31Type r31t = R31IsSP); 51 void set_register(
52 Instr* instr, Register reg, int64_t value, R31Type r31t = R31IsSP);
52 int64_t get_register(Register reg, R31Type r31t = R31IsSP) const; 53 int64_t get_register(Register reg, R31Type r31t = R31IsSP) const;
53 void set_wregister(Register reg, int32_t value, R31Type r31t = R31IsSP); 54 void set_wregister(Register reg, int32_t value, R31Type r31t = R31IsSP);
54 int32_t get_wregister(Register reg, R31Type r31t = R31IsSP) const; 55 int32_t get_wregister(Register reg, R31Type r31t = R31IsSP) const;
55 56
56 int32_t get_vregisters(VRegister reg, int idx) const; 57 int32_t get_vregisters(VRegister reg, int idx) const;
57 void set_vregisters(VRegister reg, int idx, int32_t value); 58 void set_vregisters(VRegister reg, int idx, int32_t value);
58 59
59 int64_t get_vregisterd(VRegister reg, int idx) const; 60 int64_t get_vregisterd(VRegister reg, int idx) const;
60 void set_vregisterd(VRegister reg, int idx, int64_t value); 61 void set_vregisterd(VRegister reg, int idx, int64_t value);
61 62
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 } 223 }
223 224
224 friend class SimulatorDebugger; 225 friend class SimulatorDebugger;
225 friend class SimulatorSetjmpBuffer; 226 friend class SimulatorSetjmpBuffer;
226 DISALLOW_COPY_AND_ASSIGN(Simulator); 227 DISALLOW_COPY_AND_ASSIGN(Simulator);
227 }; 228 };
228 229
229 } // namespace dart 230 } // namespace dart
230 231
231 #endif // VM_SIMULATOR_ARM64_H_ 232 #endif // VM_SIMULATOR_ARM64_H_
OLDNEW
« no previous file with comments | « runtime/vm/runtime_entry_arm64.cc ('k') | runtime/vm/simulator_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698