OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |