| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 Handle<String> subject, | 55 Handle<String> subject, |
| 56 Handle<Object> index); | 56 Handle<Object> index); |
| 57 | 57 |
| 58 // Call RegExp.prototyp.exec(string) in a loop. | 58 // Call RegExp.prototyp.exec(string) in a loop. |
| 59 // Used by String.prototype.match and String.prototype.replace. | 59 // Used by String.prototype.match and String.prototype.replace. |
| 60 // This function calls the garbage collector if necessary. | 60 // This function calls the garbage collector if necessary. |
| 61 static Handle<Object> ExecGlobal(Handle<JSRegExp> regexp, | 61 static Handle<Object> ExecGlobal(Handle<JSRegExp> regexp, |
| 62 Handle<String> subject); | 62 Handle<String> subject); |
| 63 | 63 |
| 64 static Handle<Object> AtomCompile(Handle<JSRegExp> re, | 64 static Handle<Object> AtomCompile(Handle<JSRegExp> re, |
| 65 Handle<String> pattern); | 65 Handle<String> pattern, |
| 66 int flags); |
| 66 | 67 |
| 67 static Handle<Object> AtomExec(Handle<JSRegExp> regexp, | 68 static Handle<Object> AtomExec(Handle<JSRegExp> regexp, |
| 68 Handle<String> subject, | 69 Handle<String> subject, |
| 69 Handle<Object> index); | 70 Handle<Object> index); |
| 70 | 71 |
| 71 static Handle<Object> AtomExecGlobal(Handle<JSRegExp> regexp, | 72 static Handle<Object> AtomExecGlobal(Handle<JSRegExp> regexp, |
| 72 Handle<String> subject); | 73 Handle<String> subject); |
| 73 | 74 |
| 74 static Handle<Object> JsreCompile(Handle<JSRegExp> re, | 75 static Handle<Object> JsreCompile(Handle<JSRegExp> re, |
| 75 Handle<String> pattern, | 76 Handle<String> pattern, |
| 76 Handle<String> flags); | 77 int flags); |
| 77 | 78 |
| 78 static Handle<Object> JsreExec(Handle<JSRegExp> regexp, | 79 static Handle<Object> JsreExec(Handle<JSRegExp> regexp, |
| 79 Handle<String> subject, | 80 Handle<String> subject, |
| 80 Handle<Object> index); | 81 Handle<Object> index); |
| 81 | 82 |
| 82 static Handle<Object> JsreExecGlobal(Handle<JSRegExp> regexp, | 83 static Handle<Object> JsreExecGlobal(Handle<JSRegExp> regexp, |
| 83 Handle<String> subject); | 84 Handle<String> subject); |
| 84 | 85 |
| 85 static void NewSpaceCollectionPrologue(); | 86 static void NewSpaceCollectionPrologue(); |
| 86 static void OldSpaceCollectionPrologue(); | 87 static void OldSpaceCollectionPrologue(); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 static char* utf8_subject_cache_; | 121 static char* utf8_subject_cache_; |
| 121 static int utf8_length_cache_; | 122 static int utf8_length_cache_; |
| 122 static int utf8_position_; | 123 static int utf8_position_; |
| 123 static int character_position_; | 124 static int character_position_; |
| 124 }; | 125 }; |
| 125 | 126 |
| 126 | 127 |
| 127 } } // namespace v8::internal | 128 } } // namespace v8::internal |
| 128 | 129 |
| 129 #endif // V8_JSREGEXP_H_ | 130 #endif // V8_JSREGEXP_H_ |
| OLD | NEW |