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

Side by Side Diff: src/ic-ia32.cc

Issue 10002: Use shorting encoding for mov reg, imm. (Closed)
Patch Set: Remove an accidental change Created 12 years, 1 month 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 536
537 // Enter an internal frame. 537 // Enter an internal frame.
538 __ EnterInternalFrame(); 538 __ EnterInternalFrame();
539 539
540 // Push the receiver and the name of the function. 540 // Push the receiver and the name of the function.
541 __ push(edx); 541 __ push(edx);
542 __ push(ebx); 542 __ push(ebx);
543 543
544 // Call the entry. 544 // Call the entry.
545 CEntryStub stub; 545 CEntryStub stub;
546 __ mov(Operand(eax), Immediate(2)); 546 __ mov(eax, Immediate(2));
547 __ mov(Operand(ebx), Immediate(f)); 547 __ mov(ebx, Immediate(f));
548 __ CallStub(&stub); 548 __ CallStub(&stub);
549 549
550 // Move result to edi and exit the internal frame. 550 // Move result to edi and exit the internal frame.
551 __ mov(Operand(edi), eax); 551 __ mov(edi, eax);
552 __ LeaveInternalFrame(); 552 __ LeaveInternalFrame();
553 553
554 // Check if the receiver is a global object of some sort. 554 // Check if the receiver is a global object of some sort.
555 Label invoke, global; 555 Label invoke, global;
556 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); // receiver 556 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); // receiver
557 __ test(edx, Immediate(kSmiTagMask)); 557 __ test(edx, Immediate(kSmiTagMask));
558 __ j(zero, &invoke, not_taken); 558 __ j(zero, &invoke, not_taken);
559 __ mov(ecx, FieldOperand(edx, HeapObject::kMapOffset)); 559 __ mov(ecx, FieldOperand(edx, HeapObject::kMapOffset));
560 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset)); 560 __ movzx_b(ecx, FieldOperand(ecx, Map::kInstanceTypeOffset));
561 __ cmp(ecx, JS_GLOBAL_OBJECT_TYPE); 561 __ cmp(ecx, JS_GLOBAL_OBJECT_TYPE);
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 807
808 // Do tail-call to runtime routine. 808 // Do tail-call to runtime routine.
809 __ TailCallRuntime( 809 __ TailCallRuntime(
810 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3); 810 ExternalReference(IC_Utility(kSharedStoreIC_ExtendStorage)), 3);
811 } 811 }
812 812
813 #undef __ 813 #undef __
814 814
815 815
816 } } // namespace v8::internal 816 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698