OLD | NEW |
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 1982 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1993 return DefineAsRegister( | 1993 return DefineAsRegister( |
1994 new(zone()) LInteger32ToDouble(Use(instr->value()))); | 1994 new(zone()) LInteger32ToDouble(Use(instr->value()))); |
1995 } | 1995 } |
1996 } | 1996 } |
1997 } | 1997 } |
1998 UNREACHABLE(); | 1998 UNREACHABLE(); |
1999 return NULL; | 1999 return NULL; |
2000 } | 2000 } |
2001 | 2001 |
2002 | 2002 |
2003 LInstruction* LChunkBuilder::DoCheckNonSmi(HCheckNonSmi* instr) { | 2003 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { |
2004 LOperand* value = UseRegisterAtStart(instr->value()); | 2004 LOperand* value = UseRegisterAtStart(instr->value()); |
2005 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); | 2005 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); |
2006 } | 2006 } |
2007 | 2007 |
2008 | 2008 |
2009 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 2009 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
2010 LOperand* value = UseRegisterAtStart(instr->value()); | 2010 LOperand* value = UseRegisterAtStart(instr->value()); |
2011 LInstruction* result = new(zone()) LCheckInstanceType(value); | 2011 LInstruction* result = new(zone()) LCheckInstanceType(value); |
2012 return AssignEnvironment(result); | 2012 return AssignEnvironment(result); |
2013 } | 2013 } |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2636 | 2636 |
2637 | 2637 |
2638 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2638 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2639 LOperand* object = UseRegister(instr->object()); | 2639 LOperand* object = UseRegister(instr->object()); |
2640 LOperand* index = UseRegister(instr->index()); | 2640 LOperand* index = UseRegister(instr->index()); |
2641 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2641 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2642 } | 2642 } |
2643 | 2643 |
2644 | 2644 |
2645 } } // namespace v8::internal | 2645 } } // namespace v8::internal |
OLD | NEW |