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

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

Issue 6362001: Fix accidental change to ia32 in r6329. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 return Immediate(static_cast<int32_t>(literal->Number())); 405 return Immediate(static_cast<int32_t>(literal->Number()));
406 } else if (r.IsDouble()) { 406 } else if (r.IsDouble()) {
407 Abort("unsupported double immediate"); 407 Abort("unsupported double immediate");
408 } 408 }
409 ASSERT(r.IsTagged()); 409 ASSERT(r.IsTagged());
410 return Immediate(literal); 410 return Immediate(literal);
411 } 411 }
412 412
413 413
414 Operand LCodeGen::ToOperand(LOperand* op) const { 414 Operand LCodeGen::ToOperand(LOperand* op) const {
415 ASSERT(!op->IsRegister()); 415 if (op->IsRegister()) return Operand(ToRegister(op));
416 ASSERT(!op->IsDoubleRegister()); 416 if (op->IsDoubleRegister()) return Operand(ToDoubleRegister(op));
417 ASSERT(op->IsStackSlot() || op->IsDoubleStackSlot()); 417 ASSERT(op->IsStackSlot() || op->IsDoubleStackSlot());
418 int index = op->index(); 418 int index = op->index();
419 if (index >= 0) { 419 if (index >= 0) {
420 // Local or spill slot. Skip the frame pointer, function, and 420 // Local or spill slot. Skip the frame pointer, function, and
421 // context in the fixed part of the frame. 421 // context in the fixed part of the frame.
422 return Operand(ebp, -(index + 3) * kPointerSize); 422 return Operand(ebp, -(index + 3) * kPointerSize);
423 } else { 423 } else {
424 // Incoming parameter. Skip the return address. 424 // Incoming parameter. Skip the return address.
425 return Operand(ebp, -(index - 1) * kPointerSize); 425 return Operand(ebp, -(index - 1) * kPointerSize);
426 } 426 }
(...skipping 3216 matching lines...) Expand 10 before | Expand all | Expand 10 after
3643 ASSERT(osr_pc_offset_ == -1); 3643 ASSERT(osr_pc_offset_ == -1);
3644 osr_pc_offset_ = masm()->pc_offset(); 3644 osr_pc_offset_ = masm()->pc_offset();
3645 } 3645 }
3646 3646
3647 3647
3648 #undef __ 3648 #undef __
3649 3649
3650 } } // namespace v8::internal 3650 } } // namespace v8::internal
3651 3651
3652 #endif // V8_TARGET_ARCH_IA32 3652 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698