Re: [v8-users] Intent to ship ES6 Array and TypedArray methods

2015-06-18 Thread Dmitry Lomov
lgtm On Thu, Jun 18, 2015 at 1:23 AM, Daniel Ehrenberg wrote: > We intend to ship new functions and methods, added in ES2015, for > Arrays and TypedArrays unflagged. These functions have been gradually > in progress behind the --harmony_arrays flag, with the first functions > added in Chrome 29.

[v8-users] Re: [blink-dev] Intent to ship: ES6 computed property names

2015-03-03 Thread Dmitry Lomov
LGTM On Fri, Feb 27, 2015 at 6:20 PM, 'Erik Arvidsson' via blink-dev < blink-...@chromium.org> wrote: > [blink-dev: FYI] > > Computed property names allows an expression to compute the name of a > property, both in classes and object literals. > > let object = { > [40 + 2]: 'meaning?' > }; > >

Re: [v8-users] Intent to Implement: ES6 Reflect.apply / Reflect.construct

2015-02-27 Thread Dmitry Lomov
SGTMx2 On Fri, Feb 27, 2015 at 5:12 PM, 'Andreas Rossberg' via v8-users < v8-users@googlegroups.com> wrote: > Sounds good to me. > > On 27 February 2015 at 15:56, Caitlin Potter > wrote: > >> *Contact emails* >> caitpotte...@gmail.com, >> >> *Spec* >> Reflect.apply() >>

[v8-users] Intent to ship: ES6 classes

2015-02-14 Thread Dmitry Lomov
[blink-dev: FYI] We have updated our staged implementation of ES6 classes to match the recent changes in ES6 spec draft. We are happy to report that these changes enabled us to implement the spec in its entirety (almost; see limitations below), most critically including subclassing of built-ins an

[v8-users] An Update on ES6 classes in V8

2015-01-08 Thread Dmitry Lomov
A few weeks ago, yet in 2014, we have announced shipping ES6 classes in V8 [1]. Our implementation was mostly following current ES6 draft specification. However, as discussed on the intent-to-ship thread [1], we have found several aspects of the specification problematic, namely subclassing of exo

[v8-users] Re: [blink-dev] Intent to ship: ES6 classes.

