| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 __ lw(T1, Address(SP, 0 * kWordSize)); // Value. | 1058 __ lw(T1, Address(SP, 0 * kWordSize)); // Value. |
| 1059 __ StoreIntoObject(T0, FieldAddress(T0, offset), T1); | 1059 __ StoreIntoObject(T0, FieldAddress(T0, offset), T1); |
| 1060 __ LoadImmediate(V0, reinterpret_cast<int32_t>(Object::null())); | 1060 __ LoadImmediate(V0, reinterpret_cast<int32_t>(Object::null())); |
| 1061 __ Ret(); | 1061 __ Ret(); |
| 1062 } | 1062 } |
| 1063 | 1063 |
| 1064 | 1064 |
| 1065 void FlowGraphCompiler::EmitFrameEntry() { | 1065 void FlowGraphCompiler::EmitFrameEntry() { |
| 1066 const Function& function = parsed_function().function(); | 1066 const Function& function = parsed_function().function(); |
| 1067 if (CanOptimizeFunction() && | 1067 if (CanOptimizeFunction() && |
| 1068 function.is_optimizable() && | 1068 function.IsOptimizable() && |
| 1069 (!is_optimizing() || may_reoptimize())) { | 1069 (!is_optimizing() || may_reoptimize())) { |
| 1070 const Register function_reg = T0; | 1070 const Register function_reg = T0; |
| 1071 | 1071 |
| 1072 __ GetNextPC(T2, TMP); | 1072 __ GetNextPC(T2, TMP); |
| 1073 | 1073 |
| 1074 // Calculate offset of pool pointer from the PC. | 1074 // Calculate offset of pool pointer from the PC. |
| 1075 const intptr_t object_pool_pc_dist = | 1075 const intptr_t object_pool_pc_dist = |
| 1076 Instructions::HeaderSize() - Instructions::object_pool_offset() + | 1076 Instructions::HeaderSize() - Instructions::object_pool_offset() + |
| 1077 assembler()->CodeSize() - 1 * Instr::kInstrSize; | 1077 assembler()->CodeSize() - 1 * Instr::kInstrSize; |
| 1078 | 1078 |
| (...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1937 __ AddImmediate(SP, kDoubleSize); | 1937 __ AddImmediate(SP, kDoubleSize); |
| 1938 } | 1938 } |
| 1939 | 1939 |
| 1940 | 1940 |
| 1941 #undef __ | 1941 #undef __ |
| 1942 | 1942 |
| 1943 | 1943 |
| 1944 } // namespace dart | 1944 } // namespace dart |
| 1945 | 1945 |
| 1946 #endif // defined TARGET_ARCH_MIPS | 1946 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |