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

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

Issue 11348349: Improve array to string conversion. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 1639
1640 1640
1641 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1641 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1642 LOperand* object = UseFixed(instr->value(), r0); 1642 LOperand* object = UseFixed(instr->value(), r0);
1643 LDateField* result = 1643 LDateField* result =
1644 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); 1644 new(zone()) LDateField(object, FixedTemp(r1), instr->index());
1645 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); 1645 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY);
1646 } 1646 }
1647 1647
1648 1648
1649 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1650 LOperand* string = UseRegister(instr->string());
1651 LOperand* index = UseRegister(instr->index());
1652 LOperand* value = UseRegister(instr->value());
1653 LSeqStringSetChar* result =
1654 new(zone()) LSeqStringSetChar(instr->is_one_byte(), string, index, value);
1655 return DefineAsRegister(result);
1656 }
1657
1658
1649 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1659 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1650 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); 1660 LOperand* value = UseRegisterOrConstantAtStart(instr->index());
1651 LOperand* length = UseRegister(instr->length()); 1661 LOperand* length = UseRegister(instr->length());
1652 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); 1662 return AssignEnvironment(new(zone()) LBoundsCheck(value, length));
1653 } 1663 }
1654 1664
1655 1665
1656 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1666 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1657 // The control instruction marking the end of a block that completed 1667 // The control instruction marking the end of a block that completed
1658 // abruptly (e.g., threw an exception). There is nothing specific to do. 1668 // abruptly (e.g., threw an exception). There is nothing specific to do.
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
2355 2365
2356 2366
2357 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2367 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2358 LOperand* object = UseRegister(instr->object()); 2368 LOperand* object = UseRegister(instr->object());
2359 LOperand* index = UseRegister(instr->index()); 2369 LOperand* index = UseRegister(instr->index());
2360 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2370 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2361 } 2371 }
2362 2372
2363 2373
2364 } } // namespace v8::internal 2374 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698