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

Side by Side Diff: src/x64/macro-assembler-x64.cc

Issue 125131: X64 platform: Add more register allocator functions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 6 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 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 bind(&done); 524 bind(&done);
525 } 525 }
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 movq(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
Kevin Millikin (Chromium) 2009/06/16 08:27:03 headers ==> header
537 // the executable code.
536 lea(rdx, FieldOperand(rdx, Code::kHeaderSize)); 538 lea(rdx, FieldOperand(rdx, Code::kHeaderSize));
537 539
538 ParameterCount expected(rbx); 540 ParameterCount expected(rbx);
539 InvokeCode(rdx, expected, actual, flag); 541 InvokeCode(rdx, expected, actual, flag);
540 } 542 }
541 543
542 544
543 void MacroAssembler::EnterFrame(StackFrame::Type type) { 545 void MacroAssembler::EnterFrame(StackFrame::Type type) {
544 push(rbp); 546 push(rbp);
545 movq(rbp, rsp); 547 movq(rbp, rsp);
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 push(rcx); 666 push(rcx);
665 667
666 // Clear the top frame. 668 // Clear the top frame.
667 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address); 669 ExternalReference c_entry_fp_address(Top::k_c_entry_fp_address);
668 movq(kScratchRegister, c_entry_fp_address); 670 movq(kScratchRegister, c_entry_fp_address);
669 movq(Operand(kScratchRegister, 0), Immediate(0)); 671 movq(Operand(kScratchRegister, 0), Immediate(0));
670 } 672 }
671 673
672 674
673 } } // namespace v8::internal 675 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698