| 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 1366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 }; | 1377 }; |
| 1378 | 1378 |
| 1379 | 1379 |
| 1380 /** | 1380 /** |
| 1381 * A JavaScript value representing a signed integer. | 1381 * A JavaScript value representing a signed integer. |
| 1382 */ | 1382 */ |
| 1383 class Integer : public Number { | 1383 class Integer : public Number { |
| 1384 public: | 1384 public: |
| 1385 V8EXPORT static Local<Integer> New(int32_t value); | 1385 V8EXPORT static Local<Integer> New(int32_t value); |
| 1386 V8EXPORT static Local<Integer> NewFromUnsigned(uint32_t value); | 1386 V8EXPORT static Local<Integer> NewFromUnsigned(uint32_t value); |
| 1387 V8EXPORT static Local<Integer> New(int32_t value, Isolate*); |
| 1388 V8EXPORT static Local<Integer> NewFromUnsigned(uint32_t value, Isolate*); |
| 1387 V8EXPORT int64_t Value() const; | 1389 V8EXPORT int64_t Value() const; |
| 1388 static inline Integer* Cast(v8::Value* obj); | 1390 static inline Integer* Cast(v8::Value* obj); |
| 1389 private: | 1391 private: |
| 1390 V8EXPORT Integer(); | 1392 V8EXPORT Integer(); |
| 1391 V8EXPORT static void CheckCast(v8::Value* obj); | 1393 V8EXPORT static void CheckCast(v8::Value* obj); |
| 1392 }; | 1394 }; |
| 1393 | 1395 |
| 1394 | 1396 |
| 1395 /** | 1397 /** |
| 1396 * A JavaScript value representing a 32-bit signed integer. | 1398 * A JavaScript value representing a 32-bit signed integer. |
| (...skipping 3257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4654 | 4656 |
| 4655 | 4657 |
| 4656 } // namespace v8 | 4658 } // namespace v8 |
| 4657 | 4659 |
| 4658 | 4660 |
| 4659 #undef V8EXPORT | 4661 #undef V8EXPORT |
| 4660 #undef TYPE_CHECK | 4662 #undef TYPE_CHECK |
| 4661 | 4663 |
| 4662 | 4664 |
| 4663 #endif // V8_H_ | 4665 #endif // V8_H_ |
| OLD | NEW |