From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- js/src/doc/Debugger/Debugger.Memory.md | 15 ++++++++++++++- js/src/doc/Debugger/Debugger.Object.md | 9 +++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) (limited to 'js/src/doc/Debugger') diff --git a/js/src/doc/Debugger/Debugger.Memory.md b/js/src/doc/Debugger/Debugger.Memory.md index c20354ef3c..5e8c594433 100644 --- a/js/src/doc/Debugger/Debugger.Memory.md +++ b/js/src/doc/Debugger/Debugger.Memory.md @@ -305,7 +305,7 @@ which produces a result like this: In general, a `breakdown` value has one of the following forms: -* { by: "count", count:count, bytes:bytes } +* { by: "count", count:count, bytes:bytes } The trivial categorization: none whatsoever. Simply tally up the items visited. If count is true, count the number of items visited; if @@ -409,6 +409,16 @@ In general, a `breakdown` value has one of the following forms: breakdown value produces. All breakdown values are optional, and default to `{ type: "count" }`. +* `{ by: "filename", then:breakdown, noFilename:noFilenameBreakdown }` + + For scripts only, group by the filename of the script. + + Further categorize all of the scripts from each distinct filename + using breakdown. + + Scripts that lack a filename are counted using noFilenameBreakdown. + These appear in the result `Map` under the key string `"noFilename"`. + * `{ by: "internalType", then: breakdown }` Group items by the names given their types internally by SpiderMonkey. @@ -441,6 +451,9 @@ In general, a `breakdown` value has one of the following forms: To simplify breakdown values, all `then` and `other` properties are optional. If omitted, they are treated as if they were `{ type: "count" }`. +Breakdown groupings cannot be nested within themselves. This would not be +useful, and forbidding this prevents infinite recursion. + If the `options` argument has no `breakdown` property, `takeCensus` defaults to the following: diff --git a/js/src/doc/Debugger/Debugger.Object.md b/js/src/doc/Debugger/Debugger.Object.md index c6f8b90a49..d81bffdaec 100644 --- a/js/src/doc/Debugger/Debugger.Object.md +++ b/js/src/doc/Debugger/Debugger.Object.md @@ -469,6 +469,15 @@ by code in d's compartment. If value is a native function in the debugger's compartment, return whether the referent is a native function for the same C++ native. +### `isSameNativeWithJitInfo(value)` +If value is a native function in the debugger's compartment, return +whether the referent is a native function for the same C++ native with the +same JSJitInfo pointer value. + +This can be used to distinguish functions with shared native function +implementation with different JSJitInfo pointer to define the underlying +functionality. + ### `isNativeGetterWithJitInfo()` Return whether the referent is a native getter function with JSJitInfo. -- cgit v1.2.3