OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/globals.h" | 5 #include "vm/globals.h" |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 1864 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1875 // A2: SubtypeTestCache. | 1875 // A2: SubtypeTestCache. |
1876 // T0: instance class id. | 1876 // T0: instance class id. |
1877 // T1: instance type arguments (null if none), used only if n > 1. | 1877 // T1: instance type arguments (null if none), used only if n > 1. |
1878 __ lw(T2, FieldAddress(A2, SubtypeTestCache::cache_offset())); | 1878 __ lw(T2, FieldAddress(A2, SubtypeTestCache::cache_offset())); |
1879 __ AddImmediate(T2, Array::data_offset() - kHeapObjectTag); | 1879 __ AddImmediate(T2, Array::data_offset() - kHeapObjectTag); |
1880 | 1880 |
1881 __ LoadObject(T7, Object::null_object()); | 1881 __ LoadObject(T7, Object::null_object()); |
1882 | 1882 |
1883 Label loop, found, not_found, next_iteration; | 1883 Label loop, found, not_found, next_iteration; |
1884 // T0: instance class id. | 1884 // T0: instance class id. |
1885 // T1: instance type arguments. | 1885 // T1: instance type arguments (still null if closure). |
1886 // T2: Entry start. | 1886 // T2: Entry start. |
1887 // T7: null. | 1887 // T7: null. |
1888 __ SmiTag(T0); | 1888 __ SmiTag(T0); |
1889 __ BranchNotEqual(T0, Immediate(Smi::RawValue(kClosureCid)), &loop); | 1889 __ BranchNotEqual(T0, Immediate(Smi::RawValue(kClosureCid)), &loop); |
| 1890 __ lw(T1, FieldAddress(A0, Closure::instantiator_offset())); |
1890 __ lw(T0, FieldAddress(A0, Closure::function_offset())); | 1891 __ lw(T0, FieldAddress(A0, Closure::function_offset())); |
1891 // T0: instance class id as Smi or function. | 1892 // T0: instance class id as Smi or function. |
1892 __ Bind(&loop); | 1893 __ Bind(&loop); |
1893 __ lw(T3, | 1894 __ lw(T3, |
1894 Address(T2, kWordSize * SubtypeTestCache::kInstanceClassIdOrFunction)); | 1895 Address(T2, kWordSize * SubtypeTestCache::kInstanceClassIdOrFunction)); |
1895 __ beq(T3, T7, ¬_found); | 1896 __ beq(T3, T7, ¬_found); |
1896 | 1897 |
1897 if (n == 1) { | 1898 if (n == 1) { |
1898 __ beq(T3, T0, &found); | 1899 __ beq(T3, T0, &found); |
1899 } else { | 1900 } else { |
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2409 } | 2410 } |
2410 | 2411 |
2411 | 2412 |
2412 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { | 2413 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { |
2413 __ break_(0); | 2414 __ break_(0); |
2414 } | 2415 } |
2415 | 2416 |
2416 } // namespace dart | 2417 } // namespace dart |
2417 | 2418 |
2418 #endif // defined TARGET_ARCH_MIPS | 2419 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |