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

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

Issue 13620003: Remove extranous holder load in some prototype-chain checking cases (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 8 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 | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.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 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after
1926 LOperand* value = UseRegisterAtStart(instr->value()); 1926 LOperand* value = UseRegisterAtStart(instr->value());
1927 LInstruction* result = new(zone()) LCheckInstanceType(value); 1927 LInstruction* result = new(zone()) LCheckInstanceType(value);
1928 return AssignEnvironment(result); 1928 return AssignEnvironment(result);
1929 } 1929 }
1930 1930
1931 1931
1932 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { 1932 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) {
1933 LUnallocated* temp1 = TempRegister(); 1933 LUnallocated* temp1 = TempRegister();
1934 LOperand* temp2 = TempRegister(); 1934 LOperand* temp2 = TempRegister();
1935 LCheckPrototypeMaps* result = new(zone()) LCheckPrototypeMaps(temp1, temp2); 1935 LCheckPrototypeMaps* result = new(zone()) LCheckPrototypeMaps(temp1, temp2);
1936 return AssignEnvironment(Define(result, temp1)); 1936 return AssignEnvironment(result);
1937 } 1937 }
1938 1938
1939 1939
1940 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1940 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1941 LOperand* value = UseRegisterAtStart(instr->value()); 1941 LOperand* value = UseRegisterAtStart(instr->value());
1942 return AssignEnvironment(new(zone()) LCheckSmi(value)); 1942 return AssignEnvironment(new(zone()) LCheckSmi(value));
1943 } 1943 }
1944 1944
1945 1945
1946 LInstruction* LChunkBuilder::DoCheckSmiOrInt32(HCheckSmiOrInt32* instr) { 1946 LInstruction* LChunkBuilder::DoCheckSmiOrInt32(HCheckSmiOrInt32* instr) {
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
2565 2565
2566 2566
2567 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2567 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2568 LOperand* object = UseRegister(instr->object()); 2568 LOperand* object = UseRegister(instr->object());
2569 LOperand* index = UseRegister(instr->index()); 2569 LOperand* index = UseRegister(instr->index());
2570 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2570 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2571 } 2571 }
2572 2572
2573 2573
2574 } } // namespace v8::internal 2574 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.h ('k') | src/arm/lithium-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698