Index: src/jsregexp.cc |
diff --git a/src/jsregexp.cc b/src/jsregexp.cc |
index fd87a805399409d6afe12ab38bbc87649f84b451..e7d0dc47b3decb96dee3733fa4f9617993c77db3 100644 |
--- a/src/jsregexp.cc |
+++ b/src/jsregexp.cc |
@@ -1873,8 +1873,9 @@ static void EmitUseLookupTable( |
for (int i = j; i < kSize; i++) { |
templ[i] = bit; |
} |
+ Factory* factory = Isolate::Current()->factory(); |
// TODO(erikcorry): Cache these. |
- Handle<ByteArray> ba = FACTORY->NewByteArray(kSize, TENURED); |
+ Handle<ByteArray> ba = factory->NewByteArray(kSize, TENURED); |
for (int i = 0; i < kSize; i++) { |
ba->set(i, templ[i]); |
} |
@@ -3827,8 +3828,8 @@ bool BoyerMooreLookahead::EmitSkipInstructions(RegExpMacroAssembler* masm) { |
return true; |
} |
- Handle<ByteArray> boolean_skip_table = |
- FACTORY->NewByteArray(kSize, TENURED); |
+ Factory* factory = Isolate::Current()->factory(); |
+ Handle<ByteArray> boolean_skip_table = factory->NewByteArray(kSize, TENURED); |
int skip_distance = GetSkipTable( |
min_lookahead, max_lookahead, boolean_skip_table); |
ASSERT(skip_distance != 0); |