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

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

Issue 1858283002: Initial SIMDBC interpreter. (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/simulator_dbc.cc ('k') | runtime/vm/simulator_mips.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 MIPS instructions if we are not generating a native 5 // Declares a Simulator for MIPS instructions if we are not generating a native
6 // MIPS binary. This Simulator allows us to run and debug MIPS code generation 6 // MIPS binary. This Simulator allows us to run and debug MIPS 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 MIPS HW platform. 10 // on a MIPS HW platform.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 float get_fregister_float(FRegister freg) const; 51 float get_fregister_float(FRegister freg) const;
52 double get_fregister_double(FRegister freg) const; 52 double get_fregister_double(FRegister freg) const;
53 int64_t get_fregister_long(FRegister freg) const; 53 int64_t get_fregister_long(FRegister freg) const;
54 54
55 void set_dregister_bits(DRegister freg, int64_t value); 55 void set_dregister_bits(DRegister freg, int64_t value);
56 void set_dregister(DRegister freg, double value); 56 void set_dregister(DRegister freg, double value);
57 57
58 int64_t get_dregister_bits(DRegister freg) const; 58 int64_t get_dregister_bits(DRegister freg) const;
59 double get_dregister(DRegister freg) const; 59 double get_dregister(DRegister freg) const;
60 60
61 int32_t get_sp() const {
62 return get_register(SPREG);
63 }
64
61 // Accessor for the pc. 65 // Accessor for the pc.
62 void set_pc(int32_t value) { pc_ = value; } 66 void set_pc(int32_t value) { pc_ = value; }
63 int32_t get_pc() const { return pc_; } 67 int32_t get_pc() const { return pc_; }
64 68
65 // Accessors for hi, lo registers. 69 // Accessors for hi, lo registers.
66 void set_hi_register(int32_t value) { hi_reg_ = value; } 70 void set_hi_register(int32_t value) { hi_reg_ = value; }
67 void set_lo_register(int32_t value) { lo_reg_ = value; } 71 void set_lo_register(int32_t value) { lo_reg_ = value; }
68 int32_t get_hi_register() const { return hi_reg_; } 72 int32_t get_hi_register() const { return hi_reg_; }
69 int32_t get_lo_register() const { return lo_reg_; } 73 int32_t get_lo_register() const { return lo_reg_; }
70 74
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 } 261 }
258 262
259 friend class SimulatorDebugger; 263 friend class SimulatorDebugger;
260 friend class SimulatorSetjmpBuffer; 264 friend class SimulatorSetjmpBuffer;
261 DISALLOW_COPY_AND_ASSIGN(Simulator); 265 DISALLOW_COPY_AND_ASSIGN(Simulator);
262 }; 266 };
263 267
264 } // namespace dart 268 } // namespace dart
265 269
266 #endif // VM_SIMULATOR_MIPS_H_ 270 #endif // VM_SIMULATOR_MIPS_H_
OLDNEW
« no previous file with comments | « runtime/vm/simulator_dbc.cc ('k') | runtime/vm/simulator_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698