Divide CodeBlock into NativeCodeBlock and InterpretedCodeBlock

* NativeCodeBlock is newly added for NativeFunctionObject
* all interpreter-related info is moved into InterpretedCodeBlock

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
HyukWoo Park 2020-07-03 16:09:26 +09:00 committed by Patrick Kim
commit 2fe9333814
45 changed files with 842 additions and 814 deletions

View file

@ -27,7 +27,7 @@ namespace Escargot {
// {method, get, set} of object literal also uses this class
class ScriptClassMethodFunctionObject : public ScriptFunctionObject {
public:
ScriptClassMethodFunctionObject(ExecutionState& state, Object* proto, CodeBlock* codeBlock, LexicalEnvironment* outerEnvironment, Object* homeObject)
ScriptClassMethodFunctionObject(ExecutionState& state, Object* proto, InterpretedCodeBlock* codeBlock, LexicalEnvironment* outerEnvironment, Object* homeObject)
: ScriptFunctionObject(state, proto, codeBlock, outerEnvironment, false, codeBlock->isGenerator(), codeBlock->isAsync())
, m_homeObject(homeObject)
{