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

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

Issue 1488613007: MIPS: Correct handling of Nan values on MIPS R6 (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 void set_register(int reg, int32_t value); 164 void set_register(int reg, int32_t value);
165 void set_dw_register(int dreg, const int* dbl); 165 void set_dw_register(int dreg, const int* dbl);
166 int32_t get_register(int reg) const; 166 int32_t get_register(int reg) const;
167 double get_double_from_register_pair(int reg); 167 double get_double_from_register_pair(int reg);
168 // Same for FPURegisters. 168 // Same for FPURegisters.
169 void set_fpu_register(int fpureg, int64_t value); 169 void set_fpu_register(int fpureg, int64_t value);
170 void set_fpu_register_word(int fpureg, int32_t value); 170 void set_fpu_register_word(int fpureg, int32_t value);
171 void set_fpu_register_hi_word(int fpureg, int32_t value); 171 void set_fpu_register_hi_word(int fpureg, int32_t value);
172 void set_fpu_register_float(int fpureg, float value); 172 void set_fpu_register_float(int fpureg, float value);
173 void set_fpu_register_double(int fpureg, double value); 173 void set_fpu_register_double(int fpureg, double value);
174 void set_fpu_register_invalid_result64(float original, float rounded);
175 void set_fpu_register_invalid_result(float original, float rounded);
176 void set_fpu_register_word_invalid_result(float original, float rounded);
177 void set_fpu_register_invalid_result64(double original, double rounded);
178 void set_fpu_register_invalid_result(double original, double rounded);
179 void set_fpu_register_word_invalid_result(double original, double rounded);
174 int64_t get_fpu_register(int fpureg) const; 180 int64_t get_fpu_register(int fpureg) const;
175 int32_t get_fpu_register_word(int fpureg) const; 181 int32_t get_fpu_register_word(int fpureg) const;
176 int32_t get_fpu_register_signed_word(int fpureg) const; 182 int32_t get_fpu_register_signed_word(int fpureg) const;
177 int32_t get_fpu_register_hi_word(int fpureg) const; 183 int32_t get_fpu_register_hi_word(int fpureg) const;
178 float get_fpu_register_float(int fpureg) const; 184 float get_fpu_register_float(int fpureg) const;
179 double get_fpu_register_double(int fpureg) const; 185 double get_fpu_register_double(int fpureg) const;
180 void set_fcsr_bit(uint32_t cc, bool value); 186 void set_fcsr_bit(uint32_t cc, bool value);
181 bool test_fcsr_bit(uint32_t cc); 187 bool test_fcsr_bit(uint32_t cc);
182 void set_fcsr_rounding_mode(FPURoundingMode mode); 188 void set_fcsr_rounding_mode(FPURoundingMode mode);
183 unsigned int get_fcsr_rounding_mode(); 189 unsigned int get_fcsr_rounding_mode();
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 static inline void UnregisterCTryCatch(Isolate* isolate) { 504 static inline void UnregisterCTryCatch(Isolate* isolate) {
499 Simulator::current(isolate)->PopAddress(); 505 Simulator::current(isolate)->PopAddress();
500 } 506 }
501 }; 507 };
502 508
503 } // namespace internal 509 } // namespace internal
504 } // namespace v8 510 } // namespace v8
505 511
506 #endif // !defined(USE_SIMULATOR) 512 #endif // !defined(USE_SIMULATOR)
507 #endif // V8_MIPS_SIMULATOR_MIPS_H_ 513 #endif // V8_MIPS_SIMULATOR_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698