Skip to content

Instantly share code, notes, and snippets.

@bhackett1024
Created February 15, 2019 15:32
Show Gist options
  • Save bhackett1024/9c542e122eebc0e43a9e45921c10162c to your computer and use it in GitHub Desktop.
Save bhackett1024/9c542e122eebc0e43a9e45921c10162c to your computer and use it in GitHub Desktop.
avoid inlining
diff --git a/js/src/vm/Probes-inl.h b/js/src/vm/Probes-inl.h
--- a/js/src/vm/Probes-inl.h
+++ b/js/src/vm/Probes-inl.h
@@ -30,7 +30,7 @@ inline bool probes::CallTrackingActive(J
return false;
}
-inline bool probes::EnterScript(JSContext* cx, JSScript* script,
+MOZ_NEVER_INLINE bool probes::EnterScript(JSContext* cx, JSScript* script,
JSFunction* maybeFun, InterpreterFrame* fp) {
#ifdef INCLUDE_MOZILLA_DTRACE
if (JAVASCRIPT_FUNCTION_ENTRY_ENABLED()) {
diff --git a/js/src/vm/Stack.cpp b/js/src/vm/Stack.cpp
--- a/js/src/vm/Stack.cpp
+++ b/js/src/vm/Stack.cpp
@@ -192,7 +192,7 @@ bool InterpreterFrame::initFunctionEnvir
return js::InitFunctionEnvironmentObjects(cx, this);
}
-bool InterpreterFrame::prologue(JSContext* cx) {
+MOZ_NEVER_INLINE bool InterpreterFrame::prologue(JSContext* cx) {
RootedScript script(cx, this->script());
MOZ_ASSERT(cx->interpreterRegs().pc == script->code());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment