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