OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1484 | 1484 |
1485 | 1485 |
1486 LInstruction* LChunkBuilder::DoHasInstanceType(HHasInstanceType* instr) { | 1486 LInstruction* LChunkBuilder::DoHasInstanceType(HHasInstanceType* instr) { |
1487 ASSERT(instr->value()->representation().IsTagged()); | 1487 ASSERT(instr->value()->representation().IsTagged()); |
1488 LOperand* value = UseRegisterAtStart(instr->value()); | 1488 LOperand* value = UseRegisterAtStart(instr->value()); |
1489 | 1489 |
1490 return DefineAsRegister(new LHasInstanceType(value)); | 1490 return DefineAsRegister(new LHasInstanceType(value)); |
1491 } | 1491 } |
1492 | 1492 |
1493 | 1493 |
| 1494 LInstruction* LChunkBuilder::DoGetCachedArrayIndex( |
| 1495 HGetCachedArrayIndex* instr) { |
| 1496 ASSERT(instr->value()->representation().IsTagged()); |
| 1497 LOperand* value = UseRegister(instr->value()); |
| 1498 |
| 1499 return DefineAsRegister(new LGetCachedArrayIndex(value)); |
| 1500 } |
| 1501 |
| 1502 |
1494 LInstruction* LChunkBuilder::DoHasCachedArrayIndex( | 1503 LInstruction* LChunkBuilder::DoHasCachedArrayIndex( |
1495 HHasCachedArrayIndex* instr) { | 1504 HHasCachedArrayIndex* instr) { |
1496 ASSERT(instr->value()->representation().IsTagged()); | 1505 ASSERT(instr->value()->representation().IsTagged()); |
1497 LOperand* value = UseRegister(instr->value()); | 1506 LOperand* value = UseRegister(instr->value()); |
1498 | 1507 |
1499 return DefineAsRegister(new LHasCachedArrayIndex(value)); | 1508 return DefineAsRegister(new LHasCachedArrayIndex(value)); |
1500 } | 1509 } |
1501 | 1510 |
1502 | 1511 |
1503 LInstruction* LChunkBuilder::DoClassOfTest(HClassOfTest* instr) { | 1512 LInstruction* LChunkBuilder::DoClassOfTest(HClassOfTest* instr) { |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1985 | 1994 |
1986 | 1995 |
1987 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1996 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
1988 HEnvironment* outer = current_block_->last_environment()->outer(); | 1997 HEnvironment* outer = current_block_->last_environment()->outer(); |
1989 current_block_->UpdateEnvironment(outer); | 1998 current_block_->UpdateEnvironment(outer); |
1990 return NULL; | 1999 return NULL; |
1991 } | 2000 } |
1992 | 2001 |
1993 | 2002 |
1994 } } // namespace v8::internal | 2003 } } // namespace v8::internal |
OLD | NEW |