Reviewers: fschneider, danno, Paul Lind, kisg,
Description:
MIPS: Remove static initializers in v8.
Port r11010 (1daa81bc).
MIPS-specific changes:
-register codes and registers are defined using a macro to avoid redundancy
-renamed s8_fp to fp, removed the "fp" alias
-removed kSavedValueRegister (found by check-static-initializers.sh)
Original commit message:
Landing for [email protected]: Remove static initializers in v8.
This change includes two CLs by [email protected]:
1. http://codereview.chromium.org/9447052/ (Add CallOnce() and simple
LazyInstance implementation):
Note that this implementation of LazyInstance does not handle global
destructors
(i.e. the lazy instances a
This CL was initially reviewed on codereview.appspot.com:
http://codereview.appspot.com/5687064/
2. http://codereview.chromium.org/9455088/ (Remove static initializers in
v8):
This CL depends on CL 9447052 (adding CallOnce and LazyInstance).
It is based on a patch sent by Digit.
With this patch applied, we have only one static initializer left (in
atomicops_internals_x86_gcc.cc). This
This CL also modifies the presubmit script to check the number of static
initializers.
BUG=
TEST=
Please review this at http://codereview.chromium.org/9689069/
Affected files:
M src/mips/assembler-mips.h
M src/mips/assembler-mips.cc
M src/mips/code-stubs-mips.cc
M src/mips/lithium-gap-resolver-mips.cc
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev