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

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

Issue 197763006: A64: Relax the register constraints for LSeqStringGetChar. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | src/a64/lithium-codegen-a64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1996 matching lines...) Expand 10 before | Expand all | Expand 10 after
2007 LOperand* context = info()->IsStub() 2007 LOperand* context = info()->IsStub()
2008 ? UseFixed(instr->context(), cp) 2008 ? UseFixed(instr->context(), cp)
2009 : NULL; 2009 : NULL;
2010 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); 2010 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count());
2011 return new(zone()) LReturn(UseFixed(instr->value(), x0), context, 2011 return new(zone()) LReturn(UseFixed(instr->value(), x0), context,
2012 parameter_count); 2012 parameter_count);
2013 } 2013 }
2014 2014
2015 2015
2016 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { 2016 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) {
2017 // TODO(all): Use UseRegisterAtStart and UseRegisterOrConstantAtStart here. 2017 LOperand* string = UseRegisterAtStart(instr->string());
2018 // We cannot do it now because the debug code in the implementation changes 2018 LOperand* index = UseRegisterOrConstantAtStart(instr->index());
2019 // temp.
2020 LOperand* string = UseRegister(instr->string());
2021 LOperand* index = UseRegisterOrConstant(instr->index());
2022 LOperand* temp = TempRegister(); 2019 LOperand* temp = TempRegister();
2023 LSeqStringGetChar* result = 2020 LSeqStringGetChar* result =
2024 new(zone()) LSeqStringGetChar(string, index, temp); 2021 new(zone()) LSeqStringGetChar(string, index, temp);
2025 return DefineAsRegister(result); 2022 return DefineAsRegister(result);
2026 } 2023 }
2027 2024
2028 2025
2029 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { 2026 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) {
2030 LOperand* string = UseRegister(instr->string()); 2027 LOperand* string = UseRegister(instr->string());
2031 LOperand* index = FLAG_debug_code 2028 LOperand* index = FLAG_debug_code
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
2563 2560
2564 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { 2561 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) {
2565 LOperand* receiver = UseRegister(instr->receiver()); 2562 LOperand* receiver = UseRegister(instr->receiver());
2566 LOperand* function = UseRegister(instr->function()); 2563 LOperand* function = UseRegister(instr->function());
2567 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); 2564 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function);
2568 return AssignEnvironment(DefineAsRegister(result)); 2565 return AssignEnvironment(DefineAsRegister(result));
2569 } 2566 }
2570 2567
2571 2568
2572 } } // namespace v8::internal 2569 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/a64/lithium-codegen-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698