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

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

Issue 2818273002: Remove parent_level field of function type parameters. (Closed)
Patch Set: address comments Created 3 years, 8 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 1884 matching lines...) Expand 10 before | Expand all | Expand 10 after
1895 __ AddImmediate(T2, Array::data_offset() - kHeapObjectTag); 1895 __ AddImmediate(T2, Array::data_offset() - kHeapObjectTag);
1896 1896
1897 __ LoadObject(T7, Object::null_object()); 1897 __ LoadObject(T7, Object::null_object());
1898 Label loop, found, not_found, next_iteration; 1898 Label loop, found, not_found, next_iteration;
1899 // T0: instance class id. 1899 // T0: instance class id.
1900 // T1: instance type arguments (still null if closure). 1900 // T1: instance type arguments (still null if closure).
1901 // T2: Entry start. 1901 // T2: Entry start.
1902 // T7: null. 1902 // T7: null.
1903 __ SmiTag(T0); 1903 __ SmiTag(T0);
1904 __ BranchNotEqual(T0, Immediate(Smi::RawValue(kClosureCid)), &loop); 1904 __ BranchNotEqual(T0, Immediate(Smi::RawValue(kClosureCid)), &loop);
1905 __ lw(T1, FieldAddress(A0, Closure::instantiator_offset())); 1905 __ lw(T1, FieldAddress(A0, Closure::function_type_arguments_offset()));
1906 __ bne(T1, T7, &not_found); // Cache cannot be used for generic closures.
1907 __ lw(T1, FieldAddress(A0, Closure::instantiator_type_arguments_offset()));
1906 __ lw(T0, FieldAddress(A0, Closure::function_offset())); 1908 __ lw(T0, FieldAddress(A0, Closure::function_offset()));
1907 // T0: instance class id as Smi or function. 1909 // T0: instance class id as Smi or function.
1908 __ Bind(&loop); 1910 __ Bind(&loop);
1909 __ lw(T3, 1911 __ lw(T3,
1910 Address(T2, kWordSize * SubtypeTestCache::kInstanceClassIdOrFunction)); 1912 Address(T2, kWordSize * SubtypeTestCache::kInstanceClassIdOrFunction));
1911 __ beq(T3, T7, &not_found); 1913 __ beq(T3, T7, &not_found);
1912 if (n == 1) { 1914 if (n == 1) {
1913 __ beq(T3, T0, &found); 1915 __ beq(T3, T0, &found);
1914 } else { 1916 } else {
1915 __ bne(T3, T0, &next_iteration); 1917 __ bne(T3, T0, &next_iteration);
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
2430 } 2432 }
2431 2433
2432 2434
2433 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2435 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2434 __ break_(0); 2436 __ break_(0);
2435 } 2437 }
2436 2438
2437 } // namespace dart 2439 } // namespace dart
2438 2440
2439 #endif // defined TARGET_ARCH_MIPS 2441 #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