| OLD | NEW | 
|     1 // Copyright 2012 the V8 project authors. All rights reserved. |     1 // Copyright 2012 the V8 project authors. All rights reserved. | 
|     2 // Use of this source code is governed by a BSD-style license that can be |     2 // Use of this source code is governed by a BSD-style license that can be | 
|     3 // found in the LICENSE file. |     3 // found in the LICENSE file. | 
|     4  |     4  | 
|     5 #include "src/x64/lithium-x64.h" |     5 #include "src/x64/lithium-x64.h" | 
|     6  |     6  | 
|     7 #include <sstream> |     7 #include <sstream> | 
|     8  |     8  | 
|     9 #if V8_TARGET_ARCH_X64 |     9 #if V8_TARGET_ARCH_X64 | 
|    10  |    10  | 
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   463     if (i < blocks->length() - 1) next = blocks->at(i + 1); |   463     if (i < blocks->length() - 1) next = blocks->at(i + 1); | 
|   464     DoBasicBlock(blocks->at(i), next); |   464     DoBasicBlock(blocks->at(i), next); | 
|   465     if (is_aborted()) return NULL; |   465     if (is_aborted()) return NULL; | 
|   466   } |   466   } | 
|   467   status_ = DONE; |   467   status_ = DONE; | 
|   468   return chunk_; |   468   return chunk_; | 
|   469 } |   469 } | 
|   470  |   470  | 
|   471  |   471  | 
|   472 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { |   472 LUnallocated* LChunkBuilder::ToUnallocated(Register reg) { | 
|   473   return new(zone()) LUnallocated(LUnallocated::FIXED_REGISTER, |   473   return new (zone()) LUnallocated(LUnallocated::FIXED_REGISTER, reg.code()); | 
|   474                                   Register::ToAllocationIndex(reg)); |  | 
|   475 } |   474 } | 
|   476  |   475  | 
|   477  |   476  | 
|   478 LUnallocated* LChunkBuilder::ToUnallocated(XMMRegister reg) { |   477 LUnallocated* LChunkBuilder::ToUnallocated(XMMRegister reg) { | 
|   479   return new(zone()) LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, |   478   return new (zone()) | 
|   480                                   XMMRegister::ToAllocationIndex(reg)); |   479       LUnallocated(LUnallocated::FIXED_DOUBLE_REGISTER, reg.code()); | 
|   481 } |   480 } | 
|   482  |   481  | 
|   483  |   482  | 
|   484 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) { |   483 LOperand* LChunkBuilder::UseFixed(HValue* value, Register fixed_register) { | 
|   485   return Use(value, ToUnallocated(fixed_register)); |   484   return Use(value, ToUnallocated(fixed_register)); | 
|   486 } |   485 } | 
|   487  |   486  | 
|   488  |   487  | 
|   489 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, XMMRegister reg) { |   488 LOperand* LChunkBuilder::UseFixedDouble(HValue* value, XMMRegister reg) { | 
|   490   return Use(value, ToUnallocated(reg)); |   489   return Use(value, ToUnallocated(reg)); | 
| (...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2740   LAllocateBlockContext* result = |  2739   LAllocateBlockContext* result = | 
|  2741       new(zone()) LAllocateBlockContext(context, function); |  2740       new(zone()) LAllocateBlockContext(context, function); | 
|  2742   return MarkAsCall(DefineFixed(result, rsi), instr); |  2741   return MarkAsCall(DefineFixed(result, rsi), instr); | 
|  2743 } |  2742 } | 
|  2744  |  2743  | 
|  2745  |  2744  | 
|  2746 }  // namespace internal |  2745 }  // namespace internal | 
|  2747 }  // namespace v8 |  2746 }  // namespace v8 | 
|  2748  |  2747  | 
|  2749 #endif  // V8_TARGET_ARCH_X64 |  2748 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW |