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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
7 | 7 |
8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 6946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6957 stub_entry, | 6957 stub_entry, |
6958 RawPcDescriptors::kOther, | 6958 RawPcDescriptors::kOther, |
6959 locs()); | 6959 locs()); |
6960 compiler->AddStubCallTarget(stub); | 6960 compiler->AddStubCallTarget(stub); |
6961 __ Drop(ArgumentCount()); // Discard arguments. | 6961 __ Drop(ArgumentCount()); // Discard arguments. |
6962 } | 6962 } |
6963 | 6963 |
6964 | 6964 |
6965 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6965 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
6966 ASSERT(!compiler->is_optimizing()); | 6966 ASSERT(!compiler->is_optimizing()); |
6967 compiler->GenerateCall( | 6967 __ BranchLinkPatchable(*StubCode::DebugStepCheck_entry()); |
6968 token_pos(), *StubCode::DebugStepCheck_entry(), stub_kind_, locs()); | 6968 compiler->AddCurrentDescriptor(stub_kind_, Thread::kNoDeoptId, token_pos()); |
| 6969 compiler->RecordSafepoint(locs()); |
6969 } | 6970 } |
6970 | 6971 |
6971 | 6972 |
6972 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary( | 6973 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary( |
6973 Zone* zone, bool opt) const { | 6974 Zone* zone, bool opt) const { |
6974 const intptr_t kNumInputs = 1; | 6975 const intptr_t kNumInputs = 1; |
6975 const intptr_t kNumTemps = 0; | 6976 const intptr_t kNumTemps = 0; |
6976 LocationSummary* locs = new(zone) LocationSummary( | 6977 LocationSummary* locs = new(zone) LocationSummary( |
6977 zone, kNumInputs, kNumTemps, LocationSummary::kCall); | 6978 zone, kNumInputs, kNumTemps, LocationSummary::kCall); |
6978 locs->set_in(0, Location::RegisterLocation(R0)); | 6979 locs->set_in(0, Location::RegisterLocation(R0)); |
(...skipping 13 matching lines...) Expand all Loading... |
6992 1, | 6993 1, |
6993 locs()); | 6994 locs()); |
6994 __ Drop(1); | 6995 __ Drop(1); |
6995 __ Pop(result); | 6996 __ Pop(result); |
6996 } | 6997 } |
6997 | 6998 |
6998 | 6999 |
6999 } // namespace dart | 7000 } // namespace dart |
7000 | 7001 |
7001 #endif // defined TARGET_ARCH_ARM | 7002 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |