Skip to content

Commit dc6246c

Browse files
marjakhv8-internal-scoped@luci-project-accounts.iam.gserviceaccount.com
authored andcommitted
[types] Include symbolMethods when printing types
Change-Id: I563425858ed162ab8dbc2699abf6c94cca98d3ca Reviewed-on: https://chrome-internal-review.googlesource.com/c/v8/fuzzilli/+/9457294 Reviewed-by: Matthias Liedtke <mliedtke@google.com> Reviewed-by: Raphaël Hérouart <rherouart@google.com> Commit-Queue: Marja Hölttä <marja@google.com>
1 parent 8cbff77 commit dc6246c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Sources/Fuzzilli/FuzzIL/TypeSystem.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,6 +1417,14 @@ extension ILType: CustomStringConvertible {
14171417
params.append("withMethods: \(methods)")
14181418
}
14191419
}
1420+
if !symbolMethods.isEmpty {
1421+
if abbreviate && symbolMethods.count > 5 {
1422+
let selection = symbolMethods.prefix(3).map { "\"\($0)\"" }
1423+
params.append("withSymbolMethods: [\(selection.joined(separator: ", ")), ...]")
1424+
} else {
1425+
params.append("withSymbolMethods: \(symbolMethods)")
1426+
}
1427+
}
14201428
return ".object(\(params.joined(separator: ", ")))"
14211429
case .function:
14221430
if let signature = functionSignature {

0 commit comments

Comments
 (0)