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

Side by Side Diff: src/x64/lithium-codegen-x64.cc

Issue 12210108: Merged r13617, r13622 into trunk branch. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 7 years, 10 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/version.cc ('k') | test/mjsunit/regress/regress-crbug-173907.js » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 HConstant* constant = chunk_->LookupConstant(op); 457 HConstant* constant = chunk_->LookupConstant(op);
458 ASSERT(chunk_->LookupLiteralRepresentation(op).IsTagged()); 458 ASSERT(chunk_->LookupLiteralRepresentation(op).IsTagged());
459 return constant->handle(); 459 return constant->handle();
460 } 460 }
461 461
462 462
463 Operand LCodeGen::ToOperand(LOperand* op) const { 463 Operand LCodeGen::ToOperand(LOperand* op) const {
464 // Does not handle registers. In X64 assembler, plain registers are not 464 // Does not handle registers. In X64 assembler, plain registers are not
465 // representable as an Operand. 465 // representable as an Operand.
466 ASSERT(op->IsStackSlot() || op->IsDoubleStackSlot()); 466 ASSERT(op->IsStackSlot() || op->IsDoubleStackSlot());
467 int index = op->index(); 467 return Operand(rbp, StackSlotOffset(op->index()));
468 if (index >= 0) {
469 // Local or spill slot. Skip the frame pointer, function, and
470 // context in the fixed part of the frame.
471 return Operand(rbp, -(index + 3) * kPointerSize);
472 } else {
473 // Incoming parameter. Skip the return address.
474 return Operand(rbp, -(index - 1) * kPointerSize);
475 }
476 } 468 }
477 469
478 470
479 void LCodeGen::WriteTranslation(LEnvironment* environment, 471 void LCodeGen::WriteTranslation(LEnvironment* environment,
480 Translation* translation, 472 Translation* translation,
481 int* arguments_index, 473 int* arguments_index,
482 int* arguments_count) { 474 int* arguments_count) {
483 if (environment == NULL) return; 475 if (environment == NULL) return;
484 476
485 // The translation includes one command per value in the environment. 477 // The translation includes one command per value in the environment.
(...skipping 5256 matching lines...) Expand 10 before | Expand all | Expand 10 after
5742 FixedArray::kHeaderSize - kPointerSize)); 5734 FixedArray::kHeaderSize - kPointerSize));
5743 __ bind(&done); 5735 __ bind(&done);
5744 } 5736 }
5745 5737
5746 5738
5747 #undef __ 5739 #undef __
5748 5740
5749 } } // namespace v8::internal 5741 } } // namespace v8::internal
5750 5742
5751 #endif // V8_TARGET_ARCH_X64 5743 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/version.cc ('k') | test/mjsunit/regress/regress-crbug-173907.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698