| 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 |  | 
|---|
| 9 | namespace dart { | 
|---|
| 10 | namespace compiler { | 
|---|
| 11 |  | 
|---|
| 12 | void AsmIntrinsifier::String_identityHash(Assembler* assembler, | 
|---|
| 13 | Label* normal_ir_body) { | 
|---|
| 14 | String_getHashCode(assembler, normal_ir_body); | 
|---|
| 15 | } | 
|---|
| 16 |  | 
|---|
| 17 | void AsmIntrinsifier::Double_identityHash(Assembler* assembler, | 
|---|
| 18 | Label* normal_ir_body) { | 
|---|
| 19 | Double_hashCode(assembler, normal_ir_body); | 
|---|
| 20 | } | 
|---|
| 21 |  | 
|---|
| 22 | void AsmIntrinsifier::RegExp_ExecuteMatch(Assembler* assembler, | 
|---|
| 23 | Label* normal_ir_body) { | 
|---|
| 24 | AsmIntrinsifier::IntrinsifyRegExpExecuteMatch(assembler, normal_ir_body, | 
|---|
| 25 | /*sticky=*/false); | 
|---|
| 26 | } | 
|---|
| 27 |  | 
|---|
| 28 | void 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 |  | 
|---|