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 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1927 } | 1927 } |
1928 | 1928 |
1929 | 1929 |
1930 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { | 1930 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { |
1931 HValue* value = instr->value(); | 1931 HValue* value = instr->value(); |
1932 DCHECK(value->representation().IsDouble()); | 1932 DCHECK(value->representation().IsDouble()); |
1933 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); | 1933 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); |
1934 } | 1934 } |
1935 | 1935 |
1936 | 1936 |
1937 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { | |
1938 LOperand* lo = UseRegister(instr->lo()); | |
1939 LOperand* hi = UseRegister(instr->hi()); | |
1940 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo)); | |
1941 } | |
1942 | |
1943 | |
1944 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1937 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
1945 LOperand* context = info()->IsStub() | 1938 LOperand* context = info()->IsStub() |
1946 ? UseFixed(instr->context(), cp) | 1939 ? UseFixed(instr->context(), cp) |
1947 : NULL; | 1940 : NULL; |
1948 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1941 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
1949 return new(zone()) LReturn(UseFixed(instr->value(), v0), context, | 1942 return new(zone()) LReturn(UseFixed(instr->value(), v0), context, |
1950 parameter_count); | 1943 parameter_count); |
1951 } | 1944 } |
1952 | 1945 |
1953 | 1946 |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2462 LOperand* index = UseTempRegister(instr->index()); | 2455 LOperand* index = UseTempRegister(instr->index()); |
2463 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2456 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
2464 LInstruction* result = DefineSameAsFirst(load); | 2457 LInstruction* result = DefineSameAsFirst(load); |
2465 return AssignPointerMap(result); | 2458 return AssignPointerMap(result); |
2466 } | 2459 } |
2467 | 2460 |
2468 } // namespace internal | 2461 } // namespace internal |
2469 } // namespace v8 | 2462 } // namespace v8 |
2470 | 2463 |
2471 #endif // V8_TARGET_ARCH_MIPS | 2464 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |