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

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

Issue 1288863006: Use zone allocated growable array to populate interim static and stub calls table, thus allocating … (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1503 } else { 1503 } else {
1504 __ b(&after_smi_test, NE); 1504 __ b(&after_smi_test, NE);
1505 } 1505 }
1506 // Do not use the code from the function, but let the code be patched so 1506 // Do not use the code from the function, but let the code be patched so
1507 // that we can record the outgoing edges to other code. 1507 // that we can record the outgoing edges to other code.
1508 GenerateDartCall(deopt_id, 1508 GenerateDartCall(deopt_id,
1509 token_index, 1509 token_index,
1510 *StubCode::CallStaticFunction_entry(), 1510 *StubCode::CallStaticFunction_entry(),
1511 RawPcDescriptors::kOther, 1511 RawPcDescriptors::kOther,
1512 locs); 1512 locs);
1513 const Function& function = Function::Handle(zone(), ic_data.GetTargetAt(0)); 1513 const Function& function = Function::ZoneHandle(
1514 zone(), ic_data.GetTargetAt(0));
1514 AddStaticCallTarget(function); 1515 AddStaticCallTarget(function);
1515 __ Drop(argument_count); 1516 __ Drop(argument_count);
1516 if (kNumChecks > 1) { 1517 if (kNumChecks > 1) {
1517 __ b(match_found); 1518 __ b(match_found);
1518 } 1519 }
1519 } else { 1520 } else {
1520 // Receiver is Smi, but Smi is not a valid class therefore fail. 1521 // Receiver is Smi, but Smi is not a valid class therefore fail.
1521 // (Smi class must be first in the list). 1522 // (Smi class must be first in the list).
1522 __ b(failed, EQ); 1523 __ b(failed, EQ);
1523 } 1524 }
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1839 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1840 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1840 __ PopDouble(reg); 1841 __ PopDouble(reg);
1841 } 1842 }
1842 1843
1843 1844
1844 #undef __ 1845 #undef __
1845 1846
1846 } // namespace dart 1847 } // namespace dart
1847 1848
1848 #endif // defined TARGET_ARCH_ARM64 1849 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698