Bug 1793959 - Add DecoratorEmitter; r=mgaudet

This adds a stub DecoratorEmitter to the build system.

Differential Revision: https://phabricator.services.mozilla.com/D162139
This commit is contained in:
Dan Minor 2022-11-23 16:47:13 +00:00
parent 1d31bafb33
commit 2755bc5a1c
3 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,12 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "frontend/DecoratorEmitter.h"
#include "frontend/BytecodeEmitter.h"
using namespace js;
using namespace js::frontend;
DecoratorEmitter::DecoratorEmitter(BytecodeEmitter* bce) {}

View File

@ -0,0 +1,21 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef frontend_DecoratorEmitter_h
#define frontend_DecoratorEmitter_h
#include "mozilla/Attributes.h"
namespace js::frontend {
struct BytecodeEmitter;
class MOZ_STACK_CLASS DecoratorEmitter {
public:
explicit DecoratorEmitter(BytecodeEmitter* bce);
};
} /* namespace js::frontend */
#endif /* frontend_DecoratorEmitter_h */

View File

@ -81,6 +81,10 @@ if CONFIG["JS_ENABLE_SMOOSH"]:
"Frontend2.cpp",
]
if CONFIG["ENABLE_DECORATORS"]:
UNIFIED_SOURCES += [
"DecoratorEmitter.cpp",
]
# Parser.cpp cannot be built in unified mode because of explicit
# template instantiations.