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

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

Issue 1799793002: Precompilation: Have instances calls load the entry point and Code object from the ic data array in… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/object.h » ('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_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 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 void FlowGraphCompiler::EmitSwitchableInstanceCall( 1370 void FlowGraphCompiler::EmitSwitchableInstanceCall(
1371 const ICData& ic_data, 1371 const ICData& ic_data,
1372 intptr_t argument_count, 1372 intptr_t argument_count,
1373 intptr_t deopt_id, 1373 intptr_t deopt_id,
1374 TokenPosition token_pos, 1374 TokenPosition token_pos,
1375 LocationSummary* locs) { 1375 LocationSummary* locs) {
1376 __ Comment("SwitchableCall"); 1376 __ Comment("SwitchableCall");
1377 __ movq(RDI, Address(RSP, (argument_count - 1) * kWordSize)); 1377 __ movq(RDI, Address(RSP, (argument_count - 1) * kWordSize));
1378 if (ic_data.NumArgsTested() == 1) { 1378 if (ic_data.NumArgsTested() == 1) {
1379 __ LoadUniqueObject(RBX, ic_data); 1379 __ LoadUniqueObject(RBX, ic_data);
1380 __ CallPatchable(*StubCode::ICLookup_entry()); 1380 __ CallPatchable(*StubCode::ICLookupThroughFunction_entry());
1381 } else { 1381 } else {
1382 const String& name = String::Handle(zone(), ic_data.target_name()); 1382 const String& name = String::Handle(zone(), ic_data.target_name());
1383 const Array& arguments_descriptor = 1383 const Array& arguments_descriptor =
1384 Array::ZoneHandle(zone(), ic_data.arguments_descriptor()); 1384 Array::ZoneHandle(zone(), ic_data.arguments_descriptor());
1385 ASSERT(!arguments_descriptor.IsNull() && 1385 ASSERT(!arguments_descriptor.IsNull() &&
1386 (arguments_descriptor.Length() > 0)); 1386 (arguments_descriptor.Length() > 0));
1387 const MegamorphicCache& cache = MegamorphicCache::ZoneHandle(zone(), 1387 const MegamorphicCache& cache = MegamorphicCache::ZoneHandle(zone(),
1388 MegamorphicCacheTable::Lookup(isolate(), name, arguments_descriptor)); 1388 MegamorphicCacheTable::Lookup(isolate(), name, arguments_descriptor));
1389 1389
1390 __ LoadUniqueObject(RBX, cache); 1390 __ LoadUniqueObject(RBX, cache);
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 __ movups(reg, Address(RSP, 0)); 1851 __ movups(reg, Address(RSP, 0));
1852 __ AddImmediate(RSP, Immediate(kFpuRegisterSize)); 1852 __ AddImmediate(RSP, Immediate(kFpuRegisterSize));
1853 } 1853 }
1854 1854
1855 1855
1856 #undef __ 1856 #undef __
1857 1857
1858 } // namespace dart 1858 } // namespace dart
1859 1859
1860 #endif // defined TARGET_ARCH_X64 1860 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698