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

Side by Side Diff: runtime/vm/flow_graph_compiler_x64.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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 } else { 1506 } else {
1507 __ j(NOT_ZERO, &after_smi_test); 1507 __ j(NOT_ZERO, &after_smi_test);
1508 } 1508 }
1509 // Do not use the code from the function, but let the code be patched so 1509 // Do not use the code from the function, but let the code be patched so
1510 // that we can record the outgoing edges to other code. 1510 // that we can record the outgoing edges to other code.
1511 GenerateDartCall(deopt_id, 1511 GenerateDartCall(deopt_id,
1512 token_index, 1512 token_index,
1513 *StubCode::CallStaticFunction_entry(), 1513 *StubCode::CallStaticFunction_entry(),
1514 RawPcDescriptors::kOther, 1514 RawPcDescriptors::kOther,
1515 locs); 1515 locs);
1516 const Function& function = Function::Handle(zone(), ic_data.GetTargetAt(0)); 1516 const Function& function = Function::ZoneHandle(
1517 zone(), ic_data.GetTargetAt(0));
1517 AddStaticCallTarget(function); 1518 AddStaticCallTarget(function);
1518 __ Drop(argument_count, RCX); 1519 __ Drop(argument_count, RCX);
1519 if (kNumChecks > 1) { 1520 if (kNumChecks > 1) {
1520 __ jmp(match_found); 1521 __ jmp(match_found);
1521 } 1522 }
1522 } else { 1523 } else {
1523 // Receiver is Smi, but Smi is not a valid class therefore fail. 1524 // Receiver is Smi, but Smi is not a valid class therefore fail.
1524 // (Smi class must be first in the list). 1525 // (Smi class must be first in the list).
1525 __ j(ZERO, failed); 1526 __ j(ZERO, failed);
1526 } 1527 }
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1796 __ movups(reg, Address(RSP, 0)); 1797 __ movups(reg, Address(RSP, 0));
1797 __ AddImmediate(RSP, Immediate(kFpuRegisterSize)); 1798 __ AddImmediate(RSP, Immediate(kFpuRegisterSize));
1798 } 1799 }
1799 1800
1800 1801
1801 #undef __ 1802 #undef __
1802 1803
1803 } // namespace dart 1804 } // namespace dart
1804 1805
1805 #endif // defined TARGET_ARCH_X64 1806 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698