OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 | 526 |
527 | 527 |
528 void MacroAssembler::InvokeFunction(Register function, | 528 void MacroAssembler::InvokeFunction(Register function, |
529 const ParameterCount& actual, | 529 const ParameterCount& actual, |
530 InvokeFlag flag) { | 530 InvokeFlag flag) { |
531 ASSERT(function.is(rdi)); | 531 ASSERT(function.is(rdi)); |
532 movq(rdx, FieldOperand(function, JSFunction::kSharedFunctionInfoOffset)); | 532 movq(rdx, FieldOperand(function, JSFunction::kSharedFunctionInfoOffset)); |
533 movq(rsi, FieldOperand(function, JSFunction::kContextOffset)); | 533 movq(rsi, FieldOperand(function, JSFunction::kContextOffset)); |
534 movl(rbx, FieldOperand(rdx, SharedFunctionInfo::kFormalParameterCountOffset)); | 534 movl(rbx, FieldOperand(rdx, SharedFunctionInfo::kFormalParameterCountOffset)); |
535 movq(rdx, FieldOperand(rdx, SharedFunctionInfo::kCodeOffset)); | 535 movq(rdx, FieldOperand(rdx, SharedFunctionInfo::kCodeOffset)); |
536 // Advances rdx to the end of the Code object headers, to the start of | 536 // Advances rdx to the end of the Code object header, to the start of |
537 // the executable code. | 537 // the executable code. |
538 lea(rdx, FieldOperand(rdx, Code::kHeaderSize)); | 538 lea(rdx, FieldOperand(rdx, Code::kHeaderSize)); |
539 | 539 |
540 ParameterCount expected(rbx); | 540 ParameterCount expected(rbx); |
541 InvokeCode(rdx, expected, actual, flag); | 541 InvokeCode(rdx, expected, actual, flag); |
542 } | 542 } |
543 | 543 |
544 | 544 |
545 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 545 void MacroAssembler::EnterFrame(StackFrame::Type type) { |
546 push(rbp); | 546 push(rbp); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 push(rcx); | 666 push(rcx); |
667 | 667 |
668 // Clear the top frame. | 668 // Clear the top frame. |
669 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address); | 669 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address); |
670 movq(kScratchRegister, c_entry_fp_address); | 670 movq(kScratchRegister, c_entry_fp_address); |
671 movq(Operand(kScratchRegister, 0), Immediate(0)); | 671 movq(Operand(kScratchRegister, 0), Immediate(0)); |
672 } | 672 } |
673 | 673 |
674 | 674 |
675 } } // namespace v8::internal | 675 } } // namespace v8::internal |
OLD | NEW |