mirror of
https://github.com/rubyjs/mini_racer
synced 2023-03-27 23:21:28 -04:00
Uniformize indentation style to always using 4 spaces instead of the weird mix of 4 spaces and tabs 8 space wide (#127)
This commit is contained in:
parent
94ac734556
commit
b3c9b35859
1 changed files with 221 additions and 226 deletions
|
@ -851,8 +851,7 @@ typedef struct {
|
||||||
bool failed;
|
bool failed;
|
||||||
} protected_callback_data;
|
} protected_callback_data;
|
||||||
|
|
||||||
static
|
static VALUE protected_callback(VALUE rdata) {
|
||||||
VALUE protected_callback(VALUE rdata) {
|
|
||||||
protected_callback_data* data = (protected_callback_data*)rdata;
|
protected_callback_data* data = (protected_callback_data*)rdata;
|
||||||
VALUE result;
|
VALUE result;
|
||||||
|
|
||||||
|
@ -1287,8 +1286,7 @@ static void unblock_function(void *args) {
|
||||||
call->context_info->isolate_info->interrupted = true;
|
call->context_info->isolate_info->interrupted = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE rb_context_call_unsafe(int argc, VALUE *argv, VALUE self) {
|
||||||
rb_context_call_unsafe(int argc, VALUE *argv, VALUE self) {
|
|
||||||
ContextInfo* context_info;
|
ContextInfo* context_info;
|
||||||
FunctionCall call;
|
FunctionCall call;
|
||||||
VALUE *call_argv = NULL;
|
VALUE *call_argv = NULL;
|
||||||
|
@ -1321,7 +1319,6 @@ rb_context_call_unsafe(int argc, VALUE *argv, VALUE self) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool missingFunction = false;
|
bool missingFunction = false;
|
||||||
|
|
||||||
{
|
{
|
||||||
Locker lock(isolate);
|
Locker lock(isolate);
|
||||||
Isolate::Scope isolate_scope(isolate);
|
Isolate::Scope isolate_scope(isolate);
|
||||||
|
@ -1352,7 +1349,6 @@ rb_context_call_unsafe(int argc, VALUE *argv, VALUE self) {
|
||||||
call.argv[i] = convert_ruby_to_v8(isolate, call_argv[i]);
|
call.argv[i] = convert_ruby_to_v8(isolate, call_argv[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rb_thread_call_without_gvl(nogvl_context_call, &call, unblock_function, &call);
|
rb_thread_call_without_gvl(nogvl_context_call, &call, unblock_function, &call);
|
||||||
free(call.argv);
|
free(call.argv);
|
||||||
|
|
||||||
|
@ -1431,5 +1427,4 @@ extern "C" {
|
||||||
|
|
||||||
rb_define_singleton_method(rb_cPlatform, "set_flag_as_str!", (VALUE(*)(...))&rb_platform_set_flag_as_str, 1);
|
rb_define_singleton_method(rb_cPlatform, "set_flag_as_str!", (VALUE(*)(...))&rb_platform_set_flag_as_str, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue