Thx Ben. Where can I find V8 internal calling conventions description? On Tuesday, June 7, 2016 at 4:29:20 PM UTC+6, Ben Noordhuis wrote: > > On Tue, Jun 7, 2016 at 12:08 PM, <[email protected] <javascript:>> > wrote: > > Hi all! > > > > I'm continuing to port v8 on my architecture. > > I implement some stuff and now I can insert call C printf function into > > stubs code and run d8. > > Something like this: > > void JSEntryStub::Generate(MacroAssembler* masm) { > > GenerateUnimplemented("JSEntryStub", masm); } > > > > > > > > Then I run d8 and have message: > > UNIMPLEMNETED STUB JSEntryStub > > > > . As I expected. > > > > I have a question - what does js entry stub do? > > I can see x64 version for this, but I think that v8 developers know that > > stuff better so I can generate masm calls more effective for my > > architecture. > > JSEntryStub (and JSEntryTrampoline) are entered when C++ code calls > into JS code, e.g., through v8::Function::Call(). They exist mainly > to convert between the platform's C++ calling convention and the VM's > internal calling convention. >
-- -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev --- You received this message because you are subscribed to the Google Groups "v8-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
