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 1930: Adapt to new calling convention on ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 3 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
« no previous file with comments | « src/ic-arm.cc ('k') | src/macro-assembler-arm.h » ('j') | 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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 // ----------- S t a t e ------------- 511 // ----------- S t a t e -------------
512 // ----------------------------------- 512 // -----------------------------------
513 513
514 // Get the receiver of the function from the stack; 1 ~ return address. 514 // Get the receiver of the function from the stack; 1 ~ return address.
515 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); 515 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize));
516 // Get the name of the function to call from the stack. 516 // Get the name of the function to call from the stack.
517 // 2 ~ receiver, return address. 517 // 2 ~ receiver, return address.
518 __ mov(ebx, Operand(esp, (argc + 2) * kPointerSize)); 518 __ mov(ebx, Operand(esp, (argc + 2) * kPointerSize));
519 519
520 // Enter an internal frame. 520 // Enter an internal frame.
521 __ EnterFrame(StackFrame::INTERNAL); 521 __ EnterInternalFrame();
522 522
523 // Push the receiver and the name of the function. 523 // Push the receiver and the name of the function.
524 __ push(Operand(edx)); 524 __ push(Operand(edx));
525 __ push(Operand(ebx)); 525 __ push(Operand(ebx));
526 526
527 // Call the entry. 527 // Call the entry.
528 CEntryStub stub; 528 CEntryStub stub;
529 __ mov(Operand(eax), Immediate(2)); 529 __ mov(Operand(eax), Immediate(2));
530 __ mov(Operand(ebx), Immediate(f)); 530 __ mov(Operand(ebx), Immediate(f));
531 __ CallStub(&stub); 531 __ CallStub(&stub);
532 532
533 // Move result to edi and exit the internal frame. 533 // Move result to edi and exit the internal frame.
534 __ mov(Operand(edi), eax); 534 __ mov(Operand(edi), eax);
535 __ ExitFrame(StackFrame::INTERNAL); 535 __ ExitInternalFrame();
536 536
537 // Invoke the function. 537 // Invoke the function.
538 ParameterCount actual(argc); 538 ParameterCount actual(argc);
539 __ InvokeFunction(edi, actual, JUMP_FUNCTION); 539 __ InvokeFunction(edi, actual, JUMP_FUNCTION);
540 } 540 }
541 541
542 542
543 // Defined in ic.cc. 543 // Defined in ic.cc.
544 Object* LoadIC_Miss(Arguments args); 544 Object* LoadIC_Miss(Arguments args);
545 545
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 734
735 // Do tail-call to runtime routine. 735 // Do tail-call to runtime routine.
736 __ TailCallRuntime(f, 3); 736 __ TailCallRuntime(f, 3);
737 } 737 }
738 738
739 739
740 #undef __ 740 #undef __
741 741
742 742
743 } } // namespace v8::internal 743 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « 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