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

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

Issue 1584223006: Remove signature classes from the VM. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 11 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 1925 matching lines...) Expand 10 before | Expand all | Expand 10 after
1936 __ AddImmediate(T2, Array::data_offset() - kHeapObjectTag); 1936 __ AddImmediate(T2, Array::data_offset() - kHeapObjectTag);
1937 1937
1938 __ LoadObject(T7, Object::null_object()); 1938 __ LoadObject(T7, Object::null_object());
1939 1939
1940 Label loop, found, not_found, next_iteration; 1940 Label loop, found, not_found, next_iteration;
1941 // T0: instance class id. 1941 // T0: instance class id.
1942 // T1: instance type arguments. 1942 // T1: instance type arguments.
1943 // T2: Entry start. 1943 // T2: Entry start.
1944 // T7: null. 1944 // T7: null.
1945 __ SmiTag(T0); 1945 __ SmiTag(T0);
1946 __ BranchNotEqual(T0, Immediate(Smi::RawValue(kClosureCid)), &loop);
1947 __ lw(T0, FieldAddress(A0, Closure::function_offset()));
1948 // T0: instance class id as Smi or function.
1946 __ Bind(&loop); 1949 __ Bind(&loop);
1947 __ lw(T3, Address(T2, kWordSize * SubtypeTestCache::kInstanceClassId)); 1950 __ lw(T3,
1951 Address(T2, kWordSize * SubtypeTestCache::kInstanceClassIdOrFunction));
1948 __ beq(T3, T7, &not_found); 1952 __ beq(T3, T7, &not_found);
1949 1953
1950 if (n == 1) { 1954 if (n == 1) {
1951 __ beq(T3, T0, &found); 1955 __ beq(T3, T0, &found);
1952 } else { 1956 } else {
1953 __ bne(T3, T0, &next_iteration); 1957 __ bne(T3, T0, &next_iteration);
1954 __ lw(T3, 1958 __ lw(T3,
1955 Address(T2, kWordSize * SubtypeTestCache::kInstanceTypeArguments)); 1959 Address(T2, kWordSize * SubtypeTestCache::kInstanceTypeArguments));
1956 if (n == 2) { 1960 if (n == 2) {
1957 __ beq(T3, T1, &found); 1961 __ beq(T3, T1, &found);
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
2302 __ Bind(&miss); 2306 __ Bind(&miss);
2303 __ LoadIsolate(T2); 2307 __ LoadIsolate(T2);
2304 __ lw(CODE_REG, Address(T2, Isolate::ic_miss_code_offset())); 2308 __ lw(CODE_REG, Address(T2, Isolate::ic_miss_code_offset()));
2305 __ lw(T1, FieldAddress(CODE_REG, Code::entry_point_offset())); 2309 __ lw(T1, FieldAddress(CODE_REG, Code::entry_point_offset()));
2306 __ Ret(); 2310 __ Ret();
2307 } 2311 }
2308 2312
2309 } // namespace dart 2313 } // namespace dart
2310 2314
2311 #endif // defined TARGET_ARCH_MIPS 2315 #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