| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/arm64/lithium-arm64.h" | 5 #include "src/crankshaft/arm64/lithium-arm64.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" | 9 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" |
| 10 #include "src/crankshaft/hydrogen-osr.h" | 10 #include "src/crankshaft/hydrogen-osr.h" |
| (...skipping 1904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1915 } | 1915 } |
| 1916 | 1916 |
| 1917 | 1917 |
| 1918 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { | 1918 LInstruction* LChunkBuilder::DoDoubleBits(HDoubleBits* instr) { |
| 1919 HValue* value = instr->value(); | 1919 HValue* value = instr->value(); |
| 1920 DCHECK(value->representation().IsDouble()); | 1920 DCHECK(value->representation().IsDouble()); |
| 1921 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); | 1921 return DefineAsRegister(new(zone()) LDoubleBits(UseRegister(value))); |
| 1922 } | 1922 } |
| 1923 | 1923 |
| 1924 | 1924 |
| 1925 LInstruction* LChunkBuilder::DoConstructDouble(HConstructDouble* instr) { | |
| 1926 LOperand* lo = UseRegisterAndClobber(instr->lo()); | |
| 1927 LOperand* hi = UseRegister(instr->hi()); | |
| 1928 return DefineAsRegister(new(zone()) LConstructDouble(hi, lo)); | |
| 1929 } | |
| 1930 | |
| 1931 | |
| 1932 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { | 1925 LInstruction* LChunkBuilder::DoReturn(HReturn* instr) { |
| 1933 LOperand* context = info()->IsStub() | 1926 LOperand* context = info()->IsStub() |
| 1934 ? UseFixed(instr->context(), cp) | 1927 ? UseFixed(instr->context(), cp) |
| 1935 : NULL; | 1928 : NULL; |
| 1936 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); | 1929 LOperand* parameter_count = UseRegisterOrConstant(instr->parameter_count()); |
| 1937 return new(zone()) LReturn(UseFixed(instr->value(), x0), context, | 1930 return new(zone()) LReturn(UseFixed(instr->value(), x0), context, |
| 1938 parameter_count); | 1931 parameter_count); |
| 1939 } | 1932 } |
| 1940 | 1933 |
| 1941 | 1934 |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2602 | 2595 |
| 2603 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { | 2596 LInstruction* LChunkBuilder::DoWrapReceiver(HWrapReceiver* instr) { |
| 2604 LOperand* receiver = UseRegister(instr->receiver()); | 2597 LOperand* receiver = UseRegister(instr->receiver()); |
| 2605 LOperand* function = UseRegister(instr->function()); | 2598 LOperand* function = UseRegister(instr->function()); |
| 2606 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); | 2599 LWrapReceiver* result = new(zone()) LWrapReceiver(receiver, function); |
| 2607 return AssignEnvironment(DefineAsRegister(result)); | 2600 return AssignEnvironment(DefineAsRegister(result)); |
| 2608 } | 2601 } |
| 2609 | 2602 |
| 2610 } // namespace internal | 2603 } // namespace internal |
| 2611 } // namespace v8 | 2604 } // namespace v8 |
| OLD | NEW |