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

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

Issue 7477045: Tentative implementation of string slices (hidden under the flag --string-slices). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: A few changes after short review by antonm. Created 9 years, 5 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1990 matching lines...) Expand 10 before | Expand all | Expand 10 after
2001 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) { 2001 LInstruction* LChunkBuilder::DoStringAdd(HStringAdd* instr) {
2002 LOperand* left = UseRegisterAtStart(instr->left()); 2002 LOperand* left = UseRegisterAtStart(instr->left());
2003 LOperand* right = UseRegisterAtStart(instr->right()); 2003 LOperand* right = UseRegisterAtStart(instr->right());
2004 return MarkAsCall(DefineFixed(new LStringAdd(left, right), r0), instr); 2004 return MarkAsCall(DefineFixed(new LStringAdd(left, right), r0), instr);
2005 } 2005 }
2006 2006
2007 2007
2008 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { 2008 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) {
2009 LOperand* string = UseRegister(instr->string()); 2009 LOperand* string = UseRegister(instr->string());
2010 LOperand* index = UseRegisterOrConstant(instr->index()); 2010 LOperand* index = UseRegisterOrConstant(instr->index());
2011 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); 2011 LOperand* temp = TempRegister();
2012 LStringCharCodeAt* result = new LStringCharCodeAt(string, index, temp);
2012 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); 2013 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result)));
2013 } 2014 }
2014 2015
2015 2016
2016 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { 2017 LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) {
2017 LOperand* char_code = UseRegister(instr->value()); 2018 LOperand* char_code = UseRegister(instr->value());
2018 LStringCharFromCode* result = new LStringCharFromCode(char_code); 2019 LStringCharFromCode* result = new LStringCharFromCode(char_code);
2019 return AssignPointerMap(DefineAsRegister(result)); 2020 return AssignPointerMap(DefineAsRegister(result));
2020 } 2021 }
2021 2022
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
2188 2189
2189 LInstruction* LChunkBuilder::DoIn(HIn* instr) { 2190 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2190 LOperand* key = UseRegisterAtStart(instr->key()); 2191 LOperand* key = UseRegisterAtStart(instr->key());
2191 LOperand* object = UseRegisterAtStart(instr->object()); 2192 LOperand* object = UseRegisterAtStart(instr->object());
2192 LIn* result = new LIn(key, object); 2193 LIn* result = new LIn(key, object);
2193 return MarkAsCall(DefineFixed(result, r0), instr); 2194 return MarkAsCall(DefineFixed(result, r0), instr);
2194 } 2195 }
2195 2196
2196 2197
2197 } } // namespace v8::internal 2198 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698