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