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

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

Issue 11573017: MIPS: Improve array to string conversion. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use SmiUntag & cleanup Created 8 years 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/mips/lithium-mips.h ('k') | 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 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 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
1524 1524
1525 1525
1526 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1526 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1527 LOperand* object = UseFixed(instr->value(), a0); 1527 LOperand* object = UseFixed(instr->value(), a0);
1528 LDateField* result = 1528 LDateField* result =
1529 new(zone()) LDateField(object, FixedTemp(a1), instr->index()); 1529 new(zone()) LDateField(object, FixedTemp(a1), instr->index());
1530 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY); 1530 return MarkAsCall(DefineFixed(result, v0), instr, CAN_DEOPTIMIZE_EAGERLY);
1531 } 1531 }
1532 1532
1533 1533
1534 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1535 LOperand* string = UseRegister(instr->string());
1536 LOperand* index = UseRegister(instr->index());
1537 LOperand* value = UseRegister(instr->value());
1538 LSeqStringSetChar* result =
1539 new(zone()) LSeqStringSetChar(instr->encoding(), string, index, value);
1540 return DefineAsRegister(result);
1541 }
1542
1543
1534 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1544 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1535 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); 1545 LOperand* value = UseRegisterOrConstantAtStart(instr->index());
1536 LOperand* length = UseRegister(instr->length()); 1546 LOperand* length = UseRegister(instr->length());
1537 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); 1547 return AssignEnvironment(new(zone()) LBoundsCheck(value, length));
1538 } 1548 }
1539 1549
1540 1550
1541 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1551 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1542 // The control instruction marking the end of a block that completed 1552 // The control instruction marking the end of a block that completed
1543 // abruptly (e.g., threw an exception). There is nothing specific to do. 1553 // abruptly (e.g., threw an exception). There is nothing specific to do.
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
2242 2252
2243 2253
2244 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2254 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2245 LOperand* object = UseRegister(instr->object()); 2255 LOperand* object = UseRegister(instr->object());
2246 LOperand* index = UseRegister(instr->index()); 2256 LOperand* index = UseRegister(instr->index());
2247 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2257 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2248 } 2258 }
2249 2259
2250 2260
2251 } } // namespace v8::internal 2261 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698