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

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

Issue 11338030: Improve handling of property loads on the proto chain. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added unit test Created 8 years, 1 month 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/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.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 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after
1619 1619
1620 1620
1621 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { 1621 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) {
1622 LOperand* value = UseRegisterAtStart(instr->value()); 1622 LOperand* value = UseRegisterAtStart(instr->value());
1623 LInstruction* result = new(zone()) LCheckInstanceType(value); 1623 LInstruction* result = new(zone()) LCheckInstanceType(value);
1624 return AssignEnvironment(result); 1624 return AssignEnvironment(result);
1625 } 1625 }
1626 1626
1627 1627
1628 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) { 1628 LInstruction* LChunkBuilder::DoCheckPrototypeMaps(HCheckPrototypeMaps* instr) {
1629 LOperand* temp1 = TempRegister(); 1629 LUnallocated* temp1 = TempRegister();
1630 LOperand* temp2 = TempRegister(); 1630 LOperand* temp2 = TempRegister();
1631 LInstruction* result = new(zone()) LCheckPrototypeMaps(temp1, temp2); 1631 LCheckPrototypeMaps* result = new(zone()) LCheckPrototypeMaps(temp1, temp2);
1632 return AssignEnvironment(result); 1632 return AssignEnvironment(Define(result, temp1));
1633 } 1633 }
1634 1634
1635 1635
1636 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1636 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1637 LOperand* value = UseRegisterAtStart(instr->value()); 1637 LOperand* value = UseRegisterAtStart(instr->value());
1638 return AssignEnvironment(new(zone()) LCheckSmi(value)); 1638 return AssignEnvironment(new(zone()) LCheckSmi(value));
1639 } 1639 }
1640 1640
1641 1641
1642 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { 1642 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
2244 2244
2245 2245
2246 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2246 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2247 LOperand* object = UseRegister(instr->object()); 2247 LOperand* object = UseRegister(instr->object());
2248 LOperand* index = UseRegister(instr->index()); 2248 LOperand* index = UseRegister(instr->index());
2249 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2249 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2250 } 2250 }
2251 2251
2252 2252
2253 } } // namespace v8::internal 2253 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698