2014-12-19 Thread Dmitry Lomov
On Tue, Dec 16, 2014 at 10:56 AM, Dmitry Lomov wrote: > > It is my understanding (I might be incorrect) that IE implements Option 2 > in preview release. > I stand corrected - Brian Terlson (cc'd) informed me that IE does not currently implement subclassing exotic objects (ES6

[v8-users] Re: [blink-dev] Intent to ship: ES6 classes.

2014-12-17 Thread Dmitry Lomov
On Tue, Dec 16, 2014 at 11:19 PM, Boris Zbarsky wrote: > > On 12/16/14, 1:56 AM, Dmitry Lomov wrote: > >> Option 2: pass arguments to [[CreateAction]] hook. >> [[CreateAction]] hook is the hook that is invoked directly before >> construction, and has access to construct

Re: [v8-users] Re: [blink-dev] Intent to ship: ES6 classes.

2014-12-16 Thread Dmitry Lomov
On Tue, Dec 16, 2014 at 9:59 PM, Anne van Kesteren wrote: > > On Tue, Dec 16, 2014 at 9:43 PM, Dmitry Lomov > wrote: > > > True for plain ES6 classes. Less true for bulitins implementation-wise > (fair > > amount of work and possible bug farm, for quite diminishing re

Re: [v8-users] Re: [blink-dev] Intent to ship: ES6 classes.

2014-12-16 Thread Dmitry Lomov
On Tue, Dec 16, 2014 at 9:02 PM, Allen Wirfs-Brock wrote: > > > On Dec 16, 2014, at 11:25 AM, Dmitry Lomov wrote: > > > > On Tue, Dec 16, 2014 at 7:04 PM, Allen Wirfs-Brock > wrote: >> >> >> >> The V8 concern seems to be about hypothetical

Re: [v8-users] Re: [blink-dev] Intent to ship: ES6 classes.

2014-12-16 Thread Dmitry Lomov
On Tue, Dec 16, 2014 at 7:04 PM, Allen Wirfs-Brock wrote: > > > On Dec 16, 2014, at 9:19 AM, Domenic Denicola wrote: > > > From: blink-...@chromium.org [mailto:blink-...@chromium.org] On Behalf > Of al...@wirfs-brock.com > > > >> Let me turn this around on you. What in the current draft prevents

Re: [v8-users] Re: [blink-dev] Intent to ship: ES6 classes.

2014-12-16 Thread Dmitry Lomov
On Tue, Dec 16, 2014 at 6:08 PM, wrote: > > > > On Tuesday, December 16, 2014 2:50:40 AM UTC-8, Dmitry Lomov wrote: > ... >> >> >> >>> Is there a concrete plan for proposing something else, or is the >>> concrete plan to simply never allow s

[v8-users] Re: [blink-dev] Intent to ship: ES6 classes.

2014-12-16 Thread Dmitry Lomov
On Tue, Dec 16, 2014 at 11:07 AM, Boris Zbarsky wrote: > > On 12/16/14, 1:56 AM, Dmitry Lomov wrote: > >> the problem with this option is that between entry to the constructor >> and call to super(...) `this` is necessarily an exotic ImageData in some >> sort of semi

[v8-users] Re: [blink-dev] Intent to ship: ES6 classes.

2014-12-16 Thread Dmitry Lomov
On Mon, Dec 15, 2014 at 10:22 PM, Anne van Kesteren wrote: > > On Mon, Dec 15, 2014 at 3:15 PM, Dmitry Lomov > wrote: > > - At this time we do not support subclassing built-ins and DOM objects > > If you don't ship this part, isn't there quite a big risk that we

[v8-users] Re: [blink-dev] Intent to ship: ES6 classes.

2014-12-15 Thread Dmitry Lomov
On Mon, Dec 15, 2014 at 7:35 PM, Elliott Sprehn wrote: > > > > On Mon, Dec 15, 2014 at 6:15 AM, Dmitry Lomov > wrote: >> >> [blink-dev: FYI] >> Classes syntax are part of ES6. The spec in Editor's draft is stable. >> >> IE has classes in pre

[v8-users] Intent to ship: ES6 classes.

2014-12-15 Thread Dmitry Lomov
[blink-dev: FYI] Classes syntax are part of ES6. The spec in Editor's draft is stable. IE has classes in preview release [1]. No other browser currently ships classes (Mozilla bug [2]). V8 implementation of classes is up-to-date with the latest ES6 spec modulo the limitations noted below. Limit

[v8-users] Intent to ship: lexical declarations in strict mode

2014-12-09 Thread Dmitry Lomov
[blink-dev: FYI] Lexical declarations ('let' and 'const') are part of ES6. The spec for them in Editor's draft is stable. The are available in IE11 [1]. Firefox plans to ship them in 35 (Jan 2015) [2]. Lexical declarations has been available in V8 under --harmony-scoping flag for quite some time

[v8-users] Re: [blink-dev] Re: Shipping new Javascript features in V8

2014-12-08 Thread Dmitry Lomov
On Sun, Dec 7, 2014 at 5:39 PM, wrote: > Thanks Dmitry. I like the enhanced level of control the feature-shipping > process now exposes. One piece of feedback: in about:flags the labelling > for "#disable-javascript-harmony-shipping" is *Disable latest stable > JavaScript features.* > > For a dev

[v8-users] Shipping new Javascript features in V8

2014-12-05 Thread Dmitry Lomov
We are refining the procedure for shipping new Javascript features in V8, and, subsequently, in Chrome. 1. After the Javascript feature is shipped (following our process [1]), we will keep maintaining its enabled by default '--harmony-' flag, so that the feature can be turned off at runtime with '

Re: [v8-users] Re: [blink-dev] Intent to ship: ES6 String functions

2014-11-27 Thread Dmitry Lomov
ded to the platform and used by > this website. If you see issues, consider this as a possible culprit. > > > ☆*PhistucK* > > On Thu, Nov 27, 2014 at 2:01 PM, Dmitry Lomov > wrote: > >> >> >> On Thu, Nov 27, 2014 at 12:37 PM, PhistucK wrote: >> >>

[v8-users] Re: [blink-dev] Intent to ship: ES6 String functions

2014-11-27 Thread Dmitry Lomov
On Thu, Nov 27, 2014 at 3:56 PM, Drew Wilson wrote: > > > On Thu, Nov 27, 2014 at 12:54 PM, Mathias Bynens > wrote: > >> On Thu, Nov 27, 2014 at 12:52 PM, Philip Jägenstedt >> wrote: >> > It sure sounds like 'contains' would be less likely to cause trouble, >> > and is also a slightly better na

[v8-users] Re: [blink-dev] Intent to ship: ES6 String functions

2014-11-27 Thread Dmitry Lomov
On Thu, Nov 27, 2014 at 1:34 PM, Philip Jägenstedt wrote: > On Thu, Nov 27, 2014 at 1:14 PM, Mathias Bynens > wrote: > > On Thu, Nov 27, 2014 at 1:06 PM, Philip Jägenstedt > wrote: > >> On Thu, Nov 27, 2014 at 12:54 PM, Mathias Bynens > wrote: > >>> On Thu, Nov 27, 2014 at 12:52 PM, Philip Jäg

Re: [v8-users] Re: [blink-dev] Intent to ship: ES6 String functions

2014-11-27 Thread Dmitry Lomov
to log, for example, every time somebody does an "'includes' in obj". > > > ☆*PhistucK* > > On Thu, Nov 27, 2014 at 1:14 PM, 'Andreas Rossberg' via blink-dev < > blink-...@chromium.org> wrote: > >> On 27 November 2014 at 11:39, Dmitry Lo

[v8-users] Re: [blink-dev] Intent to ship: ES6 String functions

2014-11-27 Thread Dmitry Lomov
On Thu, Nov 27, 2014 at 12:54 PM, Mathias Bynens wrote: > On Thu, Nov 27, 2014 at 12:52 PM, Philip Jägenstedt > wrote: > > It sure sounds like 'contains' would be less likely to cause trouble, > > and is also a slightly better name IMHO. > > > > Is Mozilla on board with renaming it? If they're n

[v8-users] Re: [blink-dev] Intent to ship: ES6 String functions

2014-11-27 Thread Dmitry Lomov
On Thu, Nov 27, 2014 at 11:39 AM, Dmitry Lomov wrote: > > > On Thu, Nov 27, 2014 at 11:01 AM, Drew Wilson > wrote: > >> >> >> On Thu, Nov 27, 2014 at 10:35 AM, Dmitry Lomov >> wrote: >> >>> >>> >>> On Thu, Nov 27, 2014 at 1

[v8-users] Re: [blink-dev] Intent to ship: ES6 String functions

2014-11-27 Thread Dmitry Lomov
On Thu, Nov 27, 2014 at 11:44 AM, Jochen Eisinger wrote: > > > On Thu Nov 27 2014 at 11:39:17 AM Dmitry Lomov > wrote: > >> On Thu, Nov 27, 2014 at 11:01 AM, Drew Wilson >> wrote: >> >>> >>> >>> On Thu, Nov 27, 2014 at 10:35 AM, Dmit

[v8-users] Re: [blink-dev] Intent to ship: ES6 String functions

2014-11-27 Thread Dmitry Lomov
On Thu, Nov 27, 2014 at 11:01 AM, Drew Wilson wrote: > > > On Thu, Nov 27, 2014 at 10:35 AM, Dmitry Lomov > wrote: > >> >> >> On Thu, Nov 27, 2014 at 10:13 AM, Drew Wilson >> wrote: >> >>> What impact do we expect on web compatibility fro

[v8-users] Re: [blink-dev] Intent to ship: ES6 String functions

2014-11-27 Thread Dmitry Lomov
ey are expected to be stable and implementation of them must be complete. With that, we plan to evangelize enabling this flag among the power users, so that we hear about any breakage early. Dmitry > > On Thu, Nov 27, 2014 at 9:27 AM, Dmitry Lomov > wrote: > >> [FYI +blink-dev] >>

[v8-users] Intent to ship: ES6 String functions

2014-11-27 Thread Dmitry Lomov
[FYI +blink-dev] ES6 extends String.prototype with several methods: repeat, startsWith, endsWith, includes, codePointAt) and adds String.fromCodePoint method. Firefox ships codePointAt and fromCodePoint since release 29 [1], startsWith and endsWith since release 17 [2], and repeat since release 2

Re: [v8-users] What exactly is the implementation status of the ES6 module semantics?

2014-11-26 Thread Dmitry Lomov
I guess "we parse something resembling ES6 modules" sums it up quite accurately. (Some people just can't not take "no" for an answer, it seems ;))) Really, it is very much a work in (postponed) progress. We will pick it up at some point, but at the immediate moment we are focusing on classes and f

Re: [v8-users] Re: Intent to Implement ES6 Template Literals

2014-11-07 Thread Dmitry Lomov
LGTM to implement non-tagged template literals, tagged template literals pend spec issue resolution. On Tue, Nov 4, 2014 at 1:33 PM, 'Andreas Rossberg' via v8-users < v8-users@googlegroups.com> wrote: > On 4 November 2014 12:53, Dmitry Lomov wrote: > > On Tue, Nov 4,

Re: [v8-users] Re: Intent to Implement ES6 Template Literals

2014-11-04 Thread Dmitry Lomov
On Tue, Nov 4, 2014 at 12:25 PM, Dmitry Lomov wrote: > > > On Tue, Nov 4, 2014 at 11:56 AM, 'Andreas Rossberg' via v8-users < > v8-users@googlegroups.com> wrote: > >> On 4 November 2014 10:16, Dmitry Lomov wrote: >> > On Tue, Nov 4, 2014 at 8:43 A

Re: [v8-users] Re: Intent to Implement ES6 Template Literals

2014-11-04 Thread Dmitry Lomov
On Tue, Nov 4, 2014 at 11:56 AM, 'Andreas Rossberg' via v8-users < v8-users@googlegroups.com> wrote: > On 4 November 2014 10:16, Dmitry Lomov wrote: > > On Tue, Nov 4, 2014 at 8:43 AM, 'Andreas Rossberg' via v8-users > > wrote: > >> >

Re: [v8-users] Re: Intent to Implement ES6 Template Literals

2014-11-04 Thread Dmitry Lomov
On Tue, Nov 4, 2014 at 8:43 AM, 'Andreas Rossberg' via v8-users < v8-users@googlegroups.com> wrote: > On 3 November 2014 16:58, Andreas Rossberg wrote: > > On 3 November 2014 16:47, Caitlin Potter wrote: > >> It looks like there is machinery in `Scope` for storing internal > variables. > >> Coul

Re: [v8-users] Re: Intent to Implement ES6 Template Literals

2014-11-03 Thread Dmitry Lomov
On Sun, Nov 2, 2014 at 2:12 AM, 'Erik Arvidsson' via v8-users < v8-users@googlegroups.com> wrote: > FWIW, Chakra is implementing this too: > https://status.modern.ie/templatestringses6?term=template%20strings > > My main concern is the tagged template. We clearly do not want to ship > this without

Re: [v8-users] Intent to Implement Symbol.toStringTag in V8

2014-10-19 Thread Dmitry Lomov
LGTM On Sun, Oct 19, 2014 at 3:24 AM, Caitlin Potter wrote: > The well-known Symbol.toStringTag and its related changes in > Object.prototype.toString --- is a stable API introduced in ECMA-262 6th > edition draft from September 27, 2012, and has apparently not changed since > its inception. The

[v8-users] V8 Launch Process and Guidelines v.2

2014-10-08 Thread Dmitry Lomov
It has been more than a year since we have published V8 launch process. Today we are making some adjustments to it based on our experience throughout a year and some changes in TC39 (ECMAScript standards committee) procedure. See the v2 of the document at https://developers.google.com/v8/launchpro

Re: [v8-users] No ability to memcpy into an ArrayBuffer w/o externalizing the data

2014-09-18 Thread Dmitry Lomov
freed, that is not the library's fault. > I wish it weren't :) API design is not a blame game, and this is the point of our disagreement, of course. > > On Thursday, September 18, 2014 12:34:39 PM UTC-8, Dmitry Lomov wrote: >> >> >> >> On Thu, Sep 18

Re: [v8-users] No ability to memcpy into an ArrayBuffer w/o externalizing the data

2014-09-18 Thread Dmitry Lomov
ing? > > On Thursday, September 18, 2014 11:00:10 AM UTC-8, Dmitry Lomov wrote: > >> >> >> On Fri, Sep 12, 2014 at 11:38 PM, Flying Jester >> wrote: >> >>> >>> >>> Since V8 does not know how the memory backing an ArrayBuffer has been

Re: [v8-users] No ability to memcpy into an ArrayBuffer w/o externalizing the data

2014-09-18 Thread Dmitry Lomov
On Fri, Sep 12, 2014 at 11:38 PM, Flying Jester wrote: > > > Since V8 does not know how the memory backing an ArrayBuffer has been >> allocated in this case, there is now good way for V8 to free it. >> > > This doesn't make sense. > > A part of v8::ArrayBuffer::Allocator is a Free method. When yo

[v8-users] Re: [blink-dev] Re: V8 Intent to implement: ES6 classes

2014-08-23 Thread Dmitry Lomov
It's ready when it's ready. We don't do deadlines here (usually). On Fri, Aug 22, 2014 at 4:18 PM, wrote: > Any idea on an estimated completion time for this? > > > On Friday, August 15, 2014 4:46:39 AM UTC-4, Dmitry Lomov wrote: >> >> Implement ES6 class

[v8-users] V8 Intent to implement: ES6 classes

2014-08-15 Thread Dmitry Lomov
...@chromium.org), Dmitry Lomov (dslo...@chromium.org) # TC39 acceptance Classes (in the form of compromise “maximally-minimal” classes) has been a part of ES6 for more than a year now. The complete spec has been in ES6 specification draft for quite a while. At a July 2014 TC39 meeting some significant changes

