Index: src/regexp-macro-assembler.h |
diff --git a/src/regexp-macro-assembler.h b/src/regexp-macro-assembler.h |
index 85874358e5e87722b246bca6fc1e64af751af6ac..fe807691944f08b22aa1d47e7d495d7a1eb21158 100644 |
--- a/src/regexp-macro-assembler.h |
+++ b/src/regexp-macro-assembler.h |
@@ -1,4 +1,4 @@ |
-// Copyright 2008 the V8 project authors. All rights reserved. |
+// Copyright 2012 the V8 project authors. All rights reserved. |
// Redistribution and use in source and binary forms, with or without |
// modification, are permitted provided that the following conditions are |
// met: |
@@ -183,8 +183,14 @@ class RegExpMacroAssembler { |
void set_slow_safe(bool ssc) { slow_safe_compiler_ = ssc; } |
bool slow_safe() { return slow_safe_compiler_; } |
+ // Set whether the regular expression has the global flag. Exiting due to |
+ // a failure in a global regexp may still mean success overall. |
+ void set_global(bool global) { global_ = global; } |
+ bool global() { return global_; } |
+ |
private: |
bool slow_safe_compiler_; |
+ bool global_; |
}; |
@@ -249,6 +255,7 @@ class NativeRegExpMacroAssembler: public RegExpMacroAssembler { |
const byte* input_start, |
const byte* input_end, |
int* output, |
+ int output_size, |
Isolate* isolate); |
}; |