| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index f6a020f042d59f4b6aa010b59996b54f85fe90b7..c719c6412ce0dded3c58fd2cad17d3bb4a2f682c 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -1815,6 +1815,22 @@ RUNTIME_FUNCTION(Runtime_ScriptPositionInfo) {
|
| return *GetJSPositionInfo(script_handle, position, offset_flag, isolate);
|
| }
|
|
|
| +// TODO(5530): Rename once conflicting function has been deleted.
|
| +RUNTIME_FUNCTION(Runtime_ScriptPositionInfo2) {
|
| + HandleScope scope(isolate);
|
| + DCHECK(args.length() == 3);
|
| + CONVERT_NUMBER_CHECKED(int32_t, scriptid, Int32, args[0]);
|
| + CONVERT_NUMBER_CHECKED(int32_t, position, Int32, args[1]);
|
| + CONVERT_BOOLEAN_ARG_CHECKED(with_offset, 2);
|
| +
|
| + Handle<Script> script;
|
| + CHECK(GetScriptById(isolate, scriptid, &script));
|
| +
|
| + const Script::OffsetFlag offset_flag =
|
| + with_offset ? Script::WITH_OFFSET : Script::NO_OFFSET;
|
| + return *GetJSPositionInfo(script, position, offset_flag, isolate);
|
| +}
|
| +
|
| // Returns the given line as a string, or null if line is out of bounds.
|
| // The parameter line is expected to include the script's line offset.
|
| // TODO(5530): Remove once uses in debug.js are gone.
|
|
|