Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index f2283b8090764d9bfeaaa31d1333e5f98c0e9cec..4df0c1b45a17b6c6e836365cd3d116e5a60041ec 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -335,8 +335,8 @@ static inline Object* ReturnDereferencedHandle(Handle<Object> obj, |
} |
-static inline Object* ReturnPositiveSmiOrNull(int value, Isolate* isolate) { |
- if (value >= 0) return Smi::FromInt(value); |
+static inline Object* ReturnPositiveNumberOrNull(int value, Isolate* isolate) { |
+ if (value >= 0) return *isolate->factory()->NewNumberFromInt(value); |
return isolate->heap()->null_value(); |
} |
@@ -350,8 +350,8 @@ CALLSITE_GET(GetFileName, ReturnDereferencedHandle) |
CALLSITE_GET(GetFunctionName, ReturnDereferencedHandle) |
CALLSITE_GET(GetScriptNameOrSourceUrl, ReturnDereferencedHandle) |
CALLSITE_GET(GetMethodName, ReturnDereferencedHandle) |
-CALLSITE_GET(GetLineNumber, ReturnPositiveSmiOrNull) |
-CALLSITE_GET(GetColumnNumber, ReturnPositiveSmiOrNull) |
+CALLSITE_GET(GetLineNumber, ReturnPositiveNumberOrNull) |
+CALLSITE_GET(GetColumnNumber, ReturnPositiveNumberOrNull) |
CALLSITE_GET(IsNative, ReturnBoolean) |
CALLSITE_GET(IsToplevel, ReturnBoolean) |
CALLSITE_GET(IsEval, ReturnBoolean) |