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

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

Issue 9873014: Factor out super-class and interface array subtype checks into a stub. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/code_generator.h" 8 #include "vm/code_generator.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/object_store.h" 10 #include "vm/object_store.h"
(...skipping 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1722 // Find out which dispatch stub to call. 1722 // Find out which dispatch stub to call.
1723 Label ic_cache_one_arg; 1723 Label ic_cache_one_arg;
1724 __ movq(RCX, FieldAddress(RBX, ICData::num_args_tested_offset())); 1724 __ movq(RCX, FieldAddress(RBX, ICData::num_args_tested_offset()));
1725 __ cmpq(RCX, Immediate(1)); 1725 __ cmpq(RCX, Immediate(1));
1726 __ j(EQUAL, &ic_cache_one_arg, Assembler::kNearJump); 1726 __ j(EQUAL, &ic_cache_one_arg, Assembler::kNearJump);
1727 __ jmp(&StubCode::TwoArgsCheckInlineCacheLabel()); 1727 __ jmp(&StubCode::TwoArgsCheckInlineCacheLabel());
1728 __ Bind(&ic_cache_one_arg); 1728 __ Bind(&ic_cache_one_arg);
1729 __ jmp(&StubCode::OneArgCheckInlineCacheLabel()); 1729 __ jmp(&StubCode::OneArgCheckInlineCacheLabel());
1730 } 1730 }
1731 1731
1732
1733 void StubCode::GenerateIsRawSubTypeStub(Assembler* assembler) {
1734 __ Unimplemented("IsRawSubType Stub");
1735 }
1736
1732 } // namespace dart 1737 } // namespace dart
1733 1738
1734 #endif // defined TARGET_ARCH_X64 1739 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/stub_code_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698