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

Unified Diff: runtime/vm/regexp_assembler.cc

Issue 835843004: Eliminate bounds checks on fixed-length registers array. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/constant_propagator.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/regexp_assembler.cc
diff --git a/runtime/vm/regexp_assembler.cc b/runtime/vm/regexp_assembler.cc
index c1d5d510c17feadd078f3c8764db29dc8292abab..4a2fed2b7f93b2dd3b80b529a14357286c94a715 100644
--- a/runtime/vm/regexp_assembler.cc
+++ b/runtime/vm/regexp_assembler.cc
@@ -199,7 +199,11 @@ void IRRegExpMacroAssembler::GenerateEntryBlock() {
// Generate a local list variable to represent the backtracking stack.
StoreLocal(stack_, Bind(new(I) ConstantInstr(stack_array_)));
PushArgumentInstr* stack_push = PushLocal(stack_);
- Do(InstanceCall(InstanceCallDescriptor(Symbols::clear()), stack_push));
+ PushArgumentInstr* zero_push = PushArgument(Bind(Uint64Constant(0)));
+ Do(InstanceCall(InstanceCallDescriptor(
+ Library::PrivateCoreLibName(Symbols::_setLength())),
+ stack_push,
+ zero_push));
// Jump to the start block.
current_instruction_->Goto(start_block_);
« no previous file with comments | « runtime/vm/constant_propagator.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698