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

Side by Side Diff: src/mips64/simulator-mips64.h

Issue 1147493002: Reland "MIPS: Add float instructions and test coverage, part one" (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Bug fixed Created 5 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
« no previous file with comments | « src/mips64/disasm-mips64.cc ('k') | src/mips64/simulator-mips64.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 // Declares a Simulator for MIPS instructions if we are not generating a native 6 // Declares a Simulator for MIPS instructions if we are not generating a native
7 // MIPS binary. This Simulator allows us to run and debug MIPS code generation 7 // MIPS binary. This Simulator allows us to run and debug MIPS code generation
8 // on regular desktop machines. 8 // on regular desktop machines.
9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro, 9 // V8 calls into generated code by "calling" the CALL_GENERATED_CODE macro,
10 // which will start execution in the Simulator or forwards to the real entry 10 // which will start execution in the Simulator or forwards to the real entry
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 int64_t get_fpu_register(int fpureg) const; 200 int64_t get_fpu_register(int fpureg) const;
201 int32_t get_fpu_register_word(int fpureg) const; 201 int32_t get_fpu_register_word(int fpureg) const;
202 int32_t get_fpu_register_signed_word(int fpureg) const; 202 int32_t get_fpu_register_signed_word(int fpureg) const;
203 int32_t get_fpu_register_hi_word(int fpureg) const; 203 int32_t get_fpu_register_hi_word(int fpureg) const;
204 float get_fpu_register_float(int fpureg) const; 204 float get_fpu_register_float(int fpureg) const;
205 double get_fpu_register_double(int fpureg) const; 205 double get_fpu_register_double(int fpureg) const;
206 void set_fcsr_bit(uint32_t cc, bool value); 206 void set_fcsr_bit(uint32_t cc, bool value);
207 bool test_fcsr_bit(uint32_t cc); 207 bool test_fcsr_bit(uint32_t cc);
208 bool set_fcsr_round_error(double original, double rounded); 208 bool set_fcsr_round_error(double original, double rounded);
209 bool set_fcsr_round64_error(double original, double rounded); 209 bool set_fcsr_round64_error(double original, double rounded);
210 bool set_fcsr_round_error(float original, float rounded);
211 bool set_fcsr_round64_error(float original, float rounded);
210 void round_according_to_fcsr(double toRound, double& rounded, 212 void round_according_to_fcsr(double toRound, double& rounded,
211 int32_t& rounded_int, double fs); 213 int32_t& rounded_int, double fs);
212 void round64_according_to_fcsr(double toRound, double& rounded, 214 void round64_according_to_fcsr(double toRound, double& rounded,
213 int64_t& rounded_int, double fs); 215 int64_t& rounded_int, double fs);
214 216 void set_fcsr_rounding_mode(FPURoundingMode mode);
217 unsigned int get_fcsr_rounding_mode();
215 // Special case of set_register and get_register to access the raw PC value. 218 // Special case of set_register and get_register to access the raw PC value.
216 void set_pc(int64_t value); 219 void set_pc(int64_t value);
217 int64_t get_pc() const; 220 int64_t get_pc() const;
218 221
219 Address get_sp() { 222 Address get_sp() {
220 return reinterpret_cast<Address>(static_cast<intptr_t>(get_register(sp))); 223 return reinterpret_cast<Address>(static_cast<intptr_t>(get_register(sp)));
221 } 224 }
222 225
223 // Accessor to the internal simulator stack area. 226 // Accessor to the internal simulator stack area.
224 uintptr_t StackLimit() const; 227 uintptr_t StackLimit() const;
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 519
517 static inline void UnregisterCTryCatch() { 520 static inline void UnregisterCTryCatch() {
518 Simulator::current(Isolate::Current())->PopAddress(); 521 Simulator::current(Isolate::Current())->PopAddress();
519 } 522 }
520 }; 523 };
521 524
522 } } // namespace v8::internal 525 } } // namespace v8::internal
523 526
524 #endif // !defined(USE_SIMULATOR) 527 #endif // !defined(USE_SIMULATOR)
525 #endif // V8_MIPS_SIMULATOR_MIPS_H_ 528 #endif // V8_MIPS_SIMULATOR_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips64/disasm-mips64.cc ('k') | src/mips64/simulator-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698