From c9b9c431d45ff03d6599ce2892c4c4d7ed896278 Mon Sep 17 00:00:00 2001 From: "antonm@chromium.org" Date: Fri, 12 Mar 2010 16:54:35 +0000 Subject: [PATCH] Remove now obsolete comment. Now builtins only process fast case when there is no need to lift elements from the prototypes. TBR=ager@chromium.org Review URL: http://codereview.chromium.org/890004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4121 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/builtins.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/builtins.cc b/src/builtins.cc index 8b08937..e59dbcf 100644 --- a/src/builtins.cc +++ b/src/builtins.cc @@ -486,10 +486,6 @@ BUILTIN(ArrayUnshift) { int len = Smi::cast(array->length())->value(); int to_add = args.length() - 1; - // Note that we cannot quit early if to_add == 0 as - // values should be lifted from prototype into - // the array. - int new_length = len + to_add; // Currently fixed arrays cannot grow too big, so // we should never hit this case. -- 2.7.4