Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/arm/lithium-arm.cc

Issue 150663005: Optimize redundant HCompareMap instructions with known successors. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/hydrogen-check-elimination.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-check-elimination.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698