| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 // Execute a regular expression once on the subject, starting from | 108 // Execute a regular expression once on the subject, starting from |
| 109 // character "index". | 109 // character "index". |
| 110 // If successful, returns RE_SUCCESS and set the capture positions | 110 // If successful, returns RE_SUCCESS and set the capture positions |
| 111 // in the first registers. | 111 // in the first registers. |
| 112 // If matching fails, returns RE_FAILURE. | 112 // If matching fails, returns RE_FAILURE. |
| 113 // If execution fails, sets a pending exception and returns RE_EXCEPTION. | 113 // If execution fails, sets a pending exception and returns RE_EXCEPTION. |
| 114 static IrregexpResult IrregexpExecOnce(Handle<JSRegExp> regexp, | 114 static IrregexpResult IrregexpExecOnce(Handle<JSRegExp> regexp, |
| 115 Handle<String> subject, | 115 Handle<String> subject, |
| 116 int index, | 116 int index, |
| 117 Vector<int32_t> registers); | 117 Vector<int> registers); |
| 118 | 118 |
| 119 // Execute an Irregexp bytecode pattern. | 119 // Execute an Irregexp bytecode pattern. |
| 120 // On a successful match, the result is a JSArray containing | 120 // On a successful match, the result is a JSArray containing |
| 121 // captured positions. On a failure, the result is the null value. | 121 // captured positions. On a failure, the result is the null value. |
| 122 // Returns an empty handle in case of an exception. | 122 // Returns an empty handle in case of an exception. |
| 123 static Handle<Object> IrregexpExec(Handle<JSRegExp> regexp, | 123 static Handle<Object> IrregexpExec(Handle<JSRegExp> regexp, |
| 124 Handle<String> subject, | 124 Handle<String> subject, |
| 125 int index, | 125 int index, |
| 126 Handle<JSArray> lastMatchInfo); | 126 Handle<JSArray> lastMatchInfo); |
| 127 | 127 |
| (...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 int offsets_vector_length_; | 1475 int offsets_vector_length_; |
| 1476 static int static_offsets_vector_[kStaticOffsetsVectorSize]; | 1476 static int static_offsets_vector_[kStaticOffsetsVectorSize]; |
| 1477 | 1477 |
| 1478 friend class ExternalReference; | 1478 friend class ExternalReference; |
| 1479 }; | 1479 }; |
| 1480 | 1480 |
| 1481 | 1481 |
| 1482 } } // namespace v8::internal | 1482 } } // namespace v8::internal |
| 1483 | 1483 |
| 1484 #endif // V8_JSREGEXP_H_ | 1484 #endif // V8_JSREGEXP_H_ |
| OLD | NEW |