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

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

Issue 1160063002: Remove unused pc descriptor types. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: remove kOptStaticCall Created 5 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
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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 6346 matching lines...) Expand 10 before | Expand all | Expand 10 after
6357 // Function in RAX. 6357 // Function in RAX.
6358 ASSERT(locs()->in(0).reg() == RAX); 6358 ASSERT(locs()->in(0).reg() == RAX);
6359 __ movq(RCX, FieldAddress(RAX, Function::instructions_offset())); 6359 __ movq(RCX, FieldAddress(RAX, Function::instructions_offset()));
6360 6360
6361 // RAX: Function. 6361 // RAX: Function.
6362 // R10: Arguments descriptor array. 6362 // R10: Arguments descriptor array.
6363 // RBX: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value). 6363 // RBX: Smi 0 (no IC data; the lazy-compile stub expects a GC-safe value).
6364 __ xorq(RBX, RBX); 6364 __ xorq(RBX, RBX);
6365 __ addq(RCX, Immediate(Instructions::HeaderSize() - kHeapObjectTag)); 6365 __ addq(RCX, Immediate(Instructions::HeaderSize() - kHeapObjectTag));
6366 __ call(RCX); 6366 __ call(RCX);
6367 compiler->AddCurrentDescriptor(RawPcDescriptors::kClosureCall,
6368 deopt_id(),
6369 token_pos());
6370 compiler->RecordSafepoint(locs()); 6367 compiler->RecordSafepoint(locs());
6371 // Marks either the continuation point in unoptimized code or the 6368 // Marks either the continuation point in unoptimized code or the
6372 // deoptimization point in optimized code, after call. 6369 // deoptimization point in optimized code, after call.
6373 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id()); 6370 const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id());
6374 if (compiler->is_optimizing()) { 6371 if (compiler->is_optimizing()) {
6375 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos()); 6372 compiler->AddDeoptIndexAtCall(deopt_id_after, token_pos());
6376 } else {
6377 // Add deoptimization continuation point after the call and before the
6378 // arguments are removed.
6379 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
6380 deopt_id_after,
6381 token_pos());
6382 } 6373 }
6374 // Add deoptimization continuation point after the call and before the
6375 // arguments are removed.
6376 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt,
6377 deopt_id_after,
6378 token_pos());
6383 __ Drop(argument_count); 6379 __ Drop(argument_count);
6384 } 6380 }
6385 6381
6386 6382
6387 LocationSummary* BooleanNegateInstr::MakeLocationSummary(Zone* zone, 6383 LocationSummary* BooleanNegateInstr::MakeLocationSummary(Zone* zone,
6388 bool opt) const { 6384 bool opt) const {
6389 return LocationSummary::Make(zone, 6385 return LocationSummary::Make(zone,
6390 1, 6386 1,
6391 Location::RequiresRegister(), 6387 Location::RequiresRegister(),
6392 LocationSummary::kNoCall); 6388 LocationSummary::kNoCall);
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
6462 __ Drop(1); 6458 __ Drop(1);
6463 __ popq(result); 6459 __ popq(result);
6464 } 6460 }
6465 6461
6466 6462
6467 } // namespace dart 6463 } // namespace dart
6468 6464
6469 #undef __ 6465 #undef __
6470 6466
6471 #endif // defined TARGET_ARCH_X64 6467 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698