Cleanup Stubs.cpp (#4593)

This commit is contained in:
Alexander Shabalin
2020-12-15 10:30:15 +03:00
committed by Stanislav Erokhin
parent f160d8ec36
commit 92f8eff958
10 changed files with 161 additions and 95 deletions
+8 -1
View File
@@ -173,8 +173,15 @@ void InitAndRegisterGlobal(ObjHeader** location, const ObjHeader* initialValue)
// in intermediate frames when throwing
//
// NOTE: Must match `MemoryModel` in `Platform.kt`
enum class MemoryModel {
kStrict = 0,
kRelaxed = 1,
kExperimental = 2,
};
// Controls the current memory model, is compile-time constant.
extern const bool IsStrictMemoryModel;
extern const MemoryModel CurrentMemoryModel;
// Sets stack location.
void SetStackRef(ObjHeader** location, const ObjHeader* object) RUNTIME_NOTHROW;