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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm.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 | « no previous file | runtime/vm/flow_graph_compiler_arm64.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_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 1263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 __ cmp(R4, Operand(R0)); 1274 __ cmp(R4, Operand(R0));
1275 __ b(&update, NE); 1275 __ b(&update, NE);
1276 1276
1277 __ Bind(&call_target_function); 1277 __ Bind(&call_target_function);
1278 // Call the target found in the cache. For a class id match, this is a 1278 // Call the target found in the cache. For a class id match, this is a
1279 // proper target for the given name and arguments descriptor. If the 1279 // proper target for the given name and arguments descriptor. If the
1280 // illegal class id was found, the target is a cache miss handler that can 1280 // illegal class id was found, the target is a cache miss handler that can
1281 // be invoked as a normal Dart function. 1281 // be invoked as a normal Dart function.
1282 __ add(IP, R2, Operand(R3, LSL, 2)); 1282 __ add(IP, R2, Operand(R3, LSL, 2));
1283 __ ldr(R0, FieldAddress(IP, base + kWordSize)); 1283 __ ldr(R0, FieldAddress(IP, base + kWordSize));
1284 __ ldr(R1, FieldAddress(R0, Function::code_offset())); 1284 __ ldr(R1, FieldAddress(R0, Function::instructions_offset()));
1285 __ ldr(R1, FieldAddress(R1, Code::instructions_offset()));
1286 __ LoadObject(R5, ic_data); 1285 __ LoadObject(R5, ic_data);
1287 __ LoadObject(R4, arguments_descriptor); 1286 __ LoadObject(R4, arguments_descriptor);
1288 __ AddImmediate(R1, Instructions::HeaderSize() - kHeapObjectTag); 1287 __ AddImmediate(R1, Instructions::HeaderSize() - kHeapObjectTag);
1289 __ blx(R1); 1288 __ blx(R1);
1290 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos); 1289 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos);
1291 RecordSafepoint(locs); 1290 RecordSafepoint(locs);
1292 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos); 1291 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos);
1293 __ Drop(argument_count); 1292 __ Drop(argument_count);
1294 } 1293 }
1295 1294
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 DRegister dreg = EvenDRegisterOf(reg); 1774 DRegister dreg = EvenDRegisterOf(reg);
1776 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1775 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1777 } 1776 }
1778 1777
1779 1778
1780 #undef __ 1779 #undef __
1781 1780
1782 } // namespace dart 1781 } // namespace dart
1783 1782
1784 #endif // defined TARGET_ARCH_ARM 1783 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698