summaryrefslogtreecommitdiff
path: root/deps/v8/src/builtins/internal.tq
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/builtins/internal.tq')
-rw-r--r--deps/v8/src/builtins/internal.tq8
1 files changed, 7 insertions, 1 deletions
diff --git a/deps/v8/src/builtins/internal.tq b/deps/v8/src/builtins/internal.tq
index b6512da471..c377a2a179 100644
--- a/deps/v8/src/builtins/internal.tq
+++ b/deps/v8/src/builtins/internal.tq
@@ -14,11 +14,17 @@ extern runtime BytecodeBudgetInterruptFromCode(implicit context: Context)(
builtin GetTemplateObject(
context: Context, shared: SharedFunctionInfo,
description: TemplateObjectDescription, slot: uintptr,
- maybeFeedbackVector: FeedbackVector|Undefined): JSArray {
+ maybeFeedbackVector: Undefined|FeedbackVector): JSArray {
// TODO(jgruber): Consider merging with the GetTemplateObject bytecode
// handler; the current advantage of the split implementation is that the
// bytecode can skip most work if feedback exists.
+ // TODO(v8:9891): Remove this assert once all callers are ported to Torque.
+ // This assert ensures correctness of maybeFeedbackVector's type which can
+ // be easily broken for calls from CSA.
+ assert(
+ IsUndefined(maybeFeedbackVector) ||
+ Is<FeedbackVector>(maybeFeedbackVector));
try {
const vector =
Cast<FeedbackVector>(maybeFeedbackVector) otherwise CallRuntime;