Commit 6ef5474c authored by bmeurer@chromium.org's avatar bmeurer@chromium.org

Fix build with ancient NaCl toolchain.

TBR=yanggou@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23390 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 90c89325
......@@ -314,7 +314,7 @@ void ExternalReferenceTable::PopulateTable(Isolate* isolate) {
#undef IC_ENTRY
}; // end of ref_table[].
for (size_t i = 0; i < arraysize(ref_table); ++i) {
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(ref_table); ++i) {
AddFromId(ref_table[i].type,
ref_table[i].id,
ref_table[i].name,
......@@ -340,7 +340,7 @@ void ExternalReferenceTable::PopulateTable(Isolate* isolate) {
}; // end of stats_ref_table[].
Counters* counters = isolate->counters();
for (size_t i = 0; i < arraysize(stats_ref_table); ++i) {
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(stats_ref_table); ++i) {
Add(reinterpret_cast<Address>(GetInternalPointer(
(counters->*(stats_ref_table[i].counter))())),
STATS_COUNTER,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment