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_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.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 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1958 __ CallRuntime(Runtime::kCreateListFromArrayLike); | 1958 __ CallRuntime(Runtime::kCreateListFromArrayLike); |
1959 __ mov(a0, v0); | 1959 __ mov(a0, v0); |
1960 __ Pop(a1, a3); | 1960 __ Pop(a1, a3); |
1961 __ lw(a2, FieldMemOperand(v0, FixedArray::kLengthOffset)); | 1961 __ lw(a2, FieldMemOperand(v0, FixedArray::kLengthOffset)); |
1962 __ SmiUntag(a2); | 1962 __ SmiUntag(a2); |
1963 } | 1963 } |
1964 __ Branch(&done_create); | 1964 __ Branch(&done_create); |
1965 | 1965 |
1966 // Try to create the list from an arguments object. | 1966 // Try to create the list from an arguments object. |
1967 __ bind(&create_arguments); | 1967 __ bind(&create_arguments); |
1968 __ lw(a2, | 1968 __ lw(a2, FieldMemOperand(a0, JSArgumentsObject::kLengthOffset)); |
1969 FieldMemOperand(a0, JSObject::kHeaderSize + | |
1970 Heap::kArgumentsLengthIndex * kPointerSize)); | |
1971 __ lw(t0, FieldMemOperand(a0, JSObject::kElementsOffset)); | 1969 __ lw(t0, FieldMemOperand(a0, JSObject::kElementsOffset)); |
1972 __ lw(at, FieldMemOperand(t0, FixedArray::kLengthOffset)); | 1970 __ lw(at, FieldMemOperand(t0, FixedArray::kLengthOffset)); |
1973 __ Branch(&create_runtime, ne, a2, Operand(at)); | 1971 __ Branch(&create_runtime, ne, a2, Operand(at)); |
1974 __ SmiUntag(a2); | 1972 __ SmiUntag(a2); |
1975 __ mov(a0, t0); | 1973 __ mov(a0, t0); |
1976 __ Branch(&done_create); | 1974 __ Branch(&done_create); |
1977 | 1975 |
1978 // Try to create the list from a JSArray object. | 1976 // Try to create the list from a JSArray object. |
1979 __ bind(&create_array); | 1977 __ bind(&create_array); |
1980 __ lw(a2, FieldMemOperand(a2, Map::kBitField2Offset)); | 1978 __ lw(a2, FieldMemOperand(a2, Map::kBitField2Offset)); |
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2758 } | 2756 } |
2759 } | 2757 } |
2760 | 2758 |
2761 | 2759 |
2762 #undef __ | 2760 #undef __ |
2763 | 2761 |
2764 } // namespace internal | 2762 } // namespace internal |
2765 } // namespace v8 | 2763 } // namespace v8 |
2766 | 2764 |
2767 #endif // V8_TARGET_ARCH_MIPS | 2765 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |