| 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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 | 965 |
| 966 | 966 |
| 967 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) { | 967 void FlowGraphCompiler::GenerateInlinedSetter(intptr_t offset) { |
| 968 // RA: return address. | 968 // RA: return address. |
| 969 // SP+1: receiver. | 969 // SP+1: receiver. |
| 970 // SP+0: value. | 970 // SP+0: value. |
| 971 // Sequence node has one store node and one return NULL node. | 971 // Sequence node has one store node and one return NULL node. |
| 972 __ Comment("Inlined Setter"); | 972 __ Comment("Inlined Setter"); |
| 973 __ lw(T0, Address(SP, 1 * kWordSize)); // Receiver. | 973 __ lw(T0, Address(SP, 1 * kWordSize)); // Receiver. |
| 974 __ lw(T1, Address(SP, 0 * kWordSize)); // Value. | 974 __ lw(T1, Address(SP, 0 * kWordSize)); // Value. |
| 975 __ StoreIntoObject(T0, FieldAddress(T0, offset), T1); | 975 __ StoreIntoObjectOffset(T0, offset, T1); |
| 976 __ LoadImmediate(V0, reinterpret_cast<int32_t>(Object::null())); | 976 __ LoadImmediate(V0, reinterpret_cast<int32_t>(Object::null())); |
| 977 __ Ret(); | 977 __ Ret(); |
| 978 } | 978 } |
| 979 | 979 |
| 980 | 980 |
| 981 void FlowGraphCompiler::EmitFrameEntry() { | 981 void FlowGraphCompiler::EmitFrameEntry() { |
| 982 const Function& function = parsed_function().function(); | 982 const Function& function = parsed_function().function(); |
| 983 if (CanOptimizeFunction() && | 983 if (CanOptimizeFunction() && |
| 984 function.IsOptimizable() && | 984 function.IsOptimizable() && |
| 985 (!is_optimizing() || may_reoptimize())) { | 985 (!is_optimizing() || may_reoptimize())) { |
| (...skipping 821 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1807 __ AddImmediate(SP, kDoubleSize); | 1807 __ AddImmediate(SP, kDoubleSize); |
| 1808 } | 1808 } |
| 1809 | 1809 |
| 1810 | 1810 |
| 1811 #undef __ | 1811 #undef __ |
| 1812 | 1812 |
| 1813 | 1813 |
| 1814 } // namespace dart | 1814 } // namespace dart |
| 1815 | 1815 |
| 1816 #endif // defined TARGET_ARCH_MIPS | 1816 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |