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_MIPS | 7 #if V8_TARGET_ARCH_MIPS |
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* context = UseFixed(instr->context(), cp); | 2591 LOperand* context = UseFixed(instr->context(), cp); |
2592 LOperand* function = UseRegisterAtStart(instr->function()); | 2592 LOperand* function = UseRegisterAtStart(instr->function()); |
2593 LAllocateBlockContext* result = | 2593 LAllocateBlockContext* result = |
2594 new(zone()) LAllocateBlockContext(context, function); | 2594 new(zone()) LAllocateBlockContext(context, function); |
2595 return MarkAsCall(DefineFixed(result, cp), instr); | 2595 return MarkAsCall(DefineFixed(result, cp), instr); |
2596 } | 2596 } |
2597 | 2597 |
2598 } } // namespace v8::internal | 2598 } } // namespace v8::internal |
2599 | 2599 |
2600 #endif // V8_TARGET_ARCH_MIPS | 2600 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |