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

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

Issue 2941643002: Check for a passed-in type argument vector in the prolog of generic functions. (Closed)
Patch Set: address review comments Created 3 years, 6 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/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after
896 // kExitLinkSlotFromEntryFp must be kept in sync with the code below. 896 // kExitLinkSlotFromEntryFp must be kept in sync with the code below.
897 ASSERT(kExitLinkSlotFromEntryFp == -24); 897 ASSERT(kExitLinkSlotFromEntryFp == -24);
898 __ sw(T0, Address(SP, 0 * kWordSize)); 898 __ sw(T0, Address(SP, 0 * kWordSize));
899 899
900 // After the call, The stack pointer is restored to this location. 900 // After the call, The stack pointer is restored to this location.
901 // Pushed S0-7, F20-31, T0, T0, T1 = 23. 901 // Pushed S0-7, F20-31, T0, T0, T1 = 23.
902 902
903 // Load arguments descriptor array into S4, which is passed to Dart code. 903 // Load arguments descriptor array into S4, which is passed to Dart code.
904 __ lw(S4, Address(A1, VMHandles::kOffsetOfRawPtrInHandle)); 904 __ lw(S4, Address(A1, VMHandles::kOffsetOfRawPtrInHandle));
905 905
906 // No need to check for type args, disallowed by DartEntry::InvokeFunction.
906 // Load number of arguments into S5. 907 // Load number of arguments into S5.
907 __ lw(T1, FieldAddress(S4, ArgumentsDescriptor::count_offset())); 908 __ lw(T1, FieldAddress(S4, ArgumentsDescriptor::count_offset()));
908 __ SmiUntag(T1); 909 __ SmiUntag(T1);
909 910
910 // Compute address of 'arguments array' data area into A2. 911 // Compute address of 'arguments array' data area into A2.
911 __ lw(A2, Address(A2, VMHandles::kOffsetOfRawPtrInHandle)); 912 __ lw(A2, Address(A2, VMHandles::kOffsetOfRawPtrInHandle));
912 913
913 // Set up arguments for the Dart call. 914 // Set up arguments for the Dart call.
914 Label push_arguments; 915 Label push_arguments;
915 Label done_push_arguments; 916 Label done_push_arguments;
(...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after
2449 } 2450 }
2450 2451
2451 2452
2452 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2453 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2453 __ break_(0); 2454 __ break_(0);
2454 } 2455 }
2455 2456
2456 } // namespace dart 2457 } // namespace dart
2457 2458
2458 #endif // defined TARGET_ARCH_MIPS 2459 #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