Re: [v8-users] No ability to memcpy into an ArrayBuffer w/o externalizing the data

2014-05-15 Thread Dmitry Lomov
Hi Trevor, Since V8 does not know how the memory backing an ArrayBuffer has been allocated in this case, there is now good way for V8 to free it. Just like previously with "external indexed data", the way to do it is to use a weak persistent handle for the ArrayBuffer to get a notification when Ar

Re: [v8-users] Creating and locking Isolates

2014-04-23 Thread Dmitry Lomov
Hard to say without more information. Debug it? On Tue, Apr 22, 2014 at 6:25 PM, Nozik wrote: > Thanks Dmitry, but the problem happens even when I'm not calling Enter > before acquiring the lock. > > Any other ideas? > > Thanks. > > On Tuesday, April 22, 2014 6

Re: [v8-users] Creating and locking Isolates

2014-04-22 Thread Dmitry Lomov
You should always enter isolates _after_ you acquired a lock on it, not before. You do not need to use Enter directly: Isolate::Scope is RIAA-style wrapper around Isolate::Enter/Exit. HTH, Dmitry On Tue, Apr 22, 2014 at 4:50 PM, Nozik wrote: > Hi all, > > I've upgraded an old V8 to an updated

Re: [v8-users] Re: Intent to ship ES6 promises & weak collections

