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

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

Issue 9111: Use 1 byte push REG instructions instead of the 2 byte ModRM version. (Closed)
Patch Set: 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
« no previous file with comments | « src/builtins-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 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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 // Get the receiver of the function from the stack; 1 ~ return address. 531 // Get the receiver of the function from the stack; 1 ~ return address.
532 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); 532 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize));
533 // Get the name of the function to call from the stack. 533 // Get the name of the function to call from the stack.
534 // 2 ~ receiver, return address. 534 // 2 ~ receiver, return address.
535 __ mov(ebx, Operand(esp, (argc + 2) * kPointerSize)); 535 __ mov(ebx, Operand(esp, (argc + 2) * kPointerSize));
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(Operand(edx)); 541 __ push(edx);
542 __ push(Operand(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(Operand(eax), Immediate(2));
547 __ mov(Operand(ebx), Immediate(f)); 547 __ mov(Operand(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(Operand(edi), eax);
552 __ LeaveInternalFrame(); 552 __ LeaveInternalFrame();
(...skipping 254 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
« no previous file with comments | « src/builtins-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698