Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: runtime/vm/stub_code_mips.cc

Issue 2719603002: Rename Closure instance field type_arguments_ to instantiator_. (Closed)
Patch Set: work in progress Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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, &not_found); 1896 __ beq(T3, T7, &not_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
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
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698