| 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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 // Dispatched behavior. | 1007 // Dispatched behavior. |
| 1008 inline void SmiPrint() { | 1008 inline void SmiPrint() { |
| 1009 SmiPrint(stdout); | 1009 SmiPrint(stdout); |
| 1010 } | 1010 } |
| 1011 void SmiPrint(FILE* out); | 1011 void SmiPrint(FILE* out); |
| 1012 void SmiPrint(StringStream* accumulator); | 1012 void SmiPrint(StringStream* accumulator); |
| 1013 #ifdef DEBUG | 1013 #ifdef DEBUG |
| 1014 void SmiVerify(); | 1014 void SmiVerify(); |
| 1015 #endif | 1015 #endif |
| 1016 | 1016 |
| 1017 static const int kMinValue = | 1017 static const int kMinValue = |
| 1018 (static_cast<unsigned int>(-1)) << (kSmiValueSize - 1); | 1018 (static_cast<unsigned int>(-1)) << (kSmiValueSize - 1); |
| 1019 static const int kMaxValue = -(kMinValue + 1); | 1019 static const int kMaxValue = -(kMinValue + 1); |
| 1020 | 1020 |
| 1021 private: | 1021 private: |
| 1022 DISALLOW_IMPLICIT_CONSTRUCTORS(Smi); | 1022 DISALLOW_IMPLICIT_CONSTRUCTORS(Smi); |
| 1023 }; | 1023 }; |
| 1024 | 1024 |
| 1025 | 1025 |
| 1026 // Failure is used for reporting out of memory situations and | 1026 // Failure is used for reporting out of memory situations and |
| 1027 // propagating exceptions through the runtime system. Failure objects | 1027 // propagating exceptions through the runtime system. Failure objects |
| (...skipping 7313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8341 } else { | 8341 } else { |
| 8342 value &= ~(1 << bit_position); | 8342 value &= ~(1 << bit_position); |
| 8343 } | 8343 } |
| 8344 return value; | 8344 return value; |
| 8345 } | 8345 } |
| 8346 }; | 8346 }; |
| 8347 | 8347 |
| 8348 } } // namespace v8::internal | 8348 } } // namespace v8::internal |
| 8349 | 8349 |
| 8350 #endif // V8_OBJECTS_H_ | 8350 #endif // V8_OBJECTS_H_ |
| OLD | NEW |