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

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

Issue 153993011: A64: Port LSeqStringGetChar. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: whitespace Created 6 years, 10 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1992 } 1992 }
1993 1993
1994 1994
1995 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { 1995 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) {
1996 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); 1996 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count());
1997 return new(zone()) LReturn(UseFixed(instr->value(), x0), parameter_count); 1997 return new(zone()) LReturn(UseFixed(instr->value(), x0), parameter_count);
1998 } 1998 }
1999 1999
2000 2000
2001 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 2001 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
2002 Abort(kUnimplemented); 2002 LOperand* string = UseRegisterAtStart(instr->string());
2003 return NULL; 2003 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
2004 LOperand* temp = TempRegister();
2005 LSeqStringGetChar* result =
2006 new(zone()) LSeqStringGetChar(string, index, temp);
2007 return DefineAsRegister(result);
2004 } 2008 }
2005 2009
2006 2010
2007 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 2011 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
2008 LOperand* string = UseRegister(instr->string()); 2012 LOperand* string = UseRegister(instr->string());
2009 LOperand* index = UseRegister(instr->index()); 2013 LOperand* index = UseRegister(instr->index());
2010 LOperand* value = UseRegister(instr->value()); 2014 LOperand* value = UseRegister(instr->value());
2011 LOperand* temp = TempRegister(); 2015 LOperand* temp = TempRegister();
2012 LSeqStringSetChar* result = 2016 LSeqStringSetChar* result =
2013 new(zone()) LSeqStringSetChar(instr->encoding(), 2017 new(zone()) LSeqStringSetChar(instr->encoding(),
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after
2568 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2572 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2569 LOperand* receiver = UseRegister(instr->receiver()); 2573 LOperand* receiver = UseRegister(instr->receiver());
2570 LOperand* function = UseRegisterAtStart(instr->function()); 2574 LOperand* function = UseRegisterAtStart(instr->function());
2571 LOperand* temp = TempRegister(); 2575 LOperand* temp = TempRegister();
2572 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); 2576 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp);
2573 return AssignEnvironment(DefineAsRegister(result)); 2577 return AssignEnvironment(DefineAsRegister(result));
2574 } 2578 }
2575 2579
2576 2580
2577 } } // namespace v8::internal 2581 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698