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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/lithium-inl.h" | 10 #include "src/lithium-inl.h" |
(...skipping 2293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2304 obj = is_in_object | 2304 obj = is_in_object |
2305 ? UseRegister(instr->object()) | 2305 ? UseRegister(instr->object()) |
2306 : UseTempRegister(instr->object()); | 2306 : UseTempRegister(instr->object()); |
2307 } else { | 2307 } else { |
2308 obj = needs_write_barrier_for_map | 2308 obj = needs_write_barrier_for_map |
2309 ? UseRegister(instr->object()) | 2309 ? UseRegister(instr->object()) |
2310 : UseRegisterAtStart(instr->object()); | 2310 : UseRegisterAtStart(instr->object()); |
2311 } | 2311 } |
2312 | 2312 |
2313 LOperand* val; | 2313 LOperand* val; |
2314 if (needs_write_barrier || instr->field_representation().IsSmi()) { | 2314 if (needs_write_barrier) { |
2315 val = UseTempRegister(instr->value()); | 2315 val = UseTempRegister(instr->value()); |
2316 } else if (instr->field_representation().IsDouble()) { | 2316 } else if (instr->field_representation().IsDouble()) { |
2317 val = UseRegisterAtStart(instr->value()); | 2317 val = UseRegisterAtStart(instr->value()); |
2318 } else { | 2318 } else { |
2319 val = UseRegister(instr->value()); | 2319 val = UseRegister(instr->value()); |
2320 } | 2320 } |
2321 | 2321 |
2322 // We need a temporary register for write barrier of the map field. | 2322 // We need a temporary register for write barrier of the map field. |
2323 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; | 2323 LOperand* temp = needs_write_barrier_for_map ? TempRegister() : NULL; |
2324 | 2324 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2591 LOperand* function = UseRegisterAtStart(instr->function()); | 2591 LOperand* function = UseRegisterAtStart(instr->function()); |
2592 LAllocateBlockContext* result = | 2592 LAllocateBlockContext* result = |
2593 new(zone()) LAllocateBlockContext(context, function); | 2593 new(zone()) LAllocateBlockContext(context, function); |
2594 return MarkAsCall(DefineFixed(result, cp), instr); | 2594 return MarkAsCall(DefineFixed(result, cp), instr); |
2595 } | 2595 } |
2596 | 2596 |
2597 | 2597 |
2598 } } // namespace v8::internal | 2598 } } // namespace v8::internal |
2599 | 2599 |
2600 #endif // V8_TARGET_ARCH_MIPS64 | 2600 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |