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

Unified Diff: runtime/vm/stub_code_ia32.cc

Issue 392343002: Cleanup of class id loading sequences. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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/stub_code_arm.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 38317)
+++ runtime/vm/stub_code_ia32.cc (working copy)
@@ -1297,8 +1297,7 @@
if (FLAG_enable_debugger) {
// Check single stepping.
__ movl(EAX, FieldAddress(CTX, Context::isolate_offset()));
- __ movzxb(EAX, Address(EAX, Isolate::single_step_offset()));
- __ cmpl(EAX, Immediate(0));
+ __ cmpb(Address(EAX, Isolate::single_step_offset()), Immediate(0));
__ j(NOT_EQUAL, &stepping);
__ Bind(&done_stepping);
}
@@ -1317,8 +1316,8 @@
// Get the receiver's class ID (first read number of arguments from
// arguments descriptor array and then access the receiver from the stack).
__ movl(EAX, FieldAddress(EDX, ArgumentsDescriptor::count_offset()));
- __ movl(EAX, Address(ESP, EAX, TIMES_2, 0)); // EAX (argument_count) is smi.
- __ LoadTaggedClassIdMayBeSmi(EAX, EAX, EDI);
+ __ movl(EDI, Address(ESP, EAX, TIMES_2, 0)); // EAX (argument_count) is smi.
+ __ LoadTaggedClassIdMayBeSmi(EAX, EDI);
// EAX: receiver's class ID (smi).
__ movl(EDI, Address(EBX, 0)); // First class id (smi) to check.
@@ -1329,8 +1328,8 @@
if (i > 0) {
// If not the first, load the next argument's class ID.
__ movl(EAX, FieldAddress(EDX, ArgumentsDescriptor::count_offset()));
- __ movl(EAX, Address(ESP, EAX, TIMES_2, - i * kWordSize));
- __ LoadTaggedClassIdMayBeSmi(EAX, EAX, EDI);
+ __ movl(EDI, Address(ESP, EAX, TIMES_2, - i * kWordSize));
+ __ LoadTaggedClassIdMayBeSmi(EAX, EDI);
// EAX: next argument class ID (smi).
__ movl(EDI, Address(EBX, i * kWordSize));
@@ -1348,8 +1347,8 @@
// Reload receiver class ID. It has not been destroyed when num_args == 1.
if (num_args > 1) {
__ movl(EAX, FieldAddress(EDX, ArgumentsDescriptor::count_offset()));
- __ movl(EAX, Address(ESP, EAX, TIMES_2, 0));
- __ LoadTaggedClassIdMayBeSmi(EAX, EAX, EDI);
+ __ movl(EDI, Address(ESP, EAX, TIMES_2, 0));
+ __ LoadTaggedClassIdMayBeSmi(EAX, EDI);
}
const intptr_t entry_size = ICData::TestEntryLengthFor(num_args) * kWordSize;
« no previous file with comments | « runtime/vm/stub_code_arm.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698