[wasm][cleanup] Use BuildLoadUndefinedValueFromInstance more
R=manoskouk@chromium.org Bug: v8:11074 Change-Id: I5a0d99d22b683aee7bd63d68335ef7f775cf0816 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2579921 Reviewed-by: Manos Koukoutos <manoskouk@chromium.org> Reviewed-by: Andreas Haas <ahaas@chromium.org> Commit-Queue: Andreas Haas <ahaas@chromium.org> Cr-Commit-Position: refs/heads/master@{#71675}
This commit is contained in:
parent
0f9bf544da
commit
098d293337
@ -6294,9 +6294,7 @@ class WasmWrapperGraphBuilder : public WasmGraphBuilder {
|
||||
// Invalid object wrappers (i.e. any other JS object that doesn't have the
|
||||
// magic hidden property) will return {undefined}. Map that to {null} or
|
||||
// {input}, depending on the value of {failure}.
|
||||
Node* undefined = LOAD_FULL_POINTER(
|
||||
BuildLoadIsolateRoot(),
|
||||
IsolateData::root_slot_offset(RootIndex::kUndefinedValue));
|
||||
Node* undefined = BuildLoadUndefinedValueFromInstance();
|
||||
Node* is_undefined = gasm_->WordEqual(obj, undefined);
|
||||
Diamond check(graph(), mcgraph()->common(), is_undefined,
|
||||
BranchHint::kFalse);
|
||||
|
Loading…
Reference in New Issue
Block a user