| 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/mips64/lithium-mips64.h" | 5 #include "src/crankshaft/mips64/lithium-mips64.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
| 10 | 10 |
| (...skipping 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1942 return DefineAsRegister(new(zone()) LConstantE); | 1942 return DefineAsRegister(new(zone()) LConstantE); |
| 1943 } else if (r.IsTagged()) { | 1943 } else if (r.IsTagged()) { |
| 1944 return DefineAsRegister(new(zone()) LConstantT); | 1944 return DefineAsRegister(new(zone()) LConstantT); |
| 1945 } else { | 1945 } else { |
| 1946 UNREACHABLE(); | 1946 UNREACHABLE(); |
| 1947 return NULL; | 1947 return NULL; |
| 1948 } | 1948 } |
| 1949 } | 1949 } |
| 1950 | 1950 |
| 1951 | 1951 |
| 1952 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | |
| 1953 LOperand* context = UseFixed(instr->context(), cp); | |
| 1954 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | |
| 1955 | |
| 1956 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector); | |
| 1957 return MarkAsCall(DefineFixed(result, v0), instr); | |
| 1958 } | |
| 1959 | |
| 1960 | |
| 1961 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1952 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1962 LOperand* context = UseRegisterAtStart(instr->value()); | 1953 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1963 LInstruction* result = | 1954 LInstruction* result = |
| 1964 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 1955 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
| 1965 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { | 1956 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
| 1966 result = AssignEnvironment(result); | 1957 result = AssignEnvironment(result); |
| 1967 } | 1958 } |
| 1968 return result; | 1959 return result; |
| 1969 } | 1960 } |
| 1970 | 1961 |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2407 LOperand* index = UseTempRegister(instr->index()); | 2398 LOperand* index = UseTempRegister(instr->index()); |
| 2408 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2399 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2409 LInstruction* result = DefineSameAsFirst(load); | 2400 LInstruction* result = DefineSameAsFirst(load); |
| 2410 return AssignPointerMap(result); | 2401 return AssignPointerMap(result); |
| 2411 } | 2402 } |
| 2412 | 2403 |
| 2413 } // namespace internal | 2404 } // namespace internal |
| 2414 } // namespace v8 | 2405 } // namespace v8 |
| 2415 | 2406 |
| 2416 #endif // V8_TARGET_ARCH_MIPS64 | 2407 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |