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

Side by Side Diff: runtime/vm/stub_code_x64.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_mips.cc ('k') | runtime/vm/symbols.h » ('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_X64) 6 #if defined(TARGET_ARCH_X64)
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 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 #endif 826 #endif
827 827
828 __ movq(Address(THR, Thread::top_exit_frame_info_offset()), Immediate(0)); 828 __ movq(Address(THR, Thread::top_exit_frame_info_offset()), Immediate(0));
829 829
830 // Load arguments descriptor array into R10, which is passed to Dart code. 830 // Load arguments descriptor array into R10, which is passed to Dart code.
831 __ movq(R10, Address(kArgDescReg, VMHandles::kOffsetOfRawPtrInHandle)); 831 __ movq(R10, Address(kArgDescReg, VMHandles::kOffsetOfRawPtrInHandle));
832 832
833 // Push arguments. At this point we only need to preserve kTargetCodeReg. 833 // Push arguments. At this point we only need to preserve kTargetCodeReg.
834 ASSERT(kTargetCodeReg != RDX); 834 ASSERT(kTargetCodeReg != RDX);
835 835
836 // No need to check for type args, disallowed by DartEntry::InvokeFunction.
836 // Load number of arguments into RBX. 837 // Load number of arguments into RBX.
837 __ movq(RBX, FieldAddress(R10, ArgumentsDescriptor::count_offset())); 838 __ movq(RBX, FieldAddress(R10, ArgumentsDescriptor::count_offset()));
838 __ SmiUntag(RBX); 839 __ SmiUntag(RBX);
839 840
840 // Compute address of 'arguments array' data area into RDX. 841 // Compute address of 'arguments array' data area into RDX.
841 __ movq(RDX, Address(kArgsReg, VMHandles::kOffsetOfRawPtrInHandle)); 842 __ movq(RDX, Address(kArgsReg, VMHandles::kOffsetOfRawPtrInHandle));
842 __ leaq(RDX, FieldAddress(RDX, Array::data_offset())); 843 __ leaq(RDX, FieldAddress(RDX, Array::data_offset()));
843 844
844 // Set up arguments for the Dart call. 845 // Set up arguments for the Dart call.
845 Label push_arguments; 846 Label push_arguments;
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
2319 } 2320 }
2320 2321
2321 2322
2322 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) { 2323 void StubCode::GenerateAsynchronousGapMarkerStub(Assembler* assembler) {
2323 __ int3(); 2324 __ int3();
2324 } 2325 }
2325 2326
2326 } // namespace dart 2327 } // namespace dart
2327 2328
2328 #endif // defined TARGET_ARCH_X64 2329 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698