mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
1d31bafb33
commit
2755bc5a1c
12
js/src/frontend/DecoratorEmitter.cpp
Normal file
12
js/src/frontend/DecoratorEmitter.cpp
Normal 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) {}
|
21
js/src/frontend/DecoratorEmitter.h
Normal file
21
js/src/frontend/DecoratorEmitter.h
Normal 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 */
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user