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 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1985 return AssignEnvironment(DefineAsRegister( | 1985 return AssignEnvironment(DefineAsRegister( |
1986 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); | 1986 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function())))); |
1987 } | 1987 } |
1988 | 1988 |
1989 | 1989 |
1990 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { | 1990 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { |
1991 return DefineAsRegister(new(zone()) LLoadRoot); | 1991 return DefineAsRegister(new(zone()) LLoadRoot); |
1992 } | 1992 } |
1993 | 1993 |
1994 | 1994 |
1995 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( | |
1996 HLoadExternalArrayPointer* instr) { | |
1997 LOperand* input = UseRegisterAtStart(instr->value()); | |
1998 return DefineAsRegister(new(zone()) LLoadExternalArrayPointer(input)); | |
1999 } | |
2000 | |
2001 | |
2002 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { | 1995 LInstruction* LChunkBuilder::DoLoadKeyed(HLoadKeyed* instr) { |
2003 ASSERT(instr->key()->representation().IsSmiOrInteger32()); | 1996 ASSERT(instr->key()->representation().IsSmiOrInteger32()); |
2004 ElementsKind elements_kind = instr->elements_kind(); | 1997 ElementsKind elements_kind = instr->elements_kind(); |
2005 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); | 1998 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); |
2006 LLoadKeyed* result = NULL; | 1999 LLoadKeyed* result = NULL; |
2007 | 2000 |
2008 if (!instr->is_typed_elements()) { | 2001 if (!instr->is_typed_elements()) { |
2009 LOperand* obj = NULL; | 2002 LOperand* obj = NULL; |
2010 if (instr->representation().IsDouble()) { | 2003 if (instr->representation().IsDouble()) { |
2011 obj = UseRegister(instr->elements()); | 2004 obj = UseRegister(instr->elements()); |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2435 | 2428 |
2436 | 2429 |
2437 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2430 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2438 LOperand* object = UseRegister(instr->object()); | 2431 LOperand* object = UseRegister(instr->object()); |
2439 LOperand* index = UseRegister(instr->index()); | 2432 LOperand* index = UseRegister(instr->index()); |
2440 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2433 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2441 } | 2434 } |
2442 | 2435 |
2443 | 2436 |
2444 } } // namespace v8::internal | 2437 } } // namespace v8::internal |
OLD | NEW |