Flutter Engine
The Flutter Engine
third_party
dart-lang
sdk
runtime
vm
compiler
api
type_check_mode.h
Go to the documentation of this file.
1
// Copyright (c) 2020, 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
5
#ifndef RUNTIME_VM_COMPILER_API_TYPE_CHECK_MODE_H_
6
#define RUNTIME_VM_COMPILER_API_TYPE_CHECK_MODE_H_
7
8
namespace
dart
{
9
10
// Invocation mode for TypeCheck runtime entry that describes
11
// where we are calling it from.
12
enum
TypeCheckMode
{
13
// TypeCheck is invoked from LazySpecializeTypeTest stub.
14
// It should replace stub on the type with a specialized version.
15
kTypeCheckFromLazySpecializeStub
,
16
17
// TypeCheck is invoked from the SlowTypeTest stub.
18
// This means that cache can be lazily created (if needed)
19
// and dst_name can be fetched from the pool.
20
kTypeCheckFromSlowStub
,
21
22
// TypeCheck is invoked from normal inline AssertAssignable.
23
// Both cache and dst_name must be already populated.
24
kTypeCheckFromInline
25
};
26
27
}
// namespace dart
28
29
#endif
// RUNTIME_VM_COMPILER_API_TYPE_CHECK_MODE_H_
dart
Definition:
dart_vm.cc:33
dart::TypeCheckMode
TypeCheckMode
Definition:
type_check_mode.h:12
dart::kTypeCheckFromLazySpecializeStub
@ kTypeCheckFromLazySpecializeStub
Definition:
type_check_mode.h:15
dart::kTypeCheckFromInline
@ kTypeCheckFromInline
Definition:
type_check_mode.h:24
dart::kTypeCheckFromSlowStub
@ kTypeCheckFromSlowStub
Definition:
type_check_mode.h:20
Generated on Sun Jun 23 2024 21:55:26 for Flutter Engine by
1.9.4