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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 return AssignEnvironment(new(zone()) LBranch(UseRegister(value), temp)); | 1020 return AssignEnvironment(new(zone()) LBranch(UseRegister(value), temp)); |
1021 } | 1021 } |
1022 | 1022 |
1023 | 1023 |
1024 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { | 1024 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { |
1025 return new(zone()) LDebugBreak(); | 1025 return new(zone()) LDebugBreak(); |
1026 } | 1026 } |
1027 | 1027 |
1028 | 1028 |
1029 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { | 1029 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { |
| 1030 LInstruction* goto_instr = CheckElideControlInstruction(instr); |
| 1031 if (goto_instr != NULL) return goto_instr; |
| 1032 |
1030 ASSERT(instr->value()->representation().IsTagged()); | 1033 ASSERT(instr->value()->representation().IsTagged()); |
1031 LOperand* value = UseRegisterAtStart(instr->value()); | 1034 LOperand* value = UseRegisterAtStart(instr->value()); |
1032 return new(zone()) LCmpMapAndBranch(value); | 1035 return new(zone()) LCmpMapAndBranch(value); |
1033 } | 1036 } |
1034 | 1037 |
1035 | 1038 |
1036 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* length) { | 1039 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* length) { |
1037 info()->MarkAsRequiresFrame(); | 1040 info()->MarkAsRequiresFrame(); |
1038 return DefineAsRegister(new(zone()) LArgumentsLength(Use(length->value()))); | 1041 return DefineAsRegister(new(zone()) LArgumentsLength(Use(length->value()))); |
1039 } | 1042 } |
(...skipping 1539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2579 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2582 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2580 LOperand* object = UseRegister(instr->object()); | 2583 LOperand* object = UseRegister(instr->object()); |
2581 LOperand* index = UseTempRegister(instr->index()); | 2584 LOperand* index = UseTempRegister(instr->index()); |
2582 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2585 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); |
2583 } | 2586 } |
2584 | 2587 |
2585 | 2588 |
2586 } } // namespace v8::internal | 2589 } } // namespace v8::internal |
2587 | 2590 |
2588 #endif // V8_TARGET_ARCH_IA32 | 2591 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |