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

Side by Side Diff: src/arm/lithium-arm.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 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after
1817 return AssignEnvironment(Define(result, temp1)); 1817 return AssignEnvironment(Define(result, temp1));
1818 } 1818 }
1819 1819
1820 1820
1821 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { 1821 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) {
1822 LOperand* value = UseRegisterAtStart(instr->value()); 1822 LOperand* value = UseRegisterAtStart(instr->value());
1823 return AssignEnvironment(new(zone()) LCheckSmi(value)); 1823 return AssignEnvironment(new(zone()) LCheckSmi(value));
1824 } 1824 }
1825 1825
1826 1826
1827 LInstruction* LChunkBuilder::DoDeoptimizeIfTaggedIsNotSmi(
1828 HDeoptimizeIfTaggedIsNotSmi* instr) {
1829 LOperand* value = UseAtStart(instr->value());
1830 return AssignEnvironment(new(zone()) LDeoptimizeIfTaggedIsNotSmi(value));
1831 }
1832
1833
1827 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { 1834 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) {
1828 LOperand* value = UseRegisterAtStart(instr->value()); 1835 LOperand* value = UseRegisterAtStart(instr->value());
1829 return AssignEnvironment(new(zone()) LCheckFunction(value)); 1836 return AssignEnvironment(new(zone()) LCheckFunction(value));
1830 } 1837 }
1831 1838
1832 1839
1833 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) { 1840 LInstruction* LChunkBuilder::DoCheckMaps(HCheckMaps* instr) {
1834 LOperand* value = UseRegisterAtStart(instr->value()); 1841 LOperand* value = UseRegisterAtStart(instr->value());
1835 LInstruction* result = new(zone()) LCheckMaps(value); 1842 LInstruction* result = new(zone()) LCheckMaps(value);
1836 return AssignEnvironment(result); 1843 return AssignEnvironment(result);
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after
2438 2445
2439 2446
2440 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2447 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2441 LOperand* object = UseRegister(instr->object()); 2448 LOperand* object = UseRegister(instr->object());
2442 LOperand* index = UseRegister(instr->index()); 2449 LOperand* index = UseRegister(instr->index());
2443 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); 2450 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index));
2444 } 2451 }
2445 2452
2446 2453
2447 } } // namespace v8::internal 2454 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698