| OLD | NEW |
| 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 1987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1998 } | 1998 } |
| 1999 | 1999 |
| 2000 | 2000 |
| 2001 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 2001 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
| 2002 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 2002 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
| 2003 return new(zone()) LReturn(UseFixed(instr->value(), x0), parameter_count); | 2003 return new(zone()) LReturn(UseFixed(instr->value(), x0), parameter_count); |
| 2004 } | 2004 } |
| 2005 | 2005 |
| 2006 | 2006 |
| 2007 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { | 2007 LInstruction* LChunkBuilder::DoSeqStringGetChar(HSeqStringGetChar* instr) { |
| 2008 Abort(kUnimplemented); | 2008 // TODO(all): Use UseRegisterAtStart and UseRegisterOrConstantAtStart here. |
| 2009 return NULL; | 2009 // We cannot do it now because the debug code in the implementation changes |
| 2010 // temp. |
| 2011 LOperand* string = UseRegister(instr->string()); |
| 2012 LOperand* index = UseRegisterOrConstant(instr->index()); |
| 2013 LOperand* temp = TempRegister(); |
| 2014 LSeqStringGetChar* result = |
| 2015 new(zone()) LSeqStringGetChar(string, index, temp); |
| 2016 return DefineAsRegister(result); |
| 2010 } | 2017 } |
| 2011 | 2018 |
| 2012 | 2019 |
| 2013 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { | 2020 LInstruction* LChunkBuilder::DoSeqStringSetChar(HSeqStringSetChar* instr) { |
| 2014 LOperand* string = UseRegister(instr->string()); | 2021 LOperand* string = UseRegister(instr->string()); |
| 2015 LOperand* index = UseRegister(instr->index()); | 2022 LOperand* index = UseRegister(instr->index()); |
| 2016 LOperand* value = UseRegister(instr->value()); | 2023 LOperand* value = UseRegister(instr->value()); |
| 2017 LOperand* temp = TempRegister(); | 2024 LOperand* temp = TempRegister(); |
| 2018 LSeqStringSetChar* result = | 2025 LSeqStringSetChar* result = |
| 2019 new(zone()) LSeqStringSetChar(instr->encoding(), | 2026 new(zone()) LSeqStringSetChar(instr->encoding(), |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2574 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2581 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2575 LOperand* receiver = UseRegister(instr->receiver()); | 2582 LOperand* receiver = UseRegister(instr->receiver()); |
| 2576 LOperand* function = UseRegisterAtStart(instr->function()); | 2583 LOperand* function = UseRegisterAtStart(instr->function()); |
| 2577 LOperand* temp = TempRegister(); | 2584 LOperand* temp = TempRegister(); |
| 2578 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); | 2585 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function, temp); |
| 2579 return AssignEnvironment(DefineAsRegister(result)); | 2586 return AssignEnvironment(DefineAsRegister(result)); |
| 2580 } | 2587 } |
| 2581 | 2588 |
| 2582 | 2589 |
| 2583 } } // namespace v8::internal | 2590 } } // namespace v8::internal |
| OLD | NEW |