Reviewers: Michael Starzinger,

Description:
[es6] Implement Date.prototype[@@toPrimitive] as C++ builtin.

This way we don't need to expose JSReceiver::OrdinaryToPrimitive
as runtime function, and we don't need the separate JS trampoline.

This also adds tests for ToPrimitive on date objects, which are
special.

[email protected]

Please review this at https://codereview.chromium.org/1324713002/

Base URL: https://chromium.googlesource.com/v8/v8.git@master

Affected files (+172, -73 lines):
  M src/bootstrapper.cc
  M src/builtins.h
  M src/builtins.cc
  M src/compiler/linkage.cc
  M src/date.js
  M src/objects.h
  M src/objects.cc
  M src/runtime/runtime.h
  M src/runtime/runtime-object.cc
  M test/mjsunit/harmony/to-name.js
  M test/mjsunit/harmony/to-number.js
  M test/mjsunit/harmony/to-primitive.js
  M test/mjsunit/harmony/to-string.js


--
--
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.

Reply via email to