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

Side by Side Diff: runtime/vm/intermediate_language_arm64.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 5935 matching lines...) Expand 10 before | Expand all | Expand 10 after
5946 5946
5947 5947
5948 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 5948 void DebugStepCheckInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5949 ASSERT(!compiler->is_optimizing()); 5949 ASSERT(!compiler->is_optimizing());
5950 __ BranchLinkPatchable(*StubCode::DebugStepCheck_entry()); 5950 __ BranchLinkPatchable(*StubCode::DebugStepCheck_entry());
5951 compiler->AddCurrentDescriptor(stub_kind_, deopt_id_, token_pos()); 5951 compiler->AddCurrentDescriptor(stub_kind_, deopt_id_, token_pos());
5952 compiler->RecordSafepoint(locs()); 5952 compiler->RecordSafepoint(locs());
5953 } 5953 }
5954 5954
5955 5955
5956 LocationSummary* GrowRegExpStackInstr::MakeLocationSummary(Zone* zone,
5957 bool opt) const {
5958 const intptr_t kNumInputs = 1;
5959 const intptr_t kNumTemps = 0;
5960 LocationSummary* locs = new (zone)
5961 LocationSummary(zone, kNumInputs, kNumTemps, LocationSummary::kCall);
5962 locs->set_in(0, Location::RegisterLocation(R0));
5963 locs->set_out(0, Location::RegisterLocation(R0));
5964 return locs;
5965 }
5966
5967
5968 void GrowRegExpStackInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5969 const Register typed_data = locs()->in(0).reg();
5970 const Register result = locs()->out(0).reg();
5971 __ PushObject(Object::null_object());
5972 __ Push(typed_data);
5973 compiler->GenerateRuntimeCall(TokenPosition::kNoSource, deopt_id(),
5974 kGrowRegExpStackRuntimeEntry, 1, locs());
5975 __ Drop(1);
5976 __ Pop(result);
5977 }
5978
5979
5980 } // namespace dart 5956 } // namespace dart
5981 5957
5982 #endif // defined TARGET_ARCH_ARM64 5958 #endif // defined TARGET_ARCH_ARM64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698