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 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1991 return NULL; | 1991 return NULL; |
1992 } | 1992 } |
1993 | 1993 |
1994 | 1994 |
1995 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { | 1995 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { |
1996 LOperand* value = UseRegisterAtStart(instr->value()); | 1996 LOperand* value = UseRegisterAtStart(instr->value()); |
1997 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); | 1997 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); |
1998 } | 1998 } |
1999 | 1999 |
2000 | 2000 |
2001 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | |
2002 LOperand* value = UseRegisterAtStart(instr->value()); | |
2003 return AssignEnvironment(new(zone()) LCheckSmi(value)); | |
2004 } | |
2005 | |
2006 | |
2007 LInstruction* LChunkBuilder::DoIsNumberAndBranch(HIsNumberAndBranch* instr) { | |
2008 return new(zone()) | |
2009 LIsNumberAndBranch(UseRegisterOrConstantAtStart(instr->value())); | |
2010 } | |
2011 | |
2012 | |
2013 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 2001 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
2014 LOperand* value = UseRegisterAtStart(instr->value()); | 2002 LOperand* value = UseRegisterAtStart(instr->value()); |
2015 LInstruction* result = new(zone()) LCheckInstanceType(value); | 2003 LInstruction* result = new(zone()) LCheckInstanceType(value); |
2016 return AssignEnvironment(result); | 2004 return AssignEnvironment(result); |
2017 } | 2005 } |
2018 | 2006 |
2019 | 2007 |
2020 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { | 2008 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { |
2021 LUnallocated* temp1 = TempRegister(); | 2009 LUnallocated* temp1 = TempRegister(); |
2022 LOperand* temp2 = TempRegister(); | 2010 LOperand* temp2 = TempRegister(); |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2640 | 2628 |
2641 | 2629 |
2642 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2630 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2643 LOperand* object = UseRegister(instr->object()); | 2631 LOperand* object = UseRegister(instr->object()); |
2644 LOperand* index = UseRegister(instr->index()); | 2632 LOperand* index = UseRegister(instr->index()); |
2645 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2633 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2646 } | 2634 } |
2647 | 2635 |
2648 | 2636 |
2649 } } // namespace v8::internal | 2637 } } // namespace v8::internal |
OLD | NEW |