| 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/crankshaft/mips/lithium-mips.h" | 5 #include "src/crankshaft/mips/lithium-mips.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
| 10 | 10 |
| (...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1958 return DefineAsRegister(new(zone()) LConstantT); | 1958 return DefineAsRegister(new(zone()) LConstantT); |
| 1959 } else { | 1959 } else { |
| 1960 UNREACHABLE(); | 1960 UNREACHABLE(); |
| 1961 return NULL; | 1961 return NULL; |
| 1962 } | 1962 } |
| 1963 } | 1963 } |
| 1964 | 1964 |
| 1965 | 1965 |
| 1966 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | 1966 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { |
| 1967 LOperand* context = UseFixed(instr->context(), cp); | 1967 LOperand* context = UseFixed(instr->context(), cp); |
| 1968 LOperand* global_object = | |
| 1969 UseFixed(instr->global_object(), LoadDescriptor::ReceiverRegister()); | |
| 1970 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | 1968 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); |
| 1971 LLoadGlobalGeneric* result = | 1969 |
| 1972 new(zone()) LLoadGlobalGeneric(context, global_object, vector); | 1970 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector); |
| 1973 return MarkAsCall(DefineFixed(result, v0), instr); | 1971 return MarkAsCall(DefineFixed(result, v0), instr); |
| 1974 } | 1972 } |
| 1975 | 1973 |
| 1976 | 1974 |
| 1977 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1975 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1978 LOperand* context = UseRegisterAtStart(instr->value()); | 1976 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1979 LInstruction* result = | 1977 LInstruction* result = |
| 1980 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 1978 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
| 1981 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { | 1979 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
| 1982 result = AssignEnvironment(result); | 1980 result = AssignEnvironment(result); |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2455 LOperand* index = UseTempRegister(instr->index()); | 2453 LOperand* index = UseTempRegister(instr->index()); |
| 2456 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2454 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2457 LInstruction* result = DefineSameAsFirst(load); | 2455 LInstruction* result = DefineSameAsFirst(load); |
| 2458 return AssignPointerMap(result); | 2456 return AssignPointerMap(result); |
| 2459 } | 2457 } |
| 2460 | 2458 |
| 2461 } // namespace internal | 2459 } // namespace internal |
| 2462 } // namespace v8 | 2460 } // namespace v8 |
| 2463 | 2461 |
| 2464 #endif // V8_TARGET_ARCH_MIPS | 2462 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |