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

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

Issue 12208013: Separated smi check from HBoundsCheck. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
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 1711 matching lines...) Expand 10 before | Expand all | Expand 10 after
1722 return AssignEnvironment(Define(result, temp1)); 1722 return AssignEnvironment(Define(result, temp1));
1723 } 1723 }
1724 1724
1725 1725
1726 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1726 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1727 LOperand* value = UseRegisterAtStart(instr->value()); 1727 LOperand* value = UseRegisterAtStart(instr->value());
1728 return AssignEnvironment(new(zone()) LCheckSmi(value)); 1728 return AssignEnvironment(new(zone()) LCheckSmi(value));
1729 } 1729 }
1730 1730
1731 1731
1732 LInstruction* LChunkBuilder::DoDeoptimizeIfTaggedIsNotSmi(
1733 HDeoptimizeIfTaggedIsNotSmi* instr) {
1734 LOperand* value = UseAtStart(instr->value());
1735 return AssignEnvironment(new(zone()) LDeoptimizeIfTaggedIsNotSmi(value));
1736 }
1737
1738
1732 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { 1739 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
1733 LOperand* value = UseRegisterAtStart(instr->value()); 1740 LOperand* value = UseRegisterAtStart(instr->value());
1734 return AssignEnvironment(new(zone()) LCheckFunction(value)); 1741 return AssignEnvironment(new(zone()) LCheckFunction(value));
1735 } 1742 }
1736 1743
1737 1744
1738 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { 1745 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
1739 LOperand* value = UseRegisterAtStart(instr->value()); 1746 LOperand* value = UseRegisterAtStart(instr->value());
1740 LInstruction* result = new(zone()) LCheckMaps(value); 1747 LInstruction* result = new(zone()) LCheckMaps(value);
1741 return AssignEnvironment(result); 1748 return AssignEnvironment(result);
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
2320 2327
2321 2328
2322 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2329 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2323 LOperand* object = UseRegister(instr->object()); 2330 LOperand* object = UseRegister(instr->object());
2324 LOperand* index = UseRegister(instr->index()); 2331 LOperand* index = UseRegister(instr->index());
2325 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2332 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2326 } 2333 }
2327 2334
2328 2335
2329 } } // namespace v8::internal 2336 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698