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

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

Issue 14109010: ARM: Enable VFP default NaN mode (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 7 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 int32_t right, 267 int32_t right,
268 bool addition); 268 bool addition);
269 269
270 inline int GetCarry() { 270 inline int GetCarry() {
271 return c_flag_ ? 1 : 0; 271 return c_flag_ ? 1 : 0;
272 }; 272 };
273 273
274 // Support for VFP. 274 // Support for VFP.
275 void Compute_FPSCR_Flags(double val1, double val2); 275 void Compute_FPSCR_Flags(double val1, double val2);
276 void Copy_FPSCR_to_APSR(); 276 void Copy_FPSCR_to_APSR();
277 inline double canonicalizeNaN(double value);
277 278
278 // Helper functions to decode common "addressing" modes 279 // Helper functions to decode common "addressing" modes
279 int32_t GetShiftRm(Instruction* instr, bool* carry_out); 280 int32_t GetShiftRm(Instruction* instr, bool* carry_out);
280 int32_t GetImm(Instruction* instr, bool* carry_out); 281 int32_t GetImm(Instruction* instr, bool* carry_out);
281 void ProcessPUW(Instruction* instr, 282 void ProcessPUW(Instruction* instr,
282 int num_regs, 283 int num_regs,
283 int operand_size, 284 int operand_size,
284 intptr_t* start_address, 285 intptr_t* start_address,
285 intptr_t* end_address); 286 intptr_t* end_address);
286 void HandleRList(Instruction* instr, bool load); 287 void HandleRList(Instruction* instr, bool load);
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 373
373 // VFP architecture state. 374 // VFP architecture state.
374 unsigned int vfp_registers_[num_d_registers * 2]; 375 unsigned int vfp_registers_[num_d_registers * 2];
375 bool n_flag_FPSCR_; 376 bool n_flag_FPSCR_;
376 bool z_flag_FPSCR_; 377 bool z_flag_FPSCR_;
377 bool c_flag_FPSCR_; 378 bool c_flag_FPSCR_;
378 bool v_flag_FPSCR_; 379 bool v_flag_FPSCR_;
379 380
380 // VFP rounding mode. See ARM DDI 0406B Page A2-29. 381 // VFP rounding mode. See ARM DDI 0406B Page A2-29.
381 VFPRoundingMode FPSCR_rounding_mode_; 382 VFPRoundingMode FPSCR_rounding_mode_;
383 bool FPSCR_default_NaN_mode_;
382 384
383 // VFP FP exception flags architecture state. 385 // VFP FP exception flags architecture state.
384 bool inv_op_vfp_flag_; 386 bool inv_op_vfp_flag_;
385 bool div_zero_vfp_flag_; 387 bool div_zero_vfp_flag_;
386 bool overflow_vfp_flag_; 388 bool overflow_vfp_flag_;
387 bool underflow_vfp_flag_; 389 bool underflow_vfp_flag_;
388 bool inexact_vfp_flag_; 390 bool inexact_vfp_flag_;
389 391
390 // Simulator support. 392 // Simulator support.
391 char* stack_; 393 char* stack_;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 459
458 static inline void UnregisterCTryCatch() { 460 static inline void UnregisterCTryCatch() {
459 Simulator::current(Isolate::Current())->PopAddress(); 461 Simulator::current(Isolate::Current())->PopAddress();
460 } 462 }
461 }; 463 };
462 464
463 } } // namespace v8::internal 465 } } // namespace v8::internal
464 466
465 #endif // !defined(USE_SIMULATOR) 467 #endif // !defined(USE_SIMULATOR)
466 #endif // V8_ARM_SIMULATOR_ARM_H_ 468 #endif // V8_ARM_SIMULATOR_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698