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

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

Issue 126198: X64 Implementation: Make codegen load literals and assign to local variables. (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
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/register-allocator-x64.cc » ('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 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
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
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
OLDNEW
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | src/x64/register-allocator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698