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

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

Issue 6368053: Implements DoubleToI on ARM. Refactor some VFP code at the same time and... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 10 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 | « src/arm/assembler-arm.cc ('k') | src/arm/lithium-arm.h » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 373
374 374
375 // Type of VFP register. Determines register encoding. 375 // Type of VFP register. Determines register encoding.
376 enum VFPRegPrecision { 376 enum VFPRegPrecision {
377 kSinglePrecision = 0, 377 kSinglePrecision = 0,
378 kDoublePrecision = 1 378 kDoublePrecision = 1
379 }; 379 };
380 380
381 381
382 // VFP FPSCR constants. 382 // VFP FPSCR constants.
383 enum VFPConversionMode {
384 kFPSCRRounding = 0,
385 kDefaultRoundToZero = 1
386 };
387
383 static const uint32_t kVFPExceptionMask = 0xf; 388 static const uint32_t kVFPExceptionMask = 0xf;
384 static const uint32_t kVFPRoundingModeMask = 3 << 22;
385 static const uint32_t kVFPFlushToZeroMask = 1 << 24; 389 static const uint32_t kVFPFlushToZeroMask = 1 << 24;
386 static const uint32_t kVFPRoundToMinusInfinityBits = 2 << 22;
387 static const uint32_t kVFPInvalidExceptionBit = 1; 390 static const uint32_t kVFPInvalidExceptionBit = 1;
388 391
389 static const uint32_t kVFPNConditionFlagBit = 1 << 31; 392 static const uint32_t kVFPNConditionFlagBit = 1 << 31;
390 static const uint32_t kVFPZConditionFlagBit = 1 << 30; 393 static const uint32_t kVFPZConditionFlagBit = 1 << 30;
391 static const uint32_t kVFPCConditionFlagBit = 1 << 29; 394 static const uint32_t kVFPCConditionFlagBit = 1 << 29;
392 static const uint32_t kVFPVConditionFlagBit = 1 << 28; 395 static const uint32_t kVFPVConditionFlagBit = 1 << 28;
393 396
394 397
395 // VFP rounding modes. See ARM DDI 0406B Page A2-29. 398 // VFP rounding modes. See ARM DDI 0406B Page A2-29.
396 enum FPSCRRoundingModes { 399 enum VFPRoundingMode {
397 RN, // Round to Nearest. 400 RN = 0 << 22, // Round to Nearest.
398 RP, // Round towards Plus Infinity. 401 RP = 1 << 22, // Round towards Plus Infinity.
399 RM, // Round towards Minus Infinity. 402 RM = 2 << 22, // Round towards Minus Infinity.
400 RZ // Round towards zero. 403 RZ = 3 << 22, // Round towards zero.
404
405 // Aliases.
406 kRoundToNearest = RN,
407 kRoundToPlusInf = RP,
408 kRoundToMinusInf = RM,
409 kRoundToZero = RZ
401 }; 410 };
402 411
412 static const uint32_t kVFPRoundingModeMask = 3 << 22;
403 413
404 // ----------------------------------------------------------------------------- 414 // -----------------------------------------------------------------------------
405 // Hints. 415 // Hints.
406 416
407 // Branch hints are not used on the ARM. They are defined so that they can 417 // Branch hints are not used on the ARM. They are defined so that they can
408 // appear in shared function signatures, but will be ignored in ARM 418 // appear in shared function signatures, but will be ignored in ARM
409 // implementations. 419 // implementations.
410 enum Hint { no_hint }; 420 enum Hint { no_hint };
411 421
412 // Hints are not used on the arm. Negating is trivial. 422 // Hints are not used on the arm. Negating is trivial.
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 static int Number(const char* name, bool* is_double); 750 static int Number(const char* name, bool* is_double);
741 751
742 private: 752 private:
743 static const char* names_[kNumVFPRegisters]; 753 static const char* names_[kNumVFPRegisters];
744 }; 754 };
745 755
746 756
747 } } // namespace v8::internal 757 } } // namespace v8::internal
748 758
749 #endif // V8_ARM_CONSTANTS_ARM_H_ 759 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm/lithium-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698