| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 __ Bind(&null_args_loop_condition); | 998 __ Bind(&null_args_loop_condition); |
| 999 __ subs(R8, R8, ShifterOperand(1)); | 999 __ subs(R8, R8, ShifterOperand(1)); |
| 1000 __ b(&null_args_loop, PL); | 1000 __ b(&null_args_loop, PL); |
| 1001 } | 1001 } |
| 1002 | 1002 |
| 1003 | 1003 |
| 1004 void FlowGraphCompiler::GenerateInlinedGetter(intptr_t offset) { | 1004 void FlowGraphCompiler::GenerateInlinedGetter(intptr_t offset) { |
| 1005 // LR: return address. | 1005 // LR: return address. |
| 1006 // SP: receiver. | 1006 // SP: receiver. |
| 1007 // Sequence node has one return node, its input is load field node. | 1007 // Sequence node has one return node, its input is load field node. |
| 1008 __ Comment("Inlined Getter"); |
| 1008 __ ldr(R0, Address(SP, 0 * kWordSize)); | 1009 __ ldr(R0, Address(SP, 0 * kWordSize)); |
| 1009 __ LoadFromOffset(kWord, R0, R0, offset - kHeapObjectTag); | 1010 __ LoadFromOffset(kWord, R0, R0, offset - kHeapObjectTag); |
| 1010 __ Ret(); | 1011 __ Ret(); |
| 1011 } | 1012 } |
| 1012 | 1013 |
| 1013 | 1014 |
| 1014 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) { | 1015 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) { |
| 1015 // LR: return address. | 1016 // LR: return address. |
| 1016 // SP+1: receiver. | 1017 // SP+1: receiver. |
| 1017 // SP+0: value. | 1018 // SP+0: value. |
| 1018 // Sequence node has one store node and one return NULL node. | 1019 // Sequence node has one store node and one return NULL node. |
| 1020 __ Comment("Inlined Setter"); |
| 1019 __ ldr(R0, Address(SP, 1 * kWordSize)); // Receiver. | 1021 __ ldr(R0, Address(SP, 1 * kWordSize)); // Receiver. |
| 1020 __ ldr(R1, Address(SP, 0 * kWordSize)); // Value. | 1022 __ ldr(R1, Address(SP, 0 * kWordSize)); // Value. |
| 1021 __ StoreIntoObject(R0, FieldAddress(R0, offset), R1); | 1023 __ StoreIntoObject(R0, FieldAddress(R0, offset), R1); |
| 1022 __ LoadImmediate(R0, reinterpret_cast<intptr_t>(Object::null())); | 1024 __ LoadImmediate(R0, reinterpret_cast<intptr_t>(Object::null())); |
| 1023 __ Ret(); | 1025 __ Ret(); |
| 1024 } | 1026 } |
| 1025 | 1027 |
| 1026 | 1028 |
| 1027 void FlowGraphCompiler::EmitFrameEntry() { | 1029 void FlowGraphCompiler::EmitFrameEntry() { |
| 1028 const Function& function = parsed_function().function(); | 1030 const Function& function = parsed_function().function(); |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1903 DRegister dreg = EvenDRegisterOf(reg); | 1905 DRegister dreg = EvenDRegisterOf(reg); |
| 1904 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1906 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1905 } | 1907 } |
| 1906 | 1908 |
| 1907 | 1909 |
| 1908 #undef __ | 1910 #undef __ |
| 1909 | 1911 |
| 1910 } // namespace dart | 1912 } // namespace dart |
| 1911 | 1913 |
| 1912 #endif // defined TARGET_ARCH_ARM | 1914 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |