1// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4// Class for intrinsifying functions.
5#define SHOULD_NOT_INCLUDE_RUNTIME
6
7#include "vm/compiler/asm_intrinsifier.h"
8
9namespace dart {
10namespace compiler {
11
12void AsmIntrinsifier::String_identityHash(Assembler* assembler,
13 Label* normal_ir_body) {
14 String_getHashCode(assembler, normal_ir_body);
15}
16
17void AsmIntrinsifier::Double_identityHash(Assembler* assembler,
18 Label* normal_ir_body) {
19 Double_hashCode(assembler, normal_ir_body);
20}
21
22void AsmIntrinsifier::RegExp_ExecuteMatch(Assembler* assembler,
23 Label* normal_ir_body) {
24 AsmIntrinsifier::IntrinsifyRegExpExecuteMatch(assembler, normal_ir_body,
25 /*sticky=*/false);
26}
27
28void AsmIntrinsifier::RegExp_ExecuteMatchSticky(Assembler* assembler,
29 Label* normal_ir_body) {
30 AsmIntrinsifier::IntrinsifyRegExpExecuteMatch(assembler, normal_ir_body,
31 /*sticky=*/true);
32}
33
34} // namespace compiler
35} // namespace dart
36