2014-03-25 Thread Dmitry Lomov
Eventually, when they are ready. On Mar 25, 2014 11:49 PM, "Jonathan Ong" wrote: > any chance of unflagging ES6 generators as well? > > On Monday, March 17, 2014 8:47:22 AM UTC-7, Andreas Rossberg wrote: >> >> We intend to soon ship both ES6 promises and weak collections >> unflagged in V8. Since

Re: [v8-users] Intent to ship ES6 promises & weak collections

2014-03-18 Thread Dmitry Lomov
LGTM to ship. On Mon, Mar 17, 2014 at 4:47 PM, Andreas Rossberg wrote: > We intend to soon ship both ES6 promises and weak collections > unflagged in V8. Since the former depends on the latter, I'm combining > both in this mail. > > > PROMISES > > Promises have been accepted into ES6, and have h

Re: [v8-users] V8: Fatal error: CHECK(V8::ArrayBufferAllocator() != NULL) failed

2014-03-10 Thread Dmitry Lomov
gt; It looks like a V8 issue... > > > On Monday, March 10, 2014 10:25:12 AM UTC+1, Dmitry Lomov wrote: > >> Ah, thought so. Read docs on v8::ArrayBuffer::Allocator. >> (look at Shell::Main in d8.cc for an example) >> >> HTH, >> Dmitry >> >> >&

