Index: src/regexp/arm64/regexp-macro-assembler-arm64.cc |
diff --git a/src/regexp/arm64/regexp-macro-assembler-arm64.cc b/src/regexp/arm64/regexp-macro-assembler-arm64.cc |
index 941cceaa5973eda95162267f97243beb1c64b0f4..e8bdad8e14fb44498960a18ef96742db99eec2ab 100644 |
--- a/src/regexp/arm64/regexp-macro-assembler-arm64.cc |
+++ b/src/regexp/arm64/regexp-macro-assembler-arm64.cc |
@@ -1088,7 +1088,8 @@ Handle<HeapObject> RegExpMacroAssemblerARM64::GetCode(Handle<String> source) { |
masm_->GetCode(&code_desc); |
Handle<Code> code = isolate()->factory()->NewCode( |
code_desc, Code::ComputeFlags(Code::REGEXP), masm_->CodeObject()); |
- PROFILE(masm_->isolate(), RegExpCodeCreateEvent(*code, *source)); |
+ PROFILE(masm_->isolate(), |
+ RegExpCodeCreateEvent(AbstractCode::cast(*code), *source)); |
return Handle<HeapObject>::cast(code); |
} |