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 5837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5848 RawPcDescriptors::kOther, | 5848 RawPcDescriptors::kOther, |
5849 locs()); | 5849 locs()); |
5850 __ Drop(ArgumentCount()); // Discard arguments. | 5850 __ Drop(ArgumentCount()); // Discard arguments. |
5851 } | 5851 } |
5852 | 5852 |
5853 | 5853 |
5854 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 5854 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
5855 ASSERT(!compiler->is_optimizing()); | 5855 ASSERT(!compiler->is_optimizing()); |
5856 StubCode* stub_code = compiler->isolate()->stub_code(); | 5856 StubCode* stub_code = compiler->isolate()->stub_code(); |
5857 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); | 5857 const ExternalLabel label(stub_code->DebugStepCheckEntryPoint()); |
5858 __ movq(R10, Immediate(0)); | |
5859 __ movq(RBX, Immediate(0)); | |
5860 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 5858 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
5861 #if defined(DEBUG) | 5859 #if defined(DEBUG) |
5862 __ movq(R10, Immediate(kInvalidObjectPointer)); | 5860 __ movq(R10, Immediate(kInvalidObjectPointer)); |
5863 __ movq(RBX, Immediate(kInvalidObjectPointer)); | 5861 __ movq(RBX, Immediate(kInvalidObjectPointer)); |
5864 #endif | 5862 #endif |
5865 } | 5863 } |
5866 | 5864 |
5867 } // namespace dart | 5865 } // namespace dart |
5868 | 5866 |
5869 #undef __ | 5867 #undef __ |
5870 | 5868 |
5871 #endif // defined TARGET_ARCH_X64 | 5869 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |