Skip to content

Commit

Permalink
Move Macro10k to Support
Browse files Browse the repository at this point in the history
Summary: Macro10k is a hack to enable mixed JS and native stacks in profiling, but it's not intrinsically related to Hermes, so move it to Support.

Reviewed By: avp

Differential Revision: D29491427

fbshipit-source-id: 99ac3a763a8103a43f4fffc846b584add7e01033
  • Loading branch information
kodafb authored and facebook-github-bot committed Jul 4, 2021
1 parent 64edcf4 commit cec7541
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

#ifndef HERMES_UTILS_MACRO10K_H
#define HERMES_UTILS_MACRO10K_H
#ifndef HERMES_SUPPORT_MACRO10K_H
#define HERMES_SUPPORT_MACRO10K_H

#define MACRO_10K(V, pre, suf) \
V(pre##_0000_##suf) \
Expand Down
2 changes: 1 addition & 1 deletion include/hermes/VM/Profiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#endif

#if defined(HERMESVM_PROFILER_EXTERN)
#include "hermes/Utils/Macro10k.h"
#include "hermes/Support/Macro10k.h"

// Symbols have the form "JS_[0-9][0-9][0-9][0-9]_xxx...xxx" and the suffix is
// later replaced with the name of the JS function having that ProfilerID.
Expand Down

0 comments on commit cec7541

Please sign in to comment.