Commit d64dc800 authored by verwaest's avatar verwaest Committed by Commit bot

Return CallSite numbers as Number rather than Smi

BUG=chromium:570651
LOG=n

Review URL: https://codereview.chromium.org/1532083002

Cr-Commit-Position: refs/heads/master@{#32947}
parent 78030950
...@@ -335,8 +335,8 @@ static inline Object* ReturnDereferencedHandle(Handle<Object> obj, ...@@ -335,8 +335,8 @@ static inline Object* ReturnDereferencedHandle(Handle<Object> obj,
} }
static inline Object* ReturnPositiveSmiOrNull(int value, Isolate* isolate) { static inline Object* ReturnPositiveNumberOrNull(int value, Isolate* isolate) {
if (value >= 0) return Smi::FromInt(value); if (value >= 0) return *isolate->factory()->NewNumberFromInt(value);
return isolate->heap()->null_value(); return isolate->heap()->null_value();
} }
...@@ -350,8 +350,8 @@ CALLSITE_GET(GetFileName, ReturnDereferencedHandle) ...@@ -350,8 +350,8 @@ CALLSITE_GET(GetFileName, ReturnDereferencedHandle)
CALLSITE_GET(GetFunctionName, ReturnDereferencedHandle) CALLSITE_GET(GetFunctionName, ReturnDereferencedHandle)
CALLSITE_GET(GetScriptNameOrSourceUrl, ReturnDereferencedHandle) CALLSITE_GET(GetScriptNameOrSourceUrl, ReturnDereferencedHandle)
CALLSITE_GET(GetMethodName, ReturnDereferencedHandle) CALLSITE_GET(GetMethodName, ReturnDereferencedHandle)
CALLSITE_GET(GetLineNumber, ReturnPositiveSmiOrNull) CALLSITE_GET(GetLineNumber, ReturnPositiveNumberOrNull)
CALLSITE_GET(GetColumnNumber, ReturnPositiveSmiOrNull) CALLSITE_GET(GetColumnNumber, ReturnPositiveNumberOrNull)
CALLSITE_GET(IsNative, ReturnBoolean) CALLSITE_GET(IsNative, ReturnBoolean)
CALLSITE_GET(IsToplevel, ReturnBoolean) CALLSITE_GET(IsToplevel, ReturnBoolean)
CALLSITE_GET(IsEval, ReturnBoolean) CALLSITE_GET(IsEval, ReturnBoolean)
......
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
Error.prepareStackTrace = (e,s) => s;
var __v_3 = Error().stack[0].constructor;
var __v_4 = {};
function __f_3() {}
var __v_5 = __v_3.call(null, __v_4, __f_3, {valueOf() { return 1611877293 }});
__v_5.getColumnNumber();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment