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

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

Issue 269343010: Adds single-precision and SIMD load/store to arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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/intermediate_language_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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // specifying the type. We also can't translate a dummy value for SPREG into 46 // specifying the type. We also can't translate a dummy value for SPREG into
47 // a real value because the architecture independent code expects SPREG to 47 // a real value because the architecture independent code expects SPREG to
48 // be a real register value. 48 // be a real register value.
49 void set_register(Register reg, int64_t value, R31Type r31t = R31IsSP); 49 void set_register(Register reg, int64_t value, R31Type r31t = R31IsSP);
50 int64_t get_register(Register reg, R31Type r31t = R31IsSP) const; 50 int64_t get_register(Register reg, R31Type r31t = R31IsSP) const;
51 void set_wregister(Register reg, int32_t value, R31Type r31t = R31IsSP); 51 void set_wregister(Register reg, int32_t value, R31Type r31t = R31IsSP);
52 int32_t get_wregister(Register reg, R31Type r31t = R31IsSP) const; 52 int32_t get_wregister(Register reg, R31Type r31t = R31IsSP) const;
53 53
54 // Get and set a V register in double ('d') mode. Setting clears the high 54 // Get and set a V register in double ('d') mode. Setting clears the high
55 // 64 bits of the V register. Getting ignores the high 64 bits. 55 // 64 bits of the V register. Getting ignores the high 64 bits.
56 int64_t get_vregisterd(VRegister reg); 56 int64_t get_vregisterd(VRegister reg) const;
57 void set_vregisterd(VRegister reg, int64_t value); 57 void set_vregisterd(VRegister reg, int64_t value);
58 void get_vregister(VRegister reg, simd_value_t* value) const;
59 void set_vregister(VRegister reg, const simd_value_t& value);
58 60
59 int64_t get_pc() const; 61 int64_t get_pc() const;
60 int64_t get_last_pc() const; 62 int64_t get_last_pc() const;
61 void set_pc(int64_t pc); 63 void set_pc(int64_t pc);
62 64
63 // Accessor to the internal simulator stack top. 65 // Accessor to the internal simulator stack top.
64 uword StackTop() const; 66 uword StackTop() const;
65 67
66 // The isolate's top_exit_frame_info refers to a Dart frame in the simulator 68 // The isolate's top_exit_frame_info refers to a Dart frame in the simulator
67 // stack. The simulator's top_exit_frame_info refers to a C++ frame in the 69 // stack. The simulator's top_exit_frame_info refers to a C++ frame in the
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 } 218 }
217 219
218 friend class SimulatorDebugger; 220 friend class SimulatorDebugger;
219 friend class SimulatorSetjmpBuffer; 221 friend class SimulatorSetjmpBuffer;
220 DISALLOW_COPY_AND_ASSIGN(Simulator); 222 DISALLOW_COPY_AND_ASSIGN(Simulator);
221 }; 223 };
222 224
223 } // namespace dart 225 } // namespace dart
224 226
225 #endif // VM_SIMULATOR_ARM64_H_ 227 #endif // VM_SIMULATOR_ARM64_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm64.cc ('k') | runtime/vm/simulator_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698