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

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

Issue 1107753002: Support profiling of simulated Dart code on mips, arm, and arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/simulator_arm.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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int64_t get_vregisterd(VRegister reg, int idx) const; 62 int64_t get_vregisterd(VRegister reg, int idx) const;
63 void set_vregisterd(VRegister reg, int idx, int64_t value); 63 void set_vregisterd(VRegister reg, int idx, int64_t value);
64 64
65 void get_vregister(VRegister reg, simd_value_t* value) const; 65 void get_vregister(VRegister reg, simd_value_t* value) const;
66 void set_vregister(VRegister reg, const simd_value_t& value); 66 void set_vregister(VRegister reg, const simd_value_t& value);
67 67
68 int64_t get_pc() const; 68 int64_t get_pc() const;
69 int64_t get_last_pc() const; 69 int64_t get_last_pc() const;
70 void set_pc(int64_t pc); 70 void set_pc(int64_t pc);
71 71
72 // Accessor to the internal simulator stack top. 72 // Accessors to the internal simulator stack base and top.
73 uword StackBase() const { return reinterpret_cast<uword>(stack_); }
73 uword StackTop() const; 74 uword StackTop() const;
74 75
75 // Accessor to the instruction counter. 76 // Accessor to the instruction counter.
76 uint64_t get_icount() const { return icount_; } 77 uint64_t get_icount() const { return icount_; }
77 78
78 // The isolate's top_exit_frame_info refers to a Dart frame in the simulator 79 // The isolate's top_exit_frame_info refers to a Dart frame in the simulator
79 // stack. The simulator's top_exit_frame_info refers to a C++ frame in the 80 // stack. The simulator's top_exit_frame_info refers to a C++ frame in the
80 // native stack. 81 // native stack.
81 uword top_exit_frame_info() const { return top_exit_frame_info_; } 82 uword top_exit_frame_info() const { return top_exit_frame_info_; }
82 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; } 83 void set_top_exit_frame_info(uword value) { top_exit_frame_info_ = value; }
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 } 269 }
269 270
270 friend class SimulatorDebugger; 271 friend class SimulatorDebugger;
271 friend class SimulatorSetjmpBuffer; 272 friend class SimulatorSetjmpBuffer;
272 DISALLOW_COPY_AND_ASSIGN(Simulator); 273 DISALLOW_COPY_AND_ASSIGN(Simulator);
273 }; 274 };
274 275
275 } // namespace dart 276 } // namespace dart
276 277
277 #endif // VM_SIMULATOR_ARM64_H_ 278 #endif // VM_SIMULATOR_ARM64_H_
OLDNEW
« no previous file with comments | « runtime/vm/simulator_arm.cc ('k') | runtime/vm/simulator_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698