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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 return result; | 935 return result; |
936 } | 936 } |
937 | 937 |
938 | 938 |
939 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { | 939 LInstruction* LChunkBuilder::DoDebugBreak(HDebugBreak* instr) { |
940 return new(zone()) LDebugBreak(); | 940 return new(zone()) LDebugBreak(); |
941 } | 941 } |
942 | 942 |
943 | 943 |
944 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { | 944 LInstruction* LChunkBuilder::DoCompareMap(HCompareMap* instr) { |
| 945 LInstruction* goto_instr = CheckElideControlInstruction(instr); |
| 946 if (goto_instr != NULL) return goto_instr; |
| 947 |
945 ASSERT(instr->value()->representation().IsTagged()); | 948 ASSERT(instr->value()->representation().IsTagged()); |
946 LOperand* value = UseRegisterAtStart(instr->value()); | 949 LOperand* value = UseRegisterAtStart(instr->value()); |
947 LOperand* temp = TempRegister(); | 950 LOperand* temp = TempRegister(); |
948 return new(zone()) LCmpMapAndBranch(value, temp); | 951 return new(zone()) LCmpMapAndBranch(value, temp); |
949 } | 952 } |
950 | 953 |
951 | 954 |
952 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* instr) { | 955 LInstruction* LChunkBuilder::DoArgumentsLength(HArgumentsLength* instr) { |
953 info()->MarkAsRequiresFrame(); | 956 info()->MarkAsRequiresFrame(); |
954 LOperand* value = UseRegister(instr->value()); | 957 LOperand* value = UseRegister(instr->value()); |
(...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2466 } | 2469 } |
2467 | 2470 |
2468 | 2471 |
2469 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2472 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
2470 LOperand* object = UseRegister(instr->object()); | 2473 LOperand* object = UseRegister(instr->object()); |
2471 LOperand* index = UseRegister(instr->index()); | 2474 LOperand* index = UseRegister(instr->index()); |
2472 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2475 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
2473 } | 2476 } |
2474 | 2477 |
2475 } } // namespace v8::internal | 2478 } } // namespace v8::internal |
OLD | NEW |