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

Unified Diff: runtime/vm/stub_code_ia32.cc

Issue 10414026: Started porting inlined type checks to x64 (will be the future pattern for other architectures). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stub_code_ia32.cc
===================================================================
--- runtime/vm/stub_code_ia32.cc (revision 7823)
+++ runtime/vm/stub_code_ia32.cc (working copy)
@@ -1801,7 +1801,6 @@
const intptr_t kCacheOffsetInBytes = 3 * kWordSize;
const Immediate raw_null =
Immediate(reinterpret_cast<intptr_t>(Object::null()));
- Label not_found;
__ movl(EAX, Address(ESP, kInstanceOffsetInBytes));
__ movl(ECX, FieldAddress(EAX, Object::class_offset()));
// EAX: instance, ECX: instance-class.
@@ -1817,13 +1816,13 @@
__ movl(EBX, FieldAddress(EAX, EDI, TIMES_1, 0));
__ Bind(&has_no_type_arguments);
}
- // EBX: instance type arguments (null if none).
+ // EBX: instance type arguments (null if none), used only if n > 1.
__ movl(EDX, Address(ESP, kCacheOffsetInBytes));
// EDX: SubtypeTestCache.
__ movl(EDX, FieldAddress(EDX, SubtypeTestCache::cache_offset()));
__ addl(EDX, Immediate(Array::data_offset() - kHeapObjectTag));
- Label loop, found, next_iteration;
+ Label loop, found, not_found, next_iteration;
// EDX: Entry start.
// ECX: instance class.
// EBX: instance type arguments
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698