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

Unified Diff: runtime/lib/regexp_jsc.cc

Issue 11040062: Renamed Zone->StackZone, BaseZone->Zone, in preparation for changing isolate->get_zone() to return … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review changes 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
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/lib/string.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/regexp_jsc.cc
diff --git a/runtime/lib/regexp_jsc.cc b/runtime/lib/regexp_jsc.cc
index 31cee70a1f59e91044cb4d09853dbaa8e4b0a870..ef36edd516754eb1937fd761b73aaea193613dcd 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) {
- Zone* zone = Isolate::Current()->current_zone();
+ StackZone* 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();
- Zone* zone = Isolate::Current()->current_zone();
+ StackZone* 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
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/lib/string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698