| OLD | NEW |
| 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 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1906 } | 1906 } |
| 1907 } | 1907 } |
| 1908 } | 1908 } |
| 1909 UNREACHABLE(); | 1909 UNREACHABLE(); |
| 1910 return NULL; | 1910 return NULL; |
| 1911 } | 1911 } |
| 1912 | 1912 |
| 1913 | 1913 |
| 1914 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { | 1914 LInstruction* LChunkBuilder::DoCheckHeapObject(HCheckHeapObject* instr) { |
| 1915 LOperand* value = UseRegisterAtStart(instr->value()); | 1915 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1916 return AssignEnvironment(new(zone()) LCheckNonSmi(value)); | 1916 LInstruction* result = new(zone()) LCheckNonSmi(value); |
| 1917 if (!instr->value()->IsHeapObject()) result = AssignEnvironment(result); |
| 1918 return result; |
| 1917 } | 1919 } |
| 1918 | 1920 |
| 1919 | 1921 |
| 1920 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 1922 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { |
| 1921 LOperand* value = UseRegisterAtStart(instr->value()); | 1923 LOperand* value = UseRegisterAtStart(instr->value()); |
| 1922 return AssignEnvironment(new(zone()) LCheckSmi(value)); | 1924 return AssignEnvironment(new(zone()) LCheckSmi(value)); |
| 1923 } | 1925 } |
| 1924 | 1926 |
| 1925 | 1927 |
| 1926 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { | 1928 LInstruction* LChunkBuilder::DoCheckInstanceType(HCheckInstanceType* instr) { |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2521 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2523 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2522 LOperand* object = UseRegister(instr->object()); | 2524 LOperand* object = UseRegister(instr->object()); |
| 2523 LOperand* index = UseRegister(instr->index()); | 2525 LOperand* index = UseRegister(instr->index()); |
| 2524 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2526 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2525 LInstruction* result = DefineSameAsFirst(load); | 2527 LInstruction* result = DefineSameAsFirst(load); |
| 2526 return AssignPointerMap(result); | 2528 return AssignPointerMap(result); |
| 2527 } | 2529 } |
| 2528 | 2530 |
| 2529 | 2531 |
| 2530 } } // namespace v8::internal | 2532 } } // namespace v8::internal |
| OLD | NEW |