Rename tagging operations

* rename tagging operations to clearly recognize typeTag and tag (vtable address)
* add global tag values for ScriptSimpleFunctionObject

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
HyukWoo Park 2022-04-19 19:10:50 +09:00 committed by Boram Bae
commit d231bc0800
15 changed files with 115 additions and 66 deletions

View file

@ -31,9 +31,10 @@
namespace Escargot {
template <bool isStrict = false, bool shouldClearStack = false, unsigned registerFileSize = 12>
// ScriptSimpleFunctionObject currently supports only 4 registerFileSize (4, 8, 16, 24)
template <bool isStrict = false, bool shouldClearStack = false, unsigned registerFileSize = 4>
class ScriptSimpleFunctionObject : public ScriptFunctionObject {
friend class ScriptFunctionObject;
friend class Global;
protected:
ScriptSimpleFunctionObject() // ctor for reading tag