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 1570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1581 HHasCachedArrayIndexAndBranch* instr) { | 1581 HHasCachedArrayIndexAndBranch* instr) { |
1582 ASSERT(instr->value()->representation().IsTagged()); | 1582 ASSERT(instr->value()->representation().IsTagged()); |
1583 return new(zone()) LHasCachedArrayIndexAndBranch( | 1583 return new(zone()) LHasCachedArrayIndexAndBranch( |
1584 UseRegisterAtStart(instr->value())); | 1584 UseRegisterAtStart(instr->value())); |
1585 } | 1585 } |
1586 | 1586 |
1587 | 1587 |
1588 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( | 1588 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( |
1589 HClassOfTestAndBranch* instr) { | 1589 HClassOfTestAndBranch* instr) { |
1590 ASSERT(instr->value()->representation().IsTagged()); | 1590 ASSERT(instr->value()->representation().IsTagged()); |
1591 return new(zone()) LClassOfTestAndBranch(UseTempRegister(instr->value()), | 1591 return new(zone()) LClassOfTestAndBranch(UseRegister(instr->value()), |
1592 TempRegister(), | 1592 TempRegister(), |
1593 TempRegister()); | 1593 TempRegister()); |
1594 } | 1594 } |
1595 | 1595 |
1596 | 1596 |
1597 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { | 1597 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { |
1598 LOperand* array = UseRegisterAtStart(instr->value()); | 1598 LOperand* array = UseRegisterAtStart(instr->value()); |
1599 return DefineAsRegister(new(zone()) LJSArrayLength(array)); | 1599 return DefineAsRegister(new(zone()) LJSArrayLength(array)); |
1600 } | 1600 } |
1601 | 1601 |
1602 | 1602 |
1603 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( | 1603 LInstruction* LChunkBuilder::DoFixedArrayBaseLength( |
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2374 LOperand* key = UseOrConstantAtStart(instr->key()); | 2374 LOperand* key = UseOrConstantAtStart(instr->key()); |
2375 LOperand* object = UseOrConstantAtStart(instr->object()); | 2375 LOperand* object = UseOrConstantAtStart(instr->object()); |
2376 LIn* result = new(zone()) LIn(context, key, object); | 2376 LIn* result = new(zone()) LIn(context, key, object); |
2377 return MarkAsCall(DefineFixed(result, eax), instr); | 2377 return MarkAsCall(DefineFixed(result, eax), instr); |
2378 } | 2378 } |
2379 | 2379 |
2380 | 2380 |
2381 } } // namespace v8::internal | 2381 } } // namespace v8::internal |
2382 | 2382 |
2383 #endif // V8_TARGET_ARCH_IA32 | 2383 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |