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

Unified Diff: src/jsregexp.cc

Issue 12807: * Fixes and tweaks to regexp-ia32. (Closed)
Patch Set: Created 12 years, 1 month 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
Index: src/jsregexp.cc
diff --git a/src/jsregexp.cc b/src/jsregexp.cc
index 43148a9b0e75211fa72d5f4b3c9a77c27454cded..be767bff71f03acec1bbbb496ec409a9fde62abf 100644
--- a/src/jsregexp.cc
+++ b/src/jsregexp.cc
@@ -513,12 +513,12 @@ Handle<Object> RegExpImpl::IrregexpExecOnce(Handle<JSRegExp> regexp,
int start_offset = string_offset + previous_index * sizeof(uc16);
int end_offset =
string_offset + two_byte_subject->length() * sizeof(uc16);
- typedef bool testfunc(String**, int, int, int*);
- testfunc* test = FUNCTION_CAST<testfunc*>(code->entry());
- rc = test(two_byte_subject.location(),
- start_offset,
- end_offset,
- offsets_vector);
+ rc = RegExpMacroAssemblerIA32::Execute(code,
+ two_byte_subject.location(),
+ start_offset,
+ end_offset,
+ offsets_vector,
+ previous_index == 0);
if (rc) {
// Capture values are relative to start_offset only.
for (int i = 0; i < offsets_vector_length; i++) {

Powered by Google App Engine
This is Rietveld 408576698