| 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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1030 __ ldr(R1, Address(SP, 0 * kWordSize)); // Value. | 1030 __ ldr(R1, Address(SP, 0 * kWordSize)); // Value. |
| 1031 __ StoreIntoObject(R0, FieldAddress(R0, offset), R1); | 1031 __ StoreIntoObject(R0, FieldAddress(R0, offset), R1); |
| 1032 __ LoadImmediate(R0, reinterpret_cast<intptr_t>(Object::null())); | 1032 __ LoadImmediate(R0, reinterpret_cast<intptr_t>(Object::null())); |
| 1033 __ Ret(); | 1033 __ Ret(); |
| 1034 } | 1034 } |
| 1035 | 1035 |
| 1036 | 1036 |
| 1037 void FlowGraphCompiler::EmitFrameEntry() { | 1037 void FlowGraphCompiler::EmitFrameEntry() { |
| 1038 const Function& function = parsed_function().function(); | 1038 const Function& function = parsed_function().function(); |
| 1039 if (CanOptimizeFunction() && | 1039 if (CanOptimizeFunction() && |
| 1040 function.is_optimizable() && | 1040 function.IsOptimizable() && |
| 1041 (!is_optimizing() || may_reoptimize())) { | 1041 (!is_optimizing() || may_reoptimize())) { |
| 1042 const Register function_reg = R6; | 1042 const Register function_reg = R6; |
| 1043 | 1043 |
| 1044 // The pool pointer is not setup before entering the Dart frame. | 1044 // The pool pointer is not setup before entering the Dart frame. |
| 1045 // Preserve PP of caller. | 1045 // Preserve PP of caller. |
| 1046 __ mov(R7, ShifterOperand(PP)); | 1046 __ mov(R7, ShifterOperand(PP)); |
| 1047 // Temporarily setup pool pointer for this dart function. | 1047 // Temporarily setup pool pointer for this dart function. |
| 1048 __ LoadPoolPointer(); | 1048 __ LoadPoolPointer(); |
| 1049 // Load function object from object pool. | 1049 // Load function object from object pool. |
| 1050 __ LoadObject(function_reg, function); // Uses PP. | 1050 __ LoadObject(function_reg, function); // Uses PP. |
| (...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1885 DRegister dreg = EvenDRegisterOf(reg); | 1885 DRegister dreg = EvenDRegisterOf(reg); |
| 1886 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1886 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1887 } | 1887 } |
| 1888 | 1888 |
| 1889 | 1889 |
| 1890 #undef __ | 1890 #undef __ |
| 1891 | 1891 |
| 1892 } // namespace dart | 1892 } // namespace dart |
| 1893 | 1893 |
| 1894 #endif // defined TARGET_ARCH_ARM | 1894 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |