-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update to latest v8 code #24
base: master
Are you sure you want to change the base?
Conversation
if (!constructor.IsEmpty()) | ||
obj->set_constructor(*Utils::OpenHandle(*constructor)); | ||
obj->set_data(i::Smi::zero()); | ||
i::Handle<i::ObjectTemplateInfo> obj = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return Utils::ToLocal(obj); | ||
} | ||
``` | ||
What is a `Struct` in this context? | ||
`src/objects/struct.h` | ||
```c++ | ||
#include "torque-generated/class-definitions-tq.h" | ||
#include "torque-generated/src/objects/struct-tq.inc" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@generateCppClass | ||
extern class Struct extends HeapObject { | ||
} | ||
@abstract |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HandleFor<Impl, Struct> FactoryBase<Impl>::NewStruct( | ||
InstanceType type, AllocationType allocation) { | ||
Map map = Map::GetStructMap(read_only_roots(), type); | ||
Handle<Struct> FactoryBase<Impl>::NewStruct(InstanceType type, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | ||
``` | ||
Every object that is stored on the v8 heap has a Map (`src/objects/map.h`) that | ||
describes the structure of the object being stored. | ||
```c++ | ||
class Map : public HeapObject { | ||
class Map : public TorqueGeneratedMap<Map, HeapObject> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.