Improve instruction creating/adding shorthand in HGraphBuilder
authordanno@chromium.org <danno@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 31 Jul 2013 14:58:39 +0000 (14:58 +0000)
committerdanno@chromium.org <danno@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 31 Jul 2013 14:58:39 +0000 (14:58 +0000)
commit4cdffbf4fec8cb72f34d8dd81ff4b2f17950e663
treec6cbd3d0930490f295d32298da435602ef6ce1de
parent8c0f2eabbf57922a8537d6ad13fc45b540b17b4c
Improve instruction creating/adding shorthand in HGraphBuilder

Add multi-argument templates for New, NewUncasted, Add and AddUncasted that
call boilerplate HInstruction::New methods rather than the constructor directly.
This allows for automatic passing of the zone and context for instructions that
need them.

R=verwaest@chromium.org

Review URL: https://codereview.chromium.org/21356002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15990 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/code-stubs-hydrogen.cc
src/hydrogen-bce.cc
src/hydrogen-bch.cc
src/hydrogen-instructions.cc
src/hydrogen-instructions.h
src/hydrogen.cc
src/hydrogen.h