Index: include/v8.h |
=================================================================== |
--- include/v8.h (revision 3083) |
+++ include/v8.h (working copy) |
@@ -1069,7 +1069,7 @@ |
class V8EXPORT Integer : public Number { |
public: |
static Local<Integer> New(int32_t value); |
- static inline Local<Integer> NewFromUnsigned(uint32_t value); |
+ static Local<Integer> NewFromUnsigned(uint32_t value); |
int64_t Value() const; |
static inline Integer* Cast(v8::Value* obj); |
private: |
@@ -3069,15 +3069,6 @@ |
} |
-Local<Integer> Integer::NewFromUnsigned(uint32_t value) { |
- bool fits_into_int32_t = (value & (1 << 31)) == 0; |
- if (fits_into_int32_t) { |
- return Integer::New(static_cast<int32_t>(value)); |
- } |
- return Local<Integer>::Cast(Number::New(value)); |
-} |
- |
- |
Integer* Integer::Cast(v8::Value* value) { |
#ifdef V8_ENABLE_CHECKS |
CheckCast(value); |