| 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 1928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1939 return DefineAsRegister(new(zone()) LConstantE); | 1939 return DefineAsRegister(new(zone()) LConstantE); |
| 1940 } else if (r.IsTagged()) { | 1940 } else if (r.IsTagged()) { |
| 1941 return DefineAsRegister(new(zone()) LConstantT); | 1941 return DefineAsRegister(new(zone()) LConstantT); |
| 1942 } else { | 1942 } else { |
| 1943 UNREACHABLE(); | 1943 UNREACHABLE(); |
| 1944 return NULL; | 1944 return NULL; |
| 1945 } | 1945 } |
| 1946 } | 1946 } |
| 1947 | 1947 |
| 1948 | 1948 |
| 1949 LInstruction* LChunkBuilder::DoLoadGlobalGeneric(HLoadGlobalGeneric* instr) { | |
| 1950 LOperand* context = UseFixed(instr->context(), cp); | |
| 1951 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | |
| 1952 | |
| 1953 LLoadGlobalGeneric* result = new (zone()) LLoadGlobalGeneric(context, vector); | |
| 1954 return MarkAsCall(DefineFixed(result, v0), instr); | |
| 1955 } | |
| 1956 | |
| 1957 | |
| 1958 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { | 1949 LInstruction* LChunkBuilder::DoLoadContextSlot(HLoadContextSlot* instr) { |
| 1959 LOperand* context = UseRegisterAtStart(instr->value()); | 1950 LOperand* context = UseRegisterAtStart(instr->value()); |
| 1960 LInstruction* result = | 1951 LInstruction* result = |
| 1961 DefineAsRegister(new(zone()) LLoadContextSlot(context)); | 1952 DefineAsRegister(new(zone()) LLoadContextSlot(context)); |
| 1962 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { | 1953 if (instr->RequiresHoleCheck() && instr->DeoptimizesOnHole()) { |
| 1963 result = AssignEnvironment(result); | 1954 result = AssignEnvironment(result); |
| 1964 } | 1955 } |
| 1965 return result; | 1956 return result; |
| 1966 } | 1957 } |
| 1967 | 1958 |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2402 LOperand* index = UseTempRegister(instr->index()); | 2393 LOperand* index = UseTempRegister(instr->index()); |
| 2403 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2394 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2404 LInstruction* result = DefineSameAsFirst(load); | 2395 LInstruction* result = DefineSameAsFirst(load); |
| 2405 return AssignPointerMap(result); | 2396 return AssignPointerMap(result); |
| 2406 } | 2397 } |
| 2407 | 2398 |
| 2408 } // namespace internal | 2399 } // namespace internal |
| 2409 } // namespace v8 | 2400 } // namespace v8 |
| 2410 | 2401 |
| 2411 #endif // V8_TARGET_ARCH_MIPS | 2402 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |