Reviewers: Michael Starzinger, rossberg, Yang,

Description:
[es6] Initial steps towards a correct implementation of IsCallable.

This turns the has_instance_call_handler bit on Map into an is_callable
bit, that matches the spec definition of IsCallable (i.e. instances have
[[Call]] internal methods).

Also fix the typeof operator to properly say "function" for everything
that is callable.

Also remove the (unused) premature %_GetPrototype optimization from
Crankshaft, which just complicated the Map bit swap.

[email protected], [email protected], [email protected]

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

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

Affected files (+276, -343 lines):
  M src/api.cc
  M src/api-natives.cc
  M src/array.js
  M src/bootstrapper.cc
  M src/builtins.cc
  M src/code-stubs-hydrogen.cc
  M src/collection.js
  M src/execution.h
  M src/execution.cc
  M src/factory.h
  M src/factory.cc
  M src/full-codegen/x64/full-codegen-x64.cc
  M src/harmony-array.js
  M src/hydrogen.h
  M src/hydrogen.cc
  M src/json.js
  M src/macros.py
  M src/object-observe.js
  M src/objects.h
  M src/objects.cc
  M src/objects-debug.cc
  M src/objects-inl.h
  M src/objects-printer.cc
  M src/promise.js
  M src/proxy.js
  M src/runtime.js
  M src/runtime/runtime.h
  M src/runtime/runtime-classes.cc
  M src/runtime/runtime-function.cc
  M src/runtime/runtime-internal.cc
  M src/runtime/runtime-proxy.cc
  M src/string.js
  M src/v8natives.js
  M src/weak-collection.js
  M src/x64/lithium-codegen-x64.cc
  M test/cctest/test-api.cc


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