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

Side by Side Diff: runtime/vm/flow_graph_compiler_mips.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) 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 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after
1569 } else { 1569 } else {
1570 __ bne(CMPRES1, ZR, &after_smi_test); 1570 __ bne(CMPRES1, ZR, &after_smi_test);
1571 } 1571 }
1572 // Do not use the code from the function, but let the code be patched so 1572 // Do not use the code from the function, but let the code be patched so
1573 // that we can record the outgoing edges to other code. 1573 // that we can record the outgoing edges to other code.
1574 GenerateDartCall(deopt_id, 1574 GenerateDartCall(deopt_id,
1575 token_index, 1575 token_index,
1576 *StubCode::CallStaticFunction_entry(), 1576 *StubCode::CallStaticFunction_entry(),
1577 RawPcDescriptors::kOther, 1577 RawPcDescriptors::kOther,
1578 locs); 1578 locs);
1579 const Function& function = Function::Handle(zone(), ic_data.GetTargetAt(0)); 1579 const Function& function = Function::ZoneHandle(
1580 zone(), ic_data.GetTargetAt(0));
1580 AddStaticCallTarget(function); 1581 AddStaticCallTarget(function);
1581 __ Drop(argument_count); 1582 __ Drop(argument_count);
1582 if (kNumChecks > 1) { 1583 if (kNumChecks > 1) {
1583 __ b(match_found); 1584 __ b(match_found);
1584 } 1585 }
1585 } else { 1586 } else {
1586 // Receiver is Smi, but Smi is not a valid class therefore fail. 1587 // Receiver is Smi, but Smi is not a valid class therefore fail.
1587 // (Smi class must be first in the list). 1588 // (Smi class must be first in the list).
1588 __ beq(CMPRES1, ZR, failed); 1589 __ beq(CMPRES1, ZR, failed);
1589 } 1590 }
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1865 __ AddImmediate(SP, kDoubleSize); 1866 __ AddImmediate(SP, kDoubleSize);
1866 } 1867 }
1867 1868
1868 1869
1869 #undef __ 1870 #undef __
1870 1871
1871 1872
1872 } // namespace dart 1873 } // namespace dart
1873 1874
1874 #endif // defined TARGET_ARCH_MIPS 1875 #endif // defined TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698