mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 14:32:24 +00:00
3a668dcf03
Fixes https://github.com/dart-lang/sdk/issues/52045 TEST=ffi_induce_a_crash_test Change-Id: Ic047df10732d6ff8cf695ce098d80ec3a098dbf9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/302380 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Aprelev <aam@google.com>
24 lines
755 B
C++
24 lines
755 B
C++
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
// Class for patching compiled code.
|
|
|
|
#ifndef RUNTIME_VM_UNWINDING_RECORDS_H_
|
|
#define RUNTIME_VM_UNWINDING_RECORDS_H_
|
|
|
|
#include "vm/allocation.h"
|
|
#include "vm/heap/page.h"
|
|
|
|
namespace dart {
|
|
|
|
class UnwindingRecords : public AllStatic {
|
|
public:
|
|
static const void* GenerateRecordsInto(intptr_t offset,
|
|
uint8_t* target_buffer);
|
|
static void RegisterExecutablePage(Page* page);
|
|
static void UnregisterExecutablePage(Page* page);
|
|
};
|
|
|
|
} // namespace dart
|
|
|
|
#endif // RUNTIME_VM_UNWINDING_RECORDS_H_
|