| OLD | NEW | 
|     1 // Copyright 2011 the V8 project authors. All rights reserved. |     1 // Copyright 2011 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 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1665  |  1665  | 
|  1666  |  1666  | 
|  1667 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |  1667 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 
|  1668   return new LReturn(UseFixed(instr->value(), eax)); |  1668   return new LReturn(UseFixed(instr->value(), eax)); | 
|  1669 } |  1669 } | 
|  1670  |  1670  | 
|  1671  |  1671  | 
|  1672 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { |  1672 LInstruction* LChunkBuilder::DoConstant(HConstant* instr) { | 
|  1673   Representation r = instr->representation(); |  1673   Representation r = instr->representation(); | 
|  1674   if (r.IsInteger32()) { |  1674   if (r.IsInteger32()) { | 
|  1675     int32_t value = instr->Integer32Value(); |  1675     return DefineAsRegister(new LConstantI); | 
|  1676     return DefineAsRegister(new LConstantI(value)); |  | 
|  1677   } else if (r.IsDouble()) { |  1676   } else if (r.IsDouble()) { | 
|  1678     double value = instr->DoubleValue(); |  1677     return DefineAsRegister(new LConstantD); | 
|  1679     return DefineAsRegister(new LConstantD(value)); |  | 
|  1680   } else if (r.IsTagged()) { |  1678   } else if (r.IsTagged()) { | 
|  1681     return DefineAsRegister(new LConstantT(instr->handle())); |  1679     return DefineAsRegister(new LConstantT); | 
|  1682   } else { |  1680   } else { | 
|  1683     UNREACHABLE(); |  1681     UNREACHABLE(); | 
|  1684     return NULL; |  1682     return NULL; | 
|  1685   } |  1683   } | 
|  1686 } |  1684 } | 
|  1687  |  1685  | 
|  1688  |  1686  | 
|  1689 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { |  1687 LInstruction* LChunkBuilder::DoLoadGlobal(HLoadGlobal* instr) { | 
|  1690   LLoadGlobal* result = new LLoadGlobal; |  1688   LLoadGlobal* result = new LLoadGlobal; | 
|  1691   return instr->check_hole_value() |  1689   return instr->check_hole_value() | 
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1979 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |  1977 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 
|  1980   HEnvironment* outer = current_block_->last_environment()->outer(); |  1978   HEnvironment* outer = current_block_->last_environment()->outer(); | 
|  1981   current_block_->UpdateEnvironment(outer); |  1979   current_block_->UpdateEnvironment(outer); | 
|  1982   return NULL; |  1980   return NULL; | 
|  1983 } |  1981 } | 
|  1984  |  1982  | 
|  1985  |  1983  | 
|  1986 } }  // namespace v8::internal |  1984 } }  // namespace v8::internal | 
|  1987  |  1985  | 
|  1988 #endif  // V8_TARGET_ARCH_IA32 |  1986 #endif  // V8_TARGET_ARCH_IA32 | 
| OLD | NEW |