Re: [v8-users] V8: Fatal error: CHECK(V8::ArrayBufferAllocator() != NULL) failed

2014-03-10 Thread Dmitry Lomov
m/questions/22294854/v8-fatal-error- > checkv8arraybufferallocator-null-failed > > > On Monday, March 10, 2014 10:17:23 AM UTC+1, Dmitry Lomov wrote: > >> How exactly do you run V8? Do you run d8? >> >> Dmitry >> >> >> On Mon, Mar 10, 2014 at 10:15 AM,

Re: [v8-users] V8: Fatal error: CHECK(V8::ArrayBufferAllocator() != NULL) failed

2014-03-10 Thread Dmitry Lomov
How exactly do you run V8? Do you run d8? Dmitry On Mon, Mar 10, 2014 at 10:15 AM, Albert Zeyer wrote: > Hi, > > I get this error when I try to run some JS code ([this]( > http://pastebin.com/XesBSstJ) + [this](http://pastebin.com/0VawRb16)) > with V8 (tried master from two weaks ago, 3.23.17,

Re: [v8-users] Intent to Ship: Object.observe

2014-02-27 Thread Dmitry Lomov
Hi Rafael, This is great work - and great progress through the standards committee. To ship with confidence, we should really get the performance tests done - can we prioritize that? Cheers, Dmitry On Tue, Feb 25, 2014 at 1:50 AM, Rafael Weinstein wrote: > Object.observe adds the an asynchron

[v8-users] Re: [v8-dev] 122 errors in C++ lint checks

2014-02-24 Thread Dmitry Lomov
[-v8-dev,+v8-users] What are the errors that the tool reports? (Devs on the team see no errors from presubmit script) Thanks, Dmitry On Mon, Feb 24, 2014 at 2:13 PM, Alexis Campailla wrote: > I am trying to upload a patch for the first time. I just checked out a > fresh copy of the master bran

Re: [v8-users] Intent to implement: ES6 Arrow Function syntax

2014-02-14 Thread Dmitry Lomov
Exciting, and the spec is indeed quite stable. What are your conformance and performance testing plans? Kind regards, Dmitry On Fri, Feb 14, 2014 at 6:01 PM, Adrian Perez de Castro wrote: > > # TC39 acceptance > > The arrow function syntax proposal has been accepted to be part > of ES6, and it

Re: [v8-users] Does V8 engine support multithreading programming?

2014-01-31 Thread Dmitry Lomov
On Fri, Jan 31, 2014 at 11:38 AM, Sara Abdelhameed < saraabdelhameed1...@gmail.com> wrote: > so, if I want to make very simple example such as having two threads that > each one run different script and don't depend on each other, and I want > them to be in parallel, so I must use two isolate, for

Re: [v8-users] Re: Questions about ArrayBuffer and ArrayBuffer::Contents

2013-12-09 Thread Dmitry Lomov
[+v8-users] On Mon, Dec 9, 2013 at 9:37 PM, Dmitry Lomov wrote: > I think you assume what is (possibly) true for one embedder and > extrapolate to other embedders. Node.js is not our only embedder :) > > > On Mon, Dec 9, 2013 at 9:20 PM, Roman Shtylman wrote: > >> &

Re: [v8-users] Re: Questions about ArrayBuffer and ArrayBuffer::Contents

2013-12-09 Thread Dmitry Lomov
Repeating my off-list replies on-list now (sigh... please don't do this) The behind the API for ArrayBuffer is that once AB is externalized, the embedder manages the book-keeping for that data (maybe using shared_ptr or some other mechanism). Therefore the API that allows "re-externalization" of

Re: [v8-users] Questions about ArrayBuffer and ArrayBuffer::Contents

2013-12-09 Thread Dmitry Lomov
to why it is important might help. Note that Blink uses this API for ArrayBuffer implementation, so that must be a use case not covered by the usage in Blink - which might be a tough sell ;) Dmitry > > > On December 9, 2013 at 6:26:38 AM, Dmitry Lomov > (dslo...@chromium.org) &

Re: [v8-users] Questions about ArrayBuffer and ArrayBuffer::Contents

2013-12-09 Thread Dmitry Lomov
Note that ArrayBuffer API is experimental and we might change it in the future. The below reflects what we ship currently. On Mon, Dec 9, 2013 at 4:56 AM, Roman Shtylman wrote: > A few things are unclear to me after trying to use the ArrayBuffer api > from v8 3.23.10 > > The first inconsistency

Re: [v8-users] Re: Advance notice/RFC: Remove SetIndexedPropertiesToExternalArrayData and friends

2013-11-19 Thread Dmitry Lomov
On Tue, Nov 19, 2013 at 9:00 PM, Trevor Norris wrote: > On Tuesday, November 19, 2013 2:04:45 AM UTC-8, Dmitry Lomov wrote: >> >> Here is the change: https://code.google.com/p/v8/source/detail?r=15205 >> Instead of weak handles, I taught our GC to free array buffer backin

Re: [v8-users] Re: Advance notice/RFC: Remove SetIndexedPropertiesToExternalArrayData and friends

2013-11-19 Thread Dmitry Lomov
Some quick replies inline. On Tue, Nov 19, 2013 at 1:10 AM, Trevor Norris wrote: > > > On Thursday, November 14, 2013 5:28:58 AM UTC-8, Dmitry Lomov wrote: >> >> Is it still true in the latest releases (3.20 and up)? I am curious as to >> what is the bottlenec

Re: [v8-users] Re: Advance notice/RFC: Remove SetIndexedPropertiesToExternalArrayData and friends

2013-11-18 Thread Dmitry Lomov
On Fri, Nov 15, 2013 at 1:13 PM, Ben Noordhuis wrote: > On Thu, Nov 14, 2013 at 2:28 PM, Dmitry Lomov > wrote: > > Thanks a lot for your yelling :) > > > > My general remark here is if you implement your own Buffer classes and > not > > doing what the rest of t

