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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1953 __ CallRuntime(Runtime::kCreateListFromArrayLike); | 1953 __ CallRuntime(Runtime::kCreateListFromArrayLike); |
1954 __ mov(a0, v0); | 1954 __ mov(a0, v0); |
1955 __ Pop(a1, a3); | 1955 __ Pop(a1, a3); |
1956 __ ld(a2, FieldMemOperand(v0, FixedArray::kLengthOffset)); | 1956 __ ld(a2, FieldMemOperand(v0, FixedArray::kLengthOffset)); |
1957 __ SmiUntag(a2); | 1957 __ SmiUntag(a2); |
1958 } | 1958 } |
1959 __ Branch(&done_create); | 1959 __ Branch(&done_create); |
1960 | 1960 |
1961 // Try to create the list from an arguments object. | 1961 // Try to create the list from an arguments object. |
1962 __ bind(&create_arguments); | 1962 __ bind(&create_arguments); |
1963 __ ld(a2, | 1963 __ ld(a2, FieldMemOperand(a0, JSSloppyArgumentsObject::kLengthOffset)); |
1964 FieldMemOperand(a0, JSObject::kHeaderSize + | |
1965 Heap::kArgumentsLengthIndex * kPointerSize)); | |
1966 __ ld(a4, FieldMemOperand(a0, JSObject::kElementsOffset)); | 1964 __ ld(a4, FieldMemOperand(a0, JSObject::kElementsOffset)); |
1967 __ ld(at, FieldMemOperand(a4, FixedArray::kLengthOffset)); | 1965 __ ld(at, FieldMemOperand(a4, FixedArray::kLengthOffset)); |
1968 __ Branch(&create_runtime, ne, a2, Operand(at)); | 1966 __ Branch(&create_runtime, ne, a2, Operand(at)); |
1969 __ SmiUntag(a2); | 1967 __ SmiUntag(a2); |
1970 __ mov(a0, a4); | 1968 __ mov(a0, a4); |
1971 __ Branch(&done_create); | 1969 __ Branch(&done_create); |
1972 | 1970 |
1973 // Try to create the list from a JSArray object. | 1971 // Try to create the list from a JSArray object. |
1974 __ bind(&create_array); | 1972 __ bind(&create_array); |
1975 __ ld(a2, FieldMemOperand(a2, Map::kBitField2Offset)); | 1973 __ ld(a2, FieldMemOperand(a2, Map::kBitField2Offset)); |
(...skipping 776 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2752 } | 2750 } |
2753 } | 2751 } |
2754 | 2752 |
2755 | 2753 |
2756 #undef __ | 2754 #undef __ |
2757 | 2755 |
2758 } // namespace internal | 2756 } // namespace internal |
2759 } // namespace v8 | 2757 } // namespace v8 |
2760 | 2758 |
2761 #endif // V8_TARGET_ARCH_MIPS64 | 2759 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |