Skip to content

Commit b59745c

Browse files
committed
Bug 1632067 part 5 - Move CacheIrOpNames definition to the cpp file. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D71903 UltraBlame original commit: 1b1a0b51676261b8e76dafcc464d3c40357c75a9
1 parent 8840421 commit b59745c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

js/src/jit/CacheIR.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ const char* const js::jit::CacheKindNames[] = {
3838
#undef DEFINE_KIND
3939
};
4040

41+
const char* const js::jit::CacheIrOpNames[] = {
42+
#define OPNAME(op, ...) #op,
43+
CACHE_IR_OPS(OPNAME)
44+
#undef OPNAME
45+
};
46+
4147

4248

4349

js/src/jit/CacheIR.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,7 @@ enum class CacheOp {
205205
#undef DEFINE_OP
206206
};
207207

208-
const char* const CacheIrOpNames[] = {
209-
#define OPNAME(op, ...) #op,
210-
CACHE_IR_OPS(OPNAME)
211-
#undef OPNAME
212-
};
208+
extern const char* const CacheIrOpNames[];
213209

214210
class StubField {
215211
public:

0 commit comments

Comments
 (0)