Re: [v8-users] Re: Advance notice/RFC: Remove SetIndexedPropertiesToExternalArrayData and friends

2013-11-14 Thread Dmitry Lomov
d8 implementation of ArrayBuffers and friends has been pretty terrible w.r.t. allocation speed, but it is already improving and will improve further. On Wed, Nov 13, 2013 at 12:08 AM, Trevor Norris wrote: > > > On Tuesday, November 12, 2013 12:08:28 AM UTC-8, Dmitry Lomov wrote: &g

Re: [v8-users] Advance notice/RFC: Remove SetIndexedPropertiesToExternalArrayData and friends

2013-11-12 Thread Dmitry Lomov
On Tue, Nov 12, 2013 at 10:15 AM, Ben Noordhuis wrote: > On Tue, Nov 12, 2013 at 9:08 AM, Dmitry Lomov > wrote: > > As you probably know, over the course of the last several months, V8 > > switched to an in-house implementations of ArrayBuffer, typed arrays and &

[v8-users] Advance notice/RFC: Remove SetIndexedPropertiesToExternalArrayData and friends

2013-11-12 Thread Dmitry Lomov
As you probably know, over the course of the last several months, V8 switched to an in-house implementations of ArrayBuffer, typed arrays and DataView. These implementations feature faster allocation, better garbage collection performance and a potential to become even faster in the future with dee

