| 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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { | 992 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |
| 993 return new(zone()) LGoto(instr->FirstSuccessor()->block_id()); | 993 return new(zone()) LGoto(instr->FirstSuccessor()->block_id()); |
| 994 } | 994 } |
| 995 | 995 |
| 996 | 996 |
| 997 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { | 997 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { |
| 998 return new(zone()) LDebugBreak(); | 998 return new(zone()) LDebugBreak(); |
| 999 } | 999 } |
| 1000 | 1000 |
| 1001 | 1001 |
| 1002 LInstruction* LChunkBuilder::DoAndBranch(HAndBranch* instr) { |
| 1003 return new(zone()) LAndBranch(UseRegister(instr->value()), |
| 1004 instr->op()); |
| 1005 } |
| 1006 |
| 1007 |
| 1002 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { | 1008 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { |
| 1003 HValue* value = instr->value(); | 1009 HValue* value = instr->value(); |
| 1004 if (value->EmitAtUses()) { | 1010 if (value->EmitAtUses()) { |
| 1005 ASSERT(value->IsConstant()); | 1011 ASSERT(value->IsConstant()); |
| 1006 ASSERT(!value->representation().IsDouble()); | 1012 ASSERT(!value->representation().IsDouble()); |
| 1007 HBasicBlock* successor = HConstant::cast(value)->BooleanValue() | 1013 HBasicBlock* successor = HConstant::cast(value)->BooleanValue() |
| 1008 ? instr->FirstSuccessor() | 1014 ? instr->FirstSuccessor() |
| 1009 : instr->SecondSuccessor(); | 1015 : instr->SecondSuccessor(); |
| 1010 return new(zone()) LGoto(successor->block_id()); | 1016 return new(zone()) LGoto(successor->block_id()); |
| 1011 } | 1017 } |
| (...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2524 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2530 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2525 LOperand* object = UseRegister(instr->object()); | 2531 LOperand* object = UseRegister(instr->object()); |
| 2526 LOperand* index = UseTempRegister(instr->index()); | 2532 LOperand* index = UseTempRegister(instr->index()); |
| 2527 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2533 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
| 2528 } | 2534 } |
| 2529 | 2535 |
| 2530 | 2536 |
| 2531 } } // namespace v8::internal | 2537 } } // namespace v8::internal |
| 2532 | 2538 |
| 2533 #endif // V8_TARGET_ARCH_X64 | 2539 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |