OLD | NEW |
---|---|
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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
568 KEEP_EXCEPTION, | 568 KEEP_EXCEPTION, |
569 CLEAR_EXCEPTION | 569 CLEAR_EXCEPTION |
570 }; | 570 }; |
571 | 571 |
572 | 572 |
573 enum MinusZeroMode { | 573 enum MinusZeroMode { |
574 TREAT_MINUS_ZERO_AS_ZERO, | 574 TREAT_MINUS_ZERO_AS_ZERO, |
575 FAIL_ON_MINUS_ZERO | 575 FAIL_ON_MINUS_ZERO |
576 }; | 576 }; |
577 | 577 |
578 const int kMaxInteger8 = (1 << 7) - 1; | |
579 const int kMinInteger8 = -(1 << 7); | |
580 const int kMaxUInteger8 = (1 << 8) - 1; | |
581 const int kMinUInteger8 = 0; | |
582 const int kMaxInteger16 = (1 << 15) - 1; | |
583 const int kMinInteger16 = -(1 << 15); | |
584 const int kMaxUInteger16 = (1 << 16) - 1; | |
585 const int kMinUInteger16 = 0; | |
586 | |
Yang
2013/11/08 08:45:59
I actually had globals.h in mind, not v8globals. W
danno
2013/11/08 10:49:12
Done.
| |
578 } } // namespace v8::internal | 587 } } // namespace v8::internal |
579 | 588 |
580 #endif // V8_V8GLOBALS_H_ | 589 #endif // V8_V8GLOBALS_H_ |
OLD | NEW |