ARRAY_SIZE is not available on Linux-shared.
authorrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 28 Jun 2012 16:40:16 +0000 (16:40 +0000)
committerrossberg@chromium.org <rossberg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 28 Jun 2012 16:40:16 +0000 (16:40 +0000)
R=mstarzinger@chromium.org
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com/10718008

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@11950 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/d8.cc

index 89de773..b3afcfe 100644 (file)
--- a/src/d8.cc
+++ b/src/d8.cc
@@ -493,7 +493,7 @@ Handle<Value> Shell::CreateExternalArray(const Arguments& args,
     ASSERT(!try_catch.HasCaught() && array_buffer->IsFunction());
     Handle<Value> buffer_args[] = { Uint32::New(byteLength) };
     Handle<Value> result = Handle<Function>::Cast(array_buffer)->NewInstance(
-        ARRAY_SIZE(buffer_args), buffer_args);
+        1, buffer_args);
     if (try_catch.HasCaught()) return result;
     buffer = result->ToObject();
   }
@@ -566,7 +566,7 @@ Handle<Value> Shell::SubArray(const Arguments& args) {
   Handle<Value> construct_args[] = {
     buffer, Uint32::New(byteOffset), Uint32::New(length)
   };
-  return constructor->NewInstance(ARRAY_SIZE(construct_args), construct_args);
+  return constructor->NewInstance(3, construct_args);
 }