1
0
Fork 0
mirror of https://github.com/rubyjs/mini_racer synced 2023-03-27 23:21:28 -04:00

mark several C functions as static

These functions don't appear to be used outside of
mini_racer_extension.cc, so lets not pollute symbol tables or
confuse future readers with unnecessary visibility.
This commit is contained in:
Sam Saffron 2021-12-08 15:54:06 +11:00
parent 7a16ef8120
commit 67c72acf7b
No known key found for this signature in database
GPG key ID: B9606168D2FFD9F5

View file

@ -453,7 +453,7 @@ static void prepare_result(MaybeLocal<Value> v8res,
}
}
void*
static void*
nogvl_context_eval(void* arg) {
EvalParams* eval_params = (EvalParams*)arg;
@ -786,6 +786,7 @@ create_snapshot_data_blob(const char *embedded_source = nullptr) {
SnapshotCreator::FunctionCodeHandling::kClear);
}
static
StartupData warm_up_snapshot_data_blob(StartupData cold_snapshot_blob,
const char *warmup_source) {
// Use following steps to create a warmed up snapshot blob from a cold one:
@ -1190,7 +1191,7 @@ VALUE rescue_callback(VALUE rdata, VALUE exception) {
return exception;
}
void*
static void*
gvl_ruby_callback(void* data) {
FunctionCallbackInfo<Value>* args = (FunctionCallbackInfo<Value>*)data;