Thanks a lot, Mads, exactly that.  Code already updated and tested :)

yours,
anton.

On Thu, Apr 8, 2010 at 7:20 PM, Mads Sig Ager <[email protected]> wrote:
> Ah, you mean how to declare a runtime function that accepts different
> number of arguments? You can define it to accept -1 arguments which
> acts as an indication that it can be called with different number of
> arguments.
>
> -- Mads
>
> On Thu, Apr 8, 2010 at 5:14 PM, Anton Muhin <[email protected]> wrote:
>> just fyi.  declaring minimal number of arguments failed.  For now I
>> renamed function to CallFunction2, but if there is an easy way out,
>> I'd be happy to do it in this cl.  Otherwise we might want to support
>> it in a separate CL, but it might be too involved, at least for now.
>>
>> yours,
>> anton.
>>
>> On Thu, Apr 8, 2010 at 7:03 PM,  <[email protected]> wrote:
>>> Fast response in hope you'll answer today.
>>>
>>> Regarding varagrs for CallFunction.  Technically I think I don't need smi as
>>> I
>>> have args.length(), the problem is how to declare such a function in
>>> codegen.h?
>>> Do you know for sure?  I am going to declare it with minimal possible number
>>> of
>>> args (2, receiver and func).  Any better ideas?
>>>
>>> @Vitaly: yes, EnsureCompiled is unnecessary, thanks a lot!
>>>
>>> Removing it and porting to other platforms.  Will send next patch for review
>>> soon.
>>>
>>> Thanks for all your comments.
>>>
>>> http://codereview.chromium.org/1623004/show
>>>
>>
>

-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

To unsubscribe, reply using "remove me" as the subject.

Reply via email to