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 1979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 | 1990 |
1991 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 1991 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |
1992 Representation r = instr->representation(); | 1992 Representation r = instr->representation(); |
1993 if (r.IsSmi()) { | 1993 if (r.IsSmi()) { |
1994 return DefineAsRegister(new(zone()) LConstantS); | 1994 return DefineAsRegister(new(zone()) LConstantS); |
1995 } else if (r.IsInteger32()) { | 1995 } else if (r.IsInteger32()) { |
1996 return DefineAsRegister(new(zone()) LConstantI); | 1996 return DefineAsRegister(new(zone()) LConstantI); |
1997 } else if (r.IsDouble()) { | 1997 } else if (r.IsDouble()) { |
1998 LOperand* temp = TempRegister(); | 1998 LOperand* temp = TempRegister(); |
1999 return DefineAsRegister(new(zone()) LConstantD(temp)); | 1999 return DefineAsRegister(new(zone()) LConstantD(temp)); |
| 2000 } else if (r.IsExternal()) { |
| 2001 return DefineAsRegister(new(zone()) LConstantE); |
2000 } else if (r.IsTagged()) { | 2002 } else if (r.IsTagged()) { |
2001 return DefineAsRegister(new(zone()) LConstantT); | 2003 return DefineAsRegister(new(zone()) LConstantT); |
2002 } else { | 2004 } else { |
2003 UNREACHABLE(); | 2005 UNREACHABLE(); |
2004 return NULL; | 2006 return NULL; |
2005 } | 2007 } |
2006 } | 2008 } |
2007 | 2009 |
2008 | 2010 |
2009 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { | 2011 LInstruction* LChunkBuilder::DoLoadGlobalCell(HLoadGlobalCell* instr) { |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2575 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2577 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2576 LOperand* object = UseRegister(instr->object()); | 2578 LOperand* object = UseRegister(instr->object()); |
2577 LOperand* index = UseTempRegister(instr->index()); | 2579 LOperand* index = UseTempRegister(instr->index()); |
2578 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2580 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2579 } | 2581 } |
2580 | 2582 |
2581 | 2583 |
2582 } } // namespace v8::internal | 2584 } } // namespace v8::internal |
2583 | 2585 |
2584 #endif // V8_TARGET_ARCH_X64 | 2586 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |