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

Unified Diff: runtime/lib/regexp_jsc.cc

Issue 11028145: Changed StackZone and ApiZone to be containers for Zone. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added assertion for ApiZone linking. Created 8 years, 2 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
Index: runtime/lib/regexp_jsc.cc
diff --git a/runtime/lib/regexp_jsc.cc b/runtime/lib/regexp_jsc.cc
index ef36edd516754eb1937fd761b73aaea193613dcd..31cee70a1f59e91044cb4d09853dbaa8e4b0a870 100644
--- a/runtime/lib/regexp_jsc.cc
+++ b/runtime/lib/regexp_jsc.cc
@@ -16,7 +16,7 @@
namespace dart {
static uint16_t* GetTwoByteData(const String& str) {
- StackZone* zone = Isolate::Current()->current_zone();
+ Zone* zone = Isolate::Current()->current_zone();
uint16_t* two_byte_str = zone->Alloc<uint16_t>(str.Length());
for (intptr_t i = 0; i < str.Length(); i++) {
two_byte_str[i] = str.CharAt(i);
@@ -117,7 +117,7 @@ RawArray* Jscre::Execute(const JSRegExp& regex,
ASSERT(jscregexp != NULL);
const Smi& num_bracket_exprs = Smi::Handle(regex.num_bracket_expressions());
intptr_t num_bracket_expressions = num_bracket_exprs.Value();
- StackZone* zone = Isolate::Current()->current_zone();
+ Zone* zone = Isolate::Current()->current_zone();
// The jscre library rounds the passed in size to a multiple of 3 in order
// to reuse the passed in offsets array as a temporary chunk of working
// storage during matching, so we just pass in a size which is a multiple

Powered by Google App Engine
This is Rietveld 408576698