mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Fix various things (#476)
* Fixup canDeclareName in ASTContext * Add more callstack information on API * Add onDelete callback on VMInstance * Add BloomFilter as util * Use BloomFilter in ASTFunctionContext for find out variable name existence * Optimize parser using InlineStorageVector Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
bb7c12cfd5
commit
f75945700a
16 changed files with 407 additions and 43 deletions
|
|
@ -529,6 +529,9 @@ int main(int argc, char* argv[])
|
|||
|
||||
ShellPlatform* platform = new ShellPlatform();
|
||||
PersistentRefHolder<VMInstanceRef> instance = VMInstanceRef::create(platform);
|
||||
instance->setOnVMInstanceDelete([](VMInstanceRef* instance) {
|
||||
delete instance->platform();
|
||||
});
|
||||
PersistentRefHolder<ContextRef> context = createEscargotContext(instance.get());
|
||||
|
||||
bool runShell = true;
|
||||
|
|
@ -601,7 +604,5 @@ int main(int argc, char* argv[])
|
|||
|
||||
Globals::finalize();
|
||||
|
||||
delete platform;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue