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 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1522 HHasCachedArrayIndexAndBranch* instr) { | 1522 HHasCachedArrayIndexAndBranch* instr) { |
1523 ASSERT(instr->value()->representation().IsTagged()); | 1523 ASSERT(instr->value()->representation().IsTagged()); |
1524 return new LHasCachedArrayIndexAndBranch( | 1524 return new LHasCachedArrayIndexAndBranch( |
1525 UseRegisterAtStart(instr->value())); | 1525 UseRegisterAtStart(instr->value())); |
1526 } | 1526 } |
1527 | 1527 |
1528 | 1528 |
1529 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( | 1529 LInstruction* LChunkBuilder::DoClassOfTestAndBranch( |
1530 HClassOfTestAndBranch* instr) { | 1530 HClassOfTestAndBranch* instr) { |
1531 ASSERT(instr->value()->representation().IsTagged()); | 1531 ASSERT(instr->value()->representation().IsTagged()); |
1532 return new LClassOfTestAndBranch(UseTempRegister(instr->value()), | 1532 return new LClassOfTestAndBranch(UseRegister(instr->value()), |
1533 TempRegister()); | 1533 TempRegister()); |
1534 } | 1534 } |
1535 | 1535 |
1536 | 1536 |
1537 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { | 1537 LInstruction* LChunkBuilder::DoJSArrayLength(HJSArrayLength* instr) { |
1538 LOperand* array = UseRegisterAtStart(instr->value()); | 1538 LOperand* array = UseRegisterAtStart(instr->value()); |
1539 return DefineAsRegister(new LJSArrayLength(array)); | 1539 return DefineAsRegister(new LJSArrayLength(array)); |
1540 } | 1540 } |
1541 | 1541 |
1542 | 1542 |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2238 | 2238 |
2239 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | 2239 LInstruction* LChunkBuilder::DoIn(HIn* instr) { |
2240 LOperand* key = UseRegisterAtStart(instr->key()); | 2240 LOperand* key = UseRegisterAtStart(instr->key()); |
2241 LOperand* object = UseRegisterAtStart(instr->object()); | 2241 LOperand* object = UseRegisterAtStart(instr->object()); |
2242 LIn* result = new LIn(key, object); | 2242 LIn* result = new LIn(key, object); |
2243 return MarkAsCall(DefineFixed(result, r0), instr); | 2243 return MarkAsCall(DefineFixed(result, r0), instr); |
2244 } | 2244 } |
2245 | 2245 |
2246 | 2246 |
2247 } } // namespace v8::internal | 2247 } } // namespace v8::internal |
OLD | NEW |