| 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, FieldMemOperand(a0, JSSloppyArgumentsObject::kLengthOffset)); | 1963 __ ld(a2, FieldMemOperand(a0, JSArgumentsObject::kLengthOffset)); |
| 1964 __ ld(a4, FieldMemOperand(a0, JSObject::kElementsOffset)); | 1964 __ ld(a4, FieldMemOperand(a0, JSObject::kElementsOffset)); |
| 1965 __ ld(at, FieldMemOperand(a4, FixedArray::kLengthOffset)); | 1965 __ ld(at, FieldMemOperand(a4, FixedArray::kLengthOffset)); |
| 1966 __ Branch(&create_runtime, ne, a2, Operand(at)); | 1966 __ Branch(&create_runtime, ne, a2, Operand(at)); |
| 1967 __ SmiUntag(a2); | 1967 __ SmiUntag(a2); |
| 1968 __ mov(a0, a4); | 1968 __ mov(a0, a4); |
| 1969 __ Branch(&done_create); | 1969 __ Branch(&done_create); |
| 1970 | 1970 |
| 1971 // Try to create the list from a JSArray object. | 1971 // Try to create the list from a JSArray object. |
| 1972 __ bind(&create_array); | 1972 __ bind(&create_array); |
| 1973 __ 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... |
| 2750 } | 2750 } |
| 2751 } | 2751 } |
| 2752 | 2752 |
| 2753 | 2753 |
| 2754 #undef __ | 2754 #undef __ |
| 2755 | 2755 |
| 2756 } // namespace internal | 2756 } // namespace internal |
| 2757 } // namespace v8 | 2757 } // namespace v8 |
| 2758 | 2758 |
| 2759 #endif // V8_TARGET_ARCH_MIPS64 | 2759 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |