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

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

Issue 4035: Refactored the code for entering and leaving exit frames (calls... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 2 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
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 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 __ push(Operand(ebx)); 521 __ push(Operand(ebx));
522 522
523 // Call the entry. 523 // Call the entry.
524 CEntryStub stub; 524 CEntryStub stub;
525 __ mov(Operand(eax), Immediate(2)); 525 __ mov(Operand(eax), Immediate(2));
526 __ mov(Operand(ebx), Immediate(f)); 526 __ mov(Operand(ebx), Immediate(f));
527 __ CallStub(&stub); 527 __ CallStub(&stub);
528 528
529 // Move result to edi and exit the internal frame. 529 // Move result to edi and exit the internal frame.
530 __ mov(Operand(edi), eax); 530 __ mov(Operand(edi), eax);
531 __ ExitInternalFrame(); 531 __ LeaveInternalFrame();
532 532
533 // Invoke the function. 533 // Invoke the function.
534 ParameterCount actual(argc); 534 ParameterCount actual(argc);
535 __ InvokeFunction(edi, actual, JUMP_FUNCTION); 535 __ InvokeFunction(edi, actual, JUMP_FUNCTION);
536 } 536 }
537 537
538 538
539 // Defined in ic.cc. 539 // Defined in ic.cc.
540 Object* LoadIC_Miss(Arguments args); 540 Object* LoadIC_Miss(Arguments args);
541 541
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 730
731 // Do tail-call to runtime routine. 731 // Do tail-call to runtime routine.
732 __ TailCallRuntime(f, 3); 732 __ TailCallRuntime(f, 3);
733 } 733 }
734 734
735 735
736 #undef __ 736 #undef __
737 737
738 738
739 } } // namespace v8::internal 739 } } // namespace v8::internal
OLDNEW
« src/codegen-ia32.cc ('K') | « src/ic-arm.cc ('k') | src/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698