[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webkit-dev
Subject:    Re: [webkit-dev] nested scopes
From:       Raj Kiran Talusani <rajkiran.talusani () gmail ! com>
Date:       2009-02-26 8:53:52
Message-ID: af030d980902260053y352000c3oac0cbe82396c7cef () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Darin,

You are right. I was using SpiderMonkey before switching to JavaScriptCore.
And i am developing on Android plaform. on Android, public API is not
compiled into the libraries.. so i am using kjs API from Interpreter.h. Is
there anyway i can implement scopes using the private/internal API. any
pointers?

Raj

PS: i had sent this mail to Android list, but didnot not get any response.
So i thought its better to talk to the original developers.



If you are wrapping JavaScriptCore you should use the public API, not the
> internals. The public API is in headers like JSBase.h, JSValueRef.h,
> JSObjectRef.h, and JSClassRef.h. However, the public API doesn't have any
> concept of explicitly creating scopes; instead scopes are created by the
> engine automatically for the various language constructs that require the=
m.
> An explicit way to create a scope doesn't seem to be necessary API for us=
e
> of the engine, and there are other reasons not to add it =97 different sc=
opes
> have different semantics in the language. I'm assuming this requirement i=
s
> baggage from whatever engine previously implemented this js_push_scope AP=
I.
>
>    -- Darin
>
>

[Attachment #5 (text/html)]

Darin,<br><br>You are right. I was using SpiderMonkey before switching to \
JavaScriptCore. And i am developing on Android plaform. on Android, public API is not \
compiled into the libraries.. so i am using kjs API from Interpreter.h. Is there \
anyway i can implement scopes using the private/internal API. any pointers?<br> \
<br>Raj<br><br>PS: i had sent this mail to Android list, but didnot not get any \
response. So i thought its better to talk to the original \
developers.<br><br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;"> If you are wrapping JavaScriptCore you should use the public \
API, not the internals. The public API is in headers like JSBase.h, JSValueRef.h, \
JSObjectRef.h, and JSClassRef.h. However, the public API doesn&#39;t have any concept \
of explicitly creating scopes; instead scopes are created by the engine automatically \
for the various language constructs that require them. An explicit way to create a \
scope doesn&#39;t seem to be necessary API for use of the engine, and there are other \
reasons not to add it — different scopes have different semantics in the language. \
I&#39;m assuming this requirement is baggage from whatever engine previously \
implemented this js_push_scope API.<br> <font color="#888888">
<br>
    -- Darin<br>
<br>
</font></blockquote></div><br>



_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic