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

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

Issue 6697023: Merge 6800:7180 from the bleeding edge branch to the experimental/gc branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 9 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/codegen-arm.cc ('k') | src/arm/cpu-arm.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 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 kDoublePrecision = 1 378 kDoublePrecision = 1
379 }; 379 };
380 380
381 381
382 // VFP FPSCR constants. 382 // VFP FPSCR constants.
383 enum VFPConversionMode { 383 enum VFPConversionMode {
384 kFPSCRRounding = 0, 384 kFPSCRRounding = 0,
385 kDefaultRoundToZero = 1 385 kDefaultRoundToZero = 1
386 }; 386 };
387 387
388 // This mask does not include the "inexact" or "input denormal" cumulative
389 // exceptions flags, because we usually don't want to check for it.
388 static const uint32_t kVFPExceptionMask = 0xf; 390 static const uint32_t kVFPExceptionMask = 0xf;
391 static const uint32_t kVFPInvalidOpExceptionBit = 1 << 0;
392 static const uint32_t kVFPOverflowExceptionBit = 1 << 2;
393 static const uint32_t kVFPUnderflowExceptionBit = 1 << 3;
394 static const uint32_t kVFPInexactExceptionBit = 1 << 4;
389 static const uint32_t kVFPFlushToZeroMask = 1 << 24; 395 static const uint32_t kVFPFlushToZeroMask = 1 << 24;
390 static const uint32_t kVFPInvalidExceptionBit = 1;
391 396
392 static const uint32_t kVFPNConditionFlagBit = 1 << 31; 397 static const uint32_t kVFPNConditionFlagBit = 1 << 31;
393 static const uint32_t kVFPZConditionFlagBit = 1 << 30; 398 static const uint32_t kVFPZConditionFlagBit = 1 << 30;
394 static const uint32_t kVFPCConditionFlagBit = 1 << 29; 399 static const uint32_t kVFPCConditionFlagBit = 1 << 29;
395 static const uint32_t kVFPVConditionFlagBit = 1 << 28; 400 static const uint32_t kVFPVConditionFlagBit = 1 << 28;
396 401
397 402
398 // VFP rounding modes. See ARM DDI 0406B Page A2-29. 403 // VFP rounding modes. See ARM DDI 0406B Page A2-29.
399 enum VFPRoundingMode { 404 enum VFPRoundingMode {
400 RN = 0 << 22, // Round to Nearest. 405 RN = 0 << 22, // Round to Nearest.
401 RP = 1 << 22, // Round towards Plus Infinity. 406 RP = 1 << 22, // Round towards Plus Infinity.
402 RM = 2 << 22, // Round towards Minus Infinity. 407 RM = 2 << 22, // Round towards Minus Infinity.
403 RZ = 3 << 22, // Round towards zero. 408 RZ = 3 << 22, // Round towards zero.
404 409
405 // Aliases. 410 // Aliases.
406 kRoundToNearest = RN, 411 kRoundToNearest = RN,
407 kRoundToPlusInf = RP, 412 kRoundToPlusInf = RP,
408 kRoundToMinusInf = RM, 413 kRoundToMinusInf = RM,
409 kRoundToZero = RZ 414 kRoundToZero = RZ
410 }; 415 };
411 416
412 static const uint32_t kVFPRoundingModeMask = 3 << 22; 417 static const uint32_t kVFPRoundingModeMask = 3 << 22;
413 418
419 enum CheckForInexactConversion {
420 kCheckForInexactConversion,
421 kDontCheckForInexactConversion
422 };
423
414 // ----------------------------------------------------------------------------- 424 // -----------------------------------------------------------------------------
415 // Hints. 425 // Hints.
416 426
417 // Branch hints are not used on the ARM. They are defined so that they can 427 // Branch hints are not used on the ARM. They are defined so that they can
418 // appear in shared function signatures, but will be ignored in ARM 428 // appear in shared function signatures, but will be ignored in ARM
419 // implementations. 429 // implementations.
420 enum Hint { no_hint }; 430 enum Hint { no_hint };
421 431
422 // Hints are not used on the arm. Negating is trivial. 432 // Hints are not used on the arm. Negating is trivial.
423 inline Hint NegateHint(Hint ignored) { return no_hint; } 433 inline Hint NegateHint(Hint ignored) { return no_hint; }
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 static int Number(const char* name, bool* is_double); 762 static int Number(const char* name, bool* is_double);
753 763
754 private: 764 private:
755 static const char* names_[kNumVFPRegisters]; 765 static const char* names_[kNumVFPRegisters];
756 }; 766 };
757 767
758 768
759 } } // namespace v8::internal 769 } } // namespace v8::internal
760 770
761 #endif // V8_ARM_CONSTANTS_ARM_H_ 771 #endif // V8_ARM_CONSTANTS_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/cpu-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698