mirror of
https://onedev.site.tesses.net/crosslang
synced 2026-03-26 09:40:24 +00:00
Implement chunk reflection, apparently forgot
This commit is contained in:
@@ -48,7 +48,7 @@ make
|
|||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
|
||||||
## Build with shared libs only (no dependencies other than cmake and build-essentials)
|
## Build with shared libs only (self contained dependencies)
|
||||||
```bash
|
```bash
|
||||||
cmake -S ../.. -B . -DTESSESFRAMEWORK_ENABLE_STATIC=OFF -DTESSESFRAMEWORK_ENABLE_SHARED=ON -DTESSESFRAMEWORK_FETCHCONTENT=ON
|
cmake -S ../.. -B . -DTESSESFRAMEWORK_ENABLE_STATIC=OFF -DTESSESFRAMEWORK_ENABLE_SHARED=ON -DTESSESFRAMEWORK_FETCHCONTENT=ON
|
||||||
make -j`nproc`
|
make -j`nproc`
|
||||||
|
|||||||
@@ -5459,7 +5459,35 @@ namespace Tesses::CrossLang {
|
|||||||
cse.back()->Push(gc, Undefined());
|
cse.back()->Push(gc, Undefined());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if(chunk != nullptr)
|
||||||
|
{
|
||||||
|
if(key == "Arguments")
|
||||||
|
{
|
||||||
|
auto myargs = TList::Create(ls);
|
||||||
|
gc->BarrierBegin();
|
||||||
|
for(auto item : chunk->args)
|
||||||
|
{
|
||||||
|
myargs->Add(item);
|
||||||
|
}
|
||||||
|
gc->BarrierEnd();
|
||||||
|
cse.back()->Push(gc, myargs);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(key == "Code")
|
||||||
|
{
|
||||||
|
auto ba = TByteArray::Create(ls);
|
||||||
|
ba->data = chunk->code;
|
||||||
|
cse.back()->Push(gc, ba);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(key == "File")
|
||||||
|
{
|
||||||
|
cse.back()->Push(gc, chunk->file);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
cse.back()->Push(gc, Undefined());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if(callstackEntry != nullptr)
|
if(callstackEntry != nullptr)
|
||||||
{
|
{
|
||||||
if(key == "IP")
|
if(key == "IP")
|
||||||
|
|||||||
Reference in New Issue
Block a user