| 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 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1850   return AssignEnvironment(Define(result, temp)); | 1850   return AssignEnvironment(Define(result, temp)); | 
| 1851 } | 1851 } | 
| 1852 | 1852 | 
| 1853 | 1853 | 
| 1854 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 1854 LInstruction* LChunkBuilder::DoCheckSmi(HCheckSmi* instr) { | 
| 1855   LOperand* value = UseAtStart(instr->value()); | 1855   LOperand* value = UseAtStart(instr->value()); | 
| 1856   return AssignEnvironment(new(zone()) LCheckSmi(value)); | 1856   return AssignEnvironment(new(zone()) LCheckSmi(value)); | 
| 1857 } | 1857 } | 
| 1858 | 1858 | 
| 1859 | 1859 | 
|  | 1860 LInstruction* LChunkBuilder::DoDeoptimizeIfTaggedIsNotSmi( | 
|  | 1861     HDeoptimizeIfTaggedIsNotSmi* instr) { | 
|  | 1862   LOperand* value = UseAtStart(instr->value()); | 
|  | 1863   return AssignEnvironment(new(zone()) LDeoptimizeIfTaggedIsNotSmi(value)); | 
|  | 1864 } | 
|  | 1865 | 
|  | 1866 | 
| 1860 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { | 1867 LInstruction* LChunkBuilder::DoCheckFunction(HCheckFunction* instr) { | 
| 1861   // If the target is in new space, we'll emit a global cell compare and so | 1868   // If the target is in new space, we'll emit a global cell compare and so | 
| 1862   // want the value in a register.  If the target gets promoted before we | 1869   // want the value in a register.  If the target gets promoted before we | 
| 1863   // emit code, we will still get the register but will do an immediate | 1870   // emit code, we will still get the register but will do an immediate | 
| 1864   // compare instead of the cell compare.  This is safe. | 1871   // compare instead of the cell compare.  This is safe. | 
| 1865   LOperand* value = instr->target_in_new_space() | 1872   LOperand* value = instr->target_in_new_space() | 
| 1866       ? UseRegisterAtStart(instr->value()) : UseAtStart(instr->value()); | 1873       ? UseRegisterAtStart(instr->value()) : UseAtStart(instr->value()); | 
| 1867   return AssignEnvironment(new(zone()) LCheckFunction(value)); | 1874   return AssignEnvironment(new(zone()) LCheckFunction(value)); | 
| 1868 } | 1875 } | 
| 1869 | 1876 | 
| (...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2540 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2547 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 
| 2541   LOperand* object = UseRegister(instr->object()); | 2548   LOperand* object = UseRegister(instr->object()); | 
| 2542   LOperand* index = UseTempRegister(instr->index()); | 2549   LOperand* index = UseTempRegister(instr->index()); | 
| 2543   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 2550   return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); | 
| 2544 } | 2551 } | 
| 2545 | 2552 | 
| 2546 | 2553 | 
| 2547 } }  // namespace v8::internal | 2554 } }  // namespace v8::internal | 
| 2548 | 2555 | 
| 2549 #endif  // V8_TARGET_ARCH_IA32 | 2556 #endif  // V8_TARGET_ARCH_IA32 | 
| OLD | NEW | 
|---|