[v8-users] Re: Intent to implement: subset of ES6 Math functions.

2013-10-16 Thread Dmitry Lomov
+v8-users Implementing under the flag LGTM. Low-risk and good to have implementation feedback for the committee. Dmitry On Wed, Oct 16, 2013 at 12:01 PM, Yang Guo wrote: > Hi, > > I would like to implement some of the new Math.* functions proposed in the > ES6 draft in V8 following the V8 lau

Re: [blink-dev] Re: [v8-users] Intent to Implement Promises in V8

2013-10-06 Thread Dmitry Lomov
If promises become a part of V8, we of course expect them to be quite usable on server-side too (node.js is our customer after all) On Sun, Oct 6, 2013 at 1:05 PM, Petka Antonov wrote: > The benchmark is emulating a server side workflow. I don't imagine there > is anything like that needed on cl

[v8-users] Re: [blink-dev] Intent to Implement Promises in V8

2013-10-04 Thread Dmitry Lomov
Implementing behind the flag LGTM. There is clear consensus among TC39 members, browser vendors and web platform champions that Promises are an important addition to ECMAScript. At a Sept TC39 meeting, promises has been put on a fast track to ES6 - the next release of ECMAScript spec. Also, Module

[v8-users] Intent to implement and ship: ArrayBuffer.isView

2013-10-02 Thread Dmitry Lomov
ArrayBuffer.isView(obj) is a static function that returns boolean indicating whether the passed argument is an ArrayBufferView. For ES6, this means either a DataView or one of typed arrays. In spec terms, this is equivalent to argument having a [[ViewedArrayBuffe]] internal data property. I sugge

Re: [v8-users] Re: Intent to implement: ES6 `String.fromCodePoint` and `String.prototype.codePointAt`

