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 7135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7146 | 7146 |
7147 | 7147 |
7148 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 7148 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
7149 ASSERT(!compiler->is_optimizing()); | 7149 ASSERT(!compiler->is_optimizing()); |
7150 __ BranchLinkPatchable(*StubCode::DebugStepCheck_entry()); | 7150 __ BranchLinkPatchable(*StubCode::DebugStepCheck_entry()); |
7151 compiler->AddCurrentDescriptor(stub_kind_, deopt_id_, token_pos()); | 7151 compiler->AddCurrentDescriptor(stub_kind_, deopt_id_, token_pos()); |
7152 compiler->RecordSafepoint(locs()); | 7152 compiler->RecordSafepoint(locs()); |
7153 } | 7153 } |
7154 | 7154 |
7155 | 7155 |
7156 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary(Zone* zone, | |
7157 bool opt) const { | |
7158 const intptr_t kNumInputs = 1; | |
7159 const intptr_t kNumTemps = 0; | |
7160 LocationSummary* locs = new (zone) | |
7161 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall); | |
7162 locs->set_in(0, Location::RegisterLocation(R0)); | |
7163 locs->set_out(0, Location::RegisterLocation(R0)); | |
7164 return locs; | |
7165 } | |
7166 | |
7167 | |
7168 void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | |
7169 const Register typed_data = locs()->in(0).reg(); | |
7170 const Register result = locs()->out(0).reg(); | |
7171 __ PushObject(Object::null_object()); | |
7172 __ Push(typed_data); | |
7173 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(), | |
7174 kGrowRegExpStackRuntimeEntry, 1, locs()); | |
7175 __ Drop(1); | |
7176 __ Pop(result); | |
7177 } | |
7178 | |
7179 | |
7180 } // namespace dart | 7156 } // namespace dart |
7181 | 7157 |
7182 #endif // defined TARGET_ARCH_ARM | 7158 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |