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

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

Issue 311963002: In class Function replace current code field with current instruction field, that way we save one l… (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/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.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 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 1316
1317 __ Bind(&call_target_function); 1317 __ Bind(&call_target_function);
1318 // Call the target found in the cache. For a class id match, this is a 1318 // Call the target found in the cache. For a class id match, this is a
1319 // proper target for the given name and arguments descriptor. If the 1319 // proper target for the given name and arguments descriptor. If the
1320 // illegal class id was found, the target is a cache miss handler that can 1320 // illegal class id was found, the target is a cache miss handler that can
1321 // be invoked as a normal Dart function. 1321 // be invoked as a normal Dart function.
1322 __ sll(T1, T3, 2); 1322 __ sll(T1, T3, 2);
1323 __ addu(T1, T2, T1); 1323 __ addu(T1, T2, T1);
1324 __ lw(T0, FieldAddress(T1, base + kWordSize)); 1324 __ lw(T0, FieldAddress(T1, base + kWordSize));
1325 1325
1326 __ lw(T1, FieldAddress(T0, Function::code_offset())); 1326 __ lw(T1, FieldAddress(T0, Function::instructions_offset()));
1327 __ lw(T1, FieldAddress(T1, Code::instructions_offset()));
1328 __ LoadObject(S5, ic_data); 1327 __ LoadObject(S5, ic_data);
1329 __ LoadObject(S4, arguments_descriptor); 1328 __ LoadObject(S4, arguments_descriptor);
1330 __ AddImmediate(T1, Instructions::HeaderSize() - kHeapObjectTag); 1329 __ AddImmediate(T1, Instructions::HeaderSize() - kHeapObjectTag);
1331 __ jalr(T1); 1330 __ jalr(T1);
1332 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos); 1331 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos);
1333 RecordSafepoint(locs); 1332 RecordSafepoint(locs);
1334 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos); 1333 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos);
1335 __ Drop(argument_count); 1334 __ Drop(argument_count);
1336 } 1335 }
1337 1336
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
1820 __ AddImmediate(SP, kDoubleSize); 1819 __ AddImmediate(SP, kDoubleSize);
1821 } 1820 }
1822 1821
1823 1822
1824 #undef __ 1823 #undef __
1825 1824
1826 1825
1827 } // namespace dart 1826 } // namespace dart
1828 1827
1829 #endif // defined TARGET_ARCH_MIPS 1828 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698