OLD | NEW |
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 5987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5998 RawPcDescriptors::kOther, | 5998 RawPcDescriptors::kOther, |
5999 locs()); | 5999 locs()); |
6000 __ Drop(ArgumentCount()); // Discard arguments. | 6000 __ Drop(ArgumentCount()); // Discard arguments. |
6001 } | 6001 } |
6002 | 6002 |
6003 | 6003 |
6004 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6004 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
6005 ASSERT(!compiler->is_optimizing()); | 6005 ASSERT(!compiler->is_optimizing()); |
6006 StubCode* stub_code = compiler->isolate()->stub_code(); | 6006 StubCode* stub_code = compiler->isolate()->stub_code(); |
6007 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); | 6007 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); |
6008 __ movq(R10, Immediate(0)); | |
6009 __ movq(RBX, Immediate(0)); | |
6010 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 6008 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
6011 #if defined(DEBUG) | 6009 #if defined(DEBUG) |
6012 __ movq(R10, Immediate(kInvalidObjectPointer)); | 6010 __ movq(R10, Immediate(kInvalidObjectPointer)); |
6013 __ movq(RBX, Immediate(kInvalidObjectPointer)); | 6011 __ movq(RBX, Immediate(kInvalidObjectPointer)); |
6014 #endif | 6012 #endif |
6015 } | 6013 } |
6016 | 6014 |
6017 } // namespace dart | 6015 } // namespace dart |
6018 | 6016 |
6019 #undef __ | 6017 #undef __ |
6020 | 6018 |
6021 #endif // defined TARGET_ARCH_X64 | 6019 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |