Revision: 4122
Author: [email protected]
Date: Fri Mar 12 10:27:31 2010
Log: Some cosmetic issues.

Review URL: http://codereview.chromium.org/903004


http://code.google.com/p/v8/source/detail?r=4122

Modified:
 /branches/bleeding_edge/src/array.js
 /branches/bleeding_edge/src/ia32/stub-cache-ia32.cc

=======================================
--- /branches/bleeding_edge/src/array.js        Thu Mar 11 08:24:31 2010
+++ /branches/bleeding_edge/src/array.js        Fri Mar 12 10:27:31 2010
@@ -1107,7 +1107,7 @@
     if (specialFunctions.hasOwnProperty(name)) {
       f = specialFunctions[name];
     }
-    if (arguments.length == 3) {
+    if (!IS_UNDEFINED(len)) {
       %FunctionSetLength(f, len);
     }
     return f;
=======================================
--- /branches/bleeding_edge/src/ia32/stub-cache-ia32.cc Fri Mar 12 05:45:31 2010 +++ /branches/bleeding_edge/src/ia32/stub-cache-ia32.cc Fri Mar 12 10:27:31 2010
@@ -1247,7 +1247,7 @@

     // Check that the elements are in fast mode (not dictionary).
     __ cmp(FieldOperand(ebx, HeapObject::kMapOffset),
-            Immediate(Factory::fixed_array_map()));
+           Immediate(Factory::fixed_array_map()));
     __ j(not_equal, &miss);

     if (argc == 1) {  // Otherwise fall through to call builtin.
@@ -1277,7 +1277,7 @@
       __ mov(ecx, Operand(esp, argc * kPointerSize));
       __ mov(Operand(edx, 0), ecx);

-      // Check if wrote not a smi.
+      // Check if value is a smi.
       __ test(ecx, Immediate(kSmiTagMask));
       __ j(not_zero, &with_rset_update);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to