Reviewers: Erik Corry,

Description:
Perform smi checks in count operations in the full code generator.

We now test for a smi before calling ToNumber and inline
the smi increment/decrement for ++ and --. There only a small increase
in code size but loops in top-level code are getting much faster as
a result.

Also in this change:
Add an option for  fast comparison against null to the CompareStub.

This speeds up the code generated by the top-level code generator since
we do not generate any inlined fast case checks for compare operations there.
The normal code generator is not changed since it already
performs fast comparisons against null outside the stub.



Please review this at http://codereview.chromium.org/554032

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
  M     src/arm/codegen-arm.cc
  M     src/arm/full-codegen-arm.cc
  M     src/codegen.h
  M     src/ia32/codegen-ia32.cc
  M     src/ia32/full-codegen-ia32.cc
  M     src/x64/codegen-x64.cc
  M     src/x64/full-codegen-x64.cc


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

Reply via email to