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

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

Issue 57383004: Improve implementation of HSeqStringSetChar. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Increase GVNFlags to 64bit. Add StringChars flag. Created 7 years, 1 month 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 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after
1881 LDateField* result = 1881 LDateField* result =
1882 new(zone()) LDateField(object, FixedTemp(r1), instr->index()); 1882 new(zone()) LDateField(object, FixedTemp(r1), instr->index());
1883 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); 1883 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY);
1884 } 1884 }
1885 1885
1886 1886
1887 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 1887 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
1888 LOperand* string = UseRegister(instr->string()); 1888 LOperand* string = UseRegister(instr->string());
1889 LOperand* index = UseRegisterOrConstant(instr->index()); 1889 LOperand* index = UseRegisterOrConstant(instr->index());
1890 LOperand* value = UseRegister(instr->value()); 1890 LOperand* value = UseRegister(instr->value());
1891 return new(zone()) LSeqStringSetChar(instr->encoding(), string, index, value); 1891 return new(zone()) LSeqStringSetChar(string, index, value);
1892 } 1892 }
1893 1893
1894 1894
1895 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { 1895 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) {
1896 LOperand* value = UseRegisterOrConstantAtStart(instr->index()); 1896 LOperand* value = UseRegisterOrConstantAtStart(instr->index());
1897 LOperand* length = UseRegister(instr->length()); 1897 LOperand* length = UseRegister(instr->length());
1898 return AssignEnvironment(new(zone()) LBoundsCheck(value, length)); 1898 return AssignEnvironment(new(zone()) LBoundsCheck(value, length));
1899 } 1899 }
1900 1900
1901 1901
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after
2659 2659
2660 2660
2661 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2661 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2662 LOperand* object = UseRegister(instr->object()); 2662 LOperand* object = UseRegister(instr->object());
2663 LOperand* index = UseRegister(instr->index()); 2663 LOperand* index = UseRegister(instr->index());
2664 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2664 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2665 } 2665 }
2666 2666
2667 2667
2668 } } // namespace v8::internal 2668 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.h » ('j') | src/ia32/lithium-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698