| 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 994 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1005   // Dispatched behavior. |  1005   // Dispatched behavior. | 
|  1006   inline void SmiPrint() { |  1006   inline void SmiPrint() { | 
|  1007     SmiPrint(stdout); |  1007     SmiPrint(stdout); | 
|  1008   } |  1008   } | 
|  1009   void SmiPrint(FILE* out); |  1009   void SmiPrint(FILE* out); | 
|  1010   void SmiPrint(StringStream* accumulator); |  1010   void SmiPrint(StringStream* accumulator); | 
|  1011 #ifdef DEBUG |  1011 #ifdef DEBUG | 
|  1012   void SmiVerify(); |  1012   void SmiVerify(); | 
|  1013 #endif |  1013 #endif | 
|  1014  |  1014  | 
|  1015   static const int kMinValue = (-1U << (kSmiValueSize - 1)); |  1015   static const int kMinValue =  | 
 |  1016       (static_cast<unsigned int>(-1)) << (kSmiValueSize - 1); | 
|  1016   static const int kMaxValue = -(kMinValue + 1); |  1017   static const int kMaxValue = -(kMinValue + 1); | 
|  1017  |  1018  | 
|  1018  private: |  1019  private: | 
|  1019   DISALLOW_IMPLICIT_CONSTRUCTORS(Smi); |  1020   DISALLOW_IMPLICIT_CONSTRUCTORS(Smi); | 
|  1020 }; |  1021 }; | 
|  1021  |  1022  | 
|  1022  |  1023  | 
|  1023 // Failure is used for reporting out of memory situations and |  1024 // Failure is used for reporting out of memory situations and | 
|  1024 // propagating exceptions through the runtime system.  Failure objects |  1025 // propagating exceptions through the runtime system.  Failure objects | 
|  1025 // are transient and cannot occur as part of the object graph. |  1026 // are transient and cannot occur as part of the object graph. | 
| (...skipping 7276 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  8302     } else { |  8303     } else { | 
|  8303       value &= ~(1 << bit_position); |  8304       value &= ~(1 << bit_position); | 
|  8304     } |  8305     } | 
|  8305     return value; |  8306     return value; | 
|  8306   } |  8307   } | 
|  8307 }; |  8308 }; | 
|  8308  |  8309  | 
|  8309 } }  // namespace v8::internal |  8310 } }  // namespace v8::internal | 
|  8310  |  8311  | 
|  8311 #endif  // V8_OBJECTS_H_ |  8312 #endif  // V8_OBJECTS_H_ | 
| OLD | NEW |