mirror of
https://github.com/dart-lang/sdk
synced 2024-11-05 18:22:09 +00:00
bcf2900a26
- Fix inlining of new List(n) to propogate deopt id. - Fix CreateArrayOpt to check for a Smi length. R=vegorov@google.com Review-Url: https://codereview.chromium.org/2900963008 .
27 lines
778 B
C++
27 lines
778 B
C++
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
#include "vm/regexp_assembler.h"
|
|
|
|
#include "vm/flags.h"
|
|
#include "vm/regexp.h"
|
|
|
|
namespace dart {
|
|
|
|
BlockLabel::BlockLabel()
|
|
: block_(NULL), is_bound_(false), is_linked_(false), pos_(-1) {
|
|
if (!FLAG_interpret_irregexp) {
|
|
// Only needed by the compiled IR backend.
|
|
block_ = new JoinEntryInstr(-1, -1, Thread::Current()->GetNextDeoptId());
|
|
}
|
|
}
|
|
|
|
|
|
RegExpMacroAssembler::RegExpMacroAssembler(Zone* zone)
|
|
: slow_safe_compiler_(false), global_mode_(NOT_GLOBAL), zone_(zone) {}
|
|
|
|
|
|
RegExpMacroAssembler::~RegExpMacroAssembler() {}
|
|
|
|
} // namespace dart
|