[ptr-compr] Fix macro assembler test for Windows bot failure

R=ishell@chromium.org

Bug: v8:7703
Change-Id: Iba0ad7d6c6e9c772fc9d9bc081b0c2bf31e23565
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1613249
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Michael Stanton <mvstanton@chromium.org>
Cr-Commit-Position: refs/heads/master@{#61542}
This commit is contained in:
Mike Stanton 2019-05-15 16:28:57 +02:00 committed by Commit Bot
parent 735aa493a2
commit 81cd54b749

View File

@ -454,9 +454,9 @@ TEST(EmbeddedObj) {
StdoutStream os;
code->Print(os);
#endif
typedef Object(myF0)();
typedef Address(myF0)();
auto f = GeneratedCode<myF0>::FromAddress(isolate, code->entry());
Object result = f.Call();
Object result = Object(f.Call());
CHECK_EQ(old_array->ptr(), result.ptr());
// Collect garbage to ensure reloc info can be walked by the heap.