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

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

Issue 1137313002: VM: Set breakpoints on x64 and arm64 without patching code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: re-upload from git workspace Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/debugger_x64.cc ('k') | no next file » | 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/intermediate_language.h" 8 #include "vm/intermediate_language.h"
9 9
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
(...skipping 6402 matching lines...) Expand 10 before | Expand all | Expand 10 after
6413 locs()); 6413 locs());
6414 compiler->AddStubCallTarget(stub); 6414 compiler->AddStubCallTarget(stub);
6415 __ Drop(ArgumentCount()); // Discard arguments. 6415 __ Drop(ArgumentCount()); // Discard arguments.
6416 } 6416 }
6417 6417
6418 6418
6419 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 6419 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
6420 ASSERT(!compiler->is_optimizing()); 6420 ASSERT(!compiler->is_optimizing());
6421 StubCode* stub_code = compiler->isolate()->stub_code(); 6421 StubCode* stub_code = compiler->isolate()->stub_code();
6422 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); 6422 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint());
6423 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); 6423 __ CallPatchable(&label);
6424 compiler->AddCurrentDescriptor(stub_kind_, Isolate::kNoDeoptId, token_pos());
6425 compiler->RecordSafepoint(locs());
6424 } 6426 }
6425 6427
6426 6428
6427 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary( 6429 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary(
6428 Zone* zone, bool opt) const { 6430 Zone* zone, bool opt) const {
6429 const intptr_t kNumInputs = 1; 6431 const intptr_t kNumInputs = 1;
6430 const intptr_t kNumTemps = 0; 6432 const intptr_t kNumTemps = 0;
6431 LocationSummary* locs = new(zone) LocationSummary( 6433 LocationSummary* locs = new(zone) LocationSummary(
6432 zone, kNumInputs, kNumTemps, LocationSummary::kCall); 6434 zone, kNumInputs, kNumTemps, LocationSummary::kCall);
6433 locs->set_in(0, Location::RegisterLocation(RAX)); 6435 locs->set_in(0, Location::RegisterLocation(RAX));
(...skipping 15 matching lines...) Expand all
6449 __ Drop(1); 6451 __ Drop(1);
6450 __ popq(result); 6452 __ popq(result);
6451 } 6453 }
6452 6454
6453 6455
6454 } // namespace dart 6456 } // namespace dart
6455 6457
6456 #undef __ 6458 #undef __
6457 6459
6458 #endif // defined TARGET_ARCH_X64 6460 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/debugger_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698