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

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

Issue 15731008: MIPS: Don't explicitly pass requested representations to constants; implement ConstantS (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | src/mips/lithium-mips.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1493 ToRegister(left), 1493 ToRegister(left),
1494 ToRegister(right), 1494 ToRegister(right),
1495 overflow); // Reg at also used as scratch. 1495 overflow); // Reg at also used as scratch.
1496 } 1496 }
1497 DeoptimizeIf(lt, instr->environment(), overflow, Operand(zero_reg)); 1497 DeoptimizeIf(lt, instr->environment(), overflow, Operand(zero_reg));
1498 } 1498 }
1499 } 1499 }
1500 1500
1501 1501
1502 void LCodeGen::DoConstantI(LConstantI* instr) { 1502 void LCodeGen::DoConstantI(LConstantI* instr) {
1503 ASSERT(instr->result()->IsRegister());
1504 __ li(ToRegister(instr->result()), Operand(instr->value())); 1503 __ li(ToRegister(instr->result()), Operand(instr->value()));
1505 } 1504 }
1506 1505
1506
1507 void LCodeGen::DoConstantS(LConstantS* instr) {
1508 __ li(ToRegister(instr->result()), Operand(instr->value()));
1509 }
1510
1507 1511
1508 void LCodeGen::DoConstantD(LConstantD* instr) { 1512 void LCodeGen::DoConstantD(LConstantD* instr) {
1509 ASSERT(instr->result()->IsDoubleRegister()); 1513 ASSERT(instr->result()->IsDoubleRegister());
1510 DoubleRegister result = ToDoubleRegister(instr->result()); 1514 DoubleRegister result = ToDoubleRegister(instr->result());
1511 double v = instr->value(); 1515 double v = instr->value();
1512 __ Move(result, v); 1516 __ Move(result, v);
1513 } 1517 }
1514 1518
1515 1519
1516 void LCodeGen::DoConstantT(LConstantT* instr) { 1520 void LCodeGen::DoConstantT(LConstantT* instr) {
(...skipping 4247 matching lines...) Expand 10 before | Expand all | Expand 10 after
5764 __ Subu(scratch, result, scratch); 5768 __ Subu(scratch, result, scratch);
5765 __ lw(result, FieldMemOperand(scratch, 5769 __ lw(result, FieldMemOperand(scratch,
5766 FixedArray::kHeaderSize - kPointerSize)); 5770 FixedArray::kHeaderSize - kPointerSize));
5767 __ bind(&done); 5771 __ bind(&done);
5768 } 5772 }
5769 5773
5770 5774
5771 #undef __ 5775 #undef __
5772 5776
5773 } } // namespace v8::internal 5777 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698