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

Side by Side Diff: src/ia32/lithium-ia32.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 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after
1636 1636
1637 1637
1638 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) { 1638 LInstruction* LChunkBuilder::DoDateField(HDateField* instr) {
1639 LOperand* date = UseFixed(instr->value(), eax); 1639 LOperand* date = UseFixed(instr->value(), eax);
1640 LDateField* result = 1640 LDateField* result =
1641 new(zone()) LDateField(date, FixedTemp(ecx), instr->index()); 1641 new(zone()) LDateField(date, FixedTemp(ecx), instr->index());
1642 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY); 1642 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY);
1643 } 1643 }
1644 1644
1645 1645
1646 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1647 LOperand* string = UseRegister(instr->string());
1648 LOperand* index = UseRegister(instr->index());
1649 ASSERT(ecx.is_byte_register());
1650 LOperand* value = UseFixed(instr->value(), ecx);
1651 LSeqStringSetChar* result =
1652 new(zone()) LSeqStringSetChar(instr->is_one_byte(), string, index, value);
1653 return DefineSameAsFirst(result);
1654 }
1655
1656
1646 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1657 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1647 return AssignEnvironment(new(zone()) LBoundsCheck( 1658 return AssignEnvironment(new(zone()) LBoundsCheck(
1648 UseRegisterOrConstantAtStart(instr->index()), 1659 UseRegisterOrConstantAtStart(instr->index()),
1649 UseAtStart(instr->length()))); 1660 UseAtStart(instr->length())));
1650 } 1661 }
1651 1662
1652 1663
1653 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { 1664 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) {
1654 // The control instruction marking the end of a block that completed 1665 // The control instruction marking the end of a block that completed
1655 // abruptly (e.g., threw an exception). There is nothing specific to do. 1666 // abruptly (e.g., threw an exception). There is nothing specific to do.
(...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after
2425 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2436 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2426 LOperand* object = UseRegister(instr->object()); 2437 LOperand* object = UseRegister(instr->object());
2427 LOperand* index = UseTempRegister(instr->index()); 2438 LOperand* index = UseTempRegister(instr->index());
2428 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2439 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2429 } 2440 }
2430 2441
2431 2442
2432 } } // namespace v8::internal 2443 } } // namespace v8::internal
2433 2444
2434 #endif // V8_TARGET_ARCH_IA32 2445 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698