2013-09-25 Thread Dmitry Lomov
Mathias, we appreciate your effort in implementing this, and are thankful to you for following our launch process and coming up with a good intent-to-implement e-mail, supported by reasoned argument and conformance tests. (Yours is our first intent-to-implement e-mail under the new process and I a

[v8-users] Re: V8 Launch Process and Guidelines

2013-09-16 Thread Dmitry Lomov
Terribly sorry, the correct link is https://developers.google.com/v8/launchprocess Thanks, Dmitry On Sep 16, 2013 11:41 AM, "Dmitry Lomov" wrote: > Following the lead of Blink in setting the web platform guidelines, we on > the V8 team came up with a similar set of guideline

[v8-users] V8 Launch Process and Guidelines

2013-09-16 Thread Dmitry Lomov
Following the lead of Blink in setting the web platform guidelines, we on the V8 team came up with a similar set of guidelines specific to V8. They are available at https://devsite.googleplex.com/v8/launchprocess. We hope this document will make our decision-making process even more open and transp

Re: [v8-users] How to reinitialize v8 after v8::V8::Dispose();

2013-07-13 Thread Dmitry Lomov
On Sat, Jul 13, 2013 at 9:45 PM, Dmitry Lomov wrote: > On Jul 13, 2013 11:33 AM, "Arseniy Pavlenko" wrote: > >> How to correctly kill the V8 and run it again? >> > > Generally, you cannot re-initialize v8 after v8::V8::Dispose(). > Depending on what you a

Re: [v8-users] How to reinitialize v8 after v8::V8::Dispose();

2013-07-13 Thread Dmitry Lomov
On Jul 13, 2013 11:33 AM, "Arseniy Pavlenko" wrote: > How to correctly kill the V8 and run it again? > Generally, you cannot re-initialize v8 after v8::V8::Dispose(). Depending on what you are trying to achieve, perhaps you can use v8::Isolate (that can be created and disposes at will). Hope th

Re: [v8-users] Re: Locker problem

2013-06-07 Thread Dmitry Lomov
, papi wrote: > > > On Friday, June 7, 2013 7:51:34 PM UTC+3, Dmitry Lomov wrote: > >> Well you should really create a locker *before* you create a HandleScope. >> On Jun 7, 2013 6:47 PM, "papi" wrote: >> >>> Also, did you make sure that _all_

Re: [v8-users] Re: Locker problem

2013-06-07 Thread Dmitry Lomov
Well you should really create a locker *before* you create a HandleScope. On Jun 7, 2013 6:47 PM, "papi" wrote: > Also, did you make sure that _all_ the code - including the code on main >> thread - that you execute in gIsolate is protected by v8::Locker? > > > Hmm, i get my problem. > > I made t

Re: [v8-users] Locker problem

2013-06-07 Thread Dmitry Lomov
I think you are missing a handle scope: void* fp = new std::function( [=]() { v::Locker locker(gIsolate); v8::Isolate::Scope scope(gIsolate); v8::HandleScope handle_scope(gIsolate); std::vector data = Download(url); v::Handle arg = v::String::New(data.data(),data.siz

Re: [v8-users] How to add custom javascript class to v8 before compiling

2013-04-30 Thread Dmitry Lomov
mksnapshot --help On Tue, Apr 30, 2013 at 10:20 AM, Sarim Khan wrote: > Hi, > > Thank you very much. using global.sarim = sarim works :) > > About this --extra-code flag, how to add this ? Any reference would be > great. > > On Tuesday, April 30, 2013 1:49:28 PM U

Re: [v8-users] How to add custom javascript class to v8 before compiling

2013-04-30 Thread Dmitry Lomov
On Tue, Apr 30, 2013 at 9:08 AM, Sarim Khan wrote: > Hi, > > I have library implemented in javascript. I use that library in c++ apps. > So what i do now, is to use v8, create a context, then read the js files, > and run the js codes inside the context. Then find the js function in c++. > Then us

Re: [v8-users] Get "Fatal error in HandleScope::HandleScope" when running compiled JS with execeptions.

2013-04-29 Thread Dmitry Lomov
v8::Script::Run should be protected by a locker. V8 generally cannot execute scripts operating on the same heap in parallel. If you want to execute scripts in parallel, take a look at v8::Isolate class and related comments. On Mon, Apr 29, 2013 at 2:01 PM, Then wrote: > Hi, thank you for your f

Re: [v8-users] Re: I see Bailout in the v8 code, Bailout set the reason and setStackOverflow, and then what will happen?

2013-04-15 Thread Dmitry Lomov
HOptimizedGraphBuilder is essentially the optimizing compiler. Optimizer generates optimized code under certain assumptions (about types of variables etc.). Bailouts execute when those assumptions are detected to be violated. In that case deoptimizer kicks in and V8 switches to un-optimized code fo

Re: [v8-users] I'd like to know about how AddSimulate() and FinishExitWithDeoptimize() work together?

2013-04-15 Thread Dmitry Lomov
I do not think we have too much learning material on v8 available (frankly, not even internally :) ). If you haven't seen them already, Andy Wingo's articles are helpful to many people: http://wingolog.org/tags/v8 You mentioned that you are using it already, but just in case you haven't seen it,

Re: [v8-users] TerminateExecution() does not terminate threads calling sleep() in FunctionTemplate

2013-04-08 Thread Dmitry Lomov
No. Isolates are completely isolated "instances" of V8, including separate heaps. Generally, by design Javascript lacks facilities for shared-memory multithreaded programming. Kind regards, Dmitry On Mon, Apr 8, 2013 at 2:55 PM, Laszlo Szakony wrote: > OK. I will use isolates. Can I share the g

Re: [v8-users] Re: mods to v8 in chrome

2013-04-03 Thread Dmitry Lomov
Have you taken a look at WebCL? (http://www.khronos.org/webcl/) If I understand correctly what you want to do, WebCL is precisely it. Apparently there is a project underway to bring this to webkit and chromium (https://code.google.com/p/webcl/). Hope this helps, Dmitry On Wed, Apr 3, 2013 at 11

Re: [v8-users] V8 v8::Persistent to v8::Primitive

2013-04-03 Thread Dmitry Lomov
Your stored value is ok, it is the signature of your Convert method that is wrong. It should really work on v8::Handle: bool MyClass::Convert(v8::Handle& oValue) { oValue = m_Value; } As a rule, use v8::Handle<> instead of a reference or a pointer to v8::Value Hope this helps, Dmitry On Wed

Re: [v8-users] V8 v8::Persistent to v8::Primitive

2013-04-03 Thread Dmitry Lomov
v8::Primitive is immutable and not assignable. Since V8 uses a garbage collector, your program should not generally have v8::Values (including v8::Primitives) in variables, it should use v8::Handle<>s for maintaining references to V8 objects. What is a purpose of your Convert method? What are you t