| OLD | NEW | 
|     1 // Copyright 2012 the V8 project authors. All rights reserved. |     1 // Copyright 2012 the V8 project authors. All rights reserved. | 
|     2 // Use of this source code is governed by a BSD-style license that can be |     2 // Use of this source code is governed by a BSD-style license that can be | 
|     3 // found in the LICENSE file. |     3 // found in the LICENSE file. | 
|     4  |     4  | 
|     5 #if V8_TARGET_ARCH_IA32 |     5 #if V8_TARGET_ARCH_IA32 | 
|     6  |     6  | 
|     7 #include "src/code-factory.h" |     7 #include "src/code-factory.h" | 
|     8 #include "src/codegen.h" |     8 #include "src/codegen.h" | 
|     9 #include "src/deoptimizer.h" |     9 #include "src/deoptimizer.h" | 
|    10 #include "src/full-codegen/full-codegen.h" |    10 #include "src/full-codegen/full-codegen.h" | 
| (...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1859       __ CallRuntime(Runtime::kCreateListFromArrayLike); |  1859       __ CallRuntime(Runtime::kCreateListFromArrayLike); | 
|  1860       __ Pop(edx); |  1860       __ Pop(edx); | 
|  1861       __ Pop(edi); |  1861       __ Pop(edi); | 
|  1862       __ mov(ebx, FieldOperand(eax, FixedArray::kLengthOffset)); |  1862       __ mov(ebx, FieldOperand(eax, FixedArray::kLengthOffset)); | 
|  1863       __ SmiUntag(ebx); |  1863       __ SmiUntag(ebx); | 
|  1864     } |  1864     } | 
|  1865     __ jmp(&done_create); |  1865     __ jmp(&done_create); | 
|  1866  |  1866  | 
|  1867     // Try to create the list from an arguments object. |  1867     // Try to create the list from an arguments object. | 
|  1868     __ bind(&create_arguments); |  1868     __ bind(&create_arguments); | 
|  1869     __ mov(ebx, |  1869     __ mov(ebx, FieldOperand(eax, JSArgumentsObject::kLengthOffset)); | 
|  1870            FieldOperand(eax, JSObject::kHeaderSize + |  | 
|  1871                                  Heap::kArgumentsLengthIndex * kPointerSize)); |  | 
|  1872     __ mov(ecx, FieldOperand(eax, JSObject::kElementsOffset)); |  1870     __ mov(ecx, FieldOperand(eax, JSObject::kElementsOffset)); | 
|  1873     __ cmp(ebx, FieldOperand(ecx, FixedArray::kLengthOffset)); |  1871     __ cmp(ebx, FieldOperand(ecx, FixedArray::kLengthOffset)); | 
|  1874     __ j(not_equal, &create_runtime); |  1872     __ j(not_equal, &create_runtime); | 
|  1875     __ SmiUntag(ebx); |  1873     __ SmiUntag(ebx); | 
|  1876     __ mov(eax, ecx); |  1874     __ mov(eax, ecx); | 
|  1877     __ jmp(&done_create); |  1875     __ jmp(&done_create); | 
|  1878  |  1876  | 
|  1879     // Try to create the list from a JSArray object. |  1877     // Try to create the list from a JSArray object. | 
|  1880     __ bind(&create_array); |  1878     __ bind(&create_array); | 
|  1881     __ mov(ecx, FieldOperand(ecx, Map::kBitField2Offset)); |  1879     __ mov(ecx, FieldOperand(ecx, Map::kBitField2Offset)); | 
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2774  |  2772  | 
|  2775   __ bind(&ok); |  2773   __ bind(&ok); | 
|  2776   __ ret(0); |  2774   __ ret(0); | 
|  2777 } |  2775 } | 
|  2778  |  2776  | 
|  2779 #undef __ |  2777 #undef __ | 
|  2780 }  // namespace internal |  2778 }  // namespace internal | 
|  2781 }  // namespace v8 |  2779 }  // namespace v8 | 
|  2782  |  2780  | 
|  2783 #endif  // V8_TARGET_ARCH_IA32 |  2781 #endif  // V8_TARGET_ARCH_IA32 | 
| OLD | NEW |