Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: runtime/vm/flow_graph_compiler_mips.cc

Issue 338353005: Fixes field access on MIPS for classes with many fields. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_mips.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/assembler_mips.cc ('k') | runtime/vm/intermediate_language_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698