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

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

Issue 2951053003: VM(RegExp): Allow OSR optimization of RegExp :matcher functions. (Closed)
Patch Set: Fix bugs with stack growing and block pruning Created 3 years, 6 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
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_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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698