[vm] refactor native entry and native entry type arguments
Change-Id: I03efbbf4340de1c8f23c60854ed991671ca2b647 Reviewed-on: https://dart-review.googlesource.com/c/87077 Commit-Queue: Daco Harkes <dacoharkes@google.com> Reviewed-by: Samir Jindel <sjindel@google.com>
This commit is contained in:
committed by
commit-bot@chromium.org
parent
0028491fdd
commit
14ff2110ce
@@ -102,11 +102,11 @@ RawStackTrace* GetStackTraceForException() {
|
||||
return CurrentStackTrace(thread, false, 0);
|
||||
}
|
||||
|
||||
DEFINE_NATIVE_ENTRY(StackTrace_current, 0) {
|
||||
DEFINE_NATIVE_ENTRY(StackTrace_current, 0, 0) {
|
||||
return CurrentStackTrace(thread, false);
|
||||
}
|
||||
|
||||
DEFINE_NATIVE_ENTRY(StackTrace_asyncStackTraceHelper, 1) {
|
||||
DEFINE_NATIVE_ENTRY(StackTrace_asyncStackTraceHelper, 0, 1) {
|
||||
if (!FLAG_causal_async_stacks) {
|
||||
return Object::null();
|
||||
}
|
||||
@@ -120,12 +120,12 @@ DEFINE_NATIVE_ENTRY(StackTrace_asyncStackTraceHelper, 1) {
|
||||
return CurrentStackTrace(thread, true);
|
||||
}
|
||||
|
||||
DEFINE_NATIVE_ENTRY(StackTrace_clearAsyncThreadStackTrace, 0) {
|
||||
DEFINE_NATIVE_ENTRY(StackTrace_clearAsyncThreadStackTrace, 0, 0) {
|
||||
thread->clear_async_stack_trace();
|
||||
return Object::null();
|
||||
}
|
||||
|
||||
DEFINE_NATIVE_ENTRY(StackTrace_setAsyncThreadStackTrace, 1) {
|
||||
DEFINE_NATIVE_ENTRY(StackTrace_setAsyncThreadStackTrace, 0, 1) {
|
||||
if (!FLAG_causal_async_stacks) {
|
||||
return Object::null();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user