| OLD | NEW | 
|---|
| 1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 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 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1459     } | 1459     } | 
| 1460   } | 1460   } | 
| 1461 } | 1461 } | 
| 1462 | 1462 | 
| 1463 | 1463 | 
| 1464 static void TestRangeCaseIndependence(CharacterRange input, | 1464 static void TestRangeCaseIndependence(CharacterRange input, | 
| 1465                                       Vector<CharacterRange> expected) { | 1465                                       Vector<CharacterRange> expected) { | 
| 1466   ZoneScope zone_scope(DELETE_ON_EXIT); | 1466   ZoneScope zone_scope(DELETE_ON_EXIT); | 
| 1467   int count = expected.length(); | 1467   int count = expected.length(); | 
| 1468   ZoneList<CharacterRange>* list = new ZoneList<CharacterRange>(count); | 1468   ZoneList<CharacterRange>* list = new ZoneList<CharacterRange>(count); | 
| 1469   input.AddCaseEquivalents(list); | 1469   input.AddCaseEquivalents(list, false); | 
| 1470   CHECK_EQ(count, list->length()); | 1470   CHECK_EQ(count, list->length()); | 
| 1471   for (int i = 0; i < list->length(); i++) { | 1471   for (int i = 0; i < list->length(); i++) { | 
| 1472     CHECK_EQ(expected[i].from(), list->at(i).from()); | 1472     CHECK_EQ(expected[i].from(), list->at(i).from()); | 
| 1473     CHECK_EQ(expected[i].to(), list->at(i).to()); | 1473     CHECK_EQ(expected[i].to(), list->at(i).to()); | 
| 1474   } | 1474   } | 
| 1475 } | 1475 } | 
| 1476 | 1476 | 
| 1477 | 1477 | 
| 1478 static void TestSimpleRangeCaseIndependence(CharacterRange input, | 1478 static void TestSimpleRangeCaseIndependence(CharacterRange input, | 
| 1479                                             CharacterRange expected) { | 1479                                             CharacterRange expected) { | 
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1547       CHECK(!InClass(i, excluded)); | 1547       CHECK(!InClass(i, excluded)); | 
| 1548     } | 1548     } | 
| 1549   } | 1549   } | 
| 1550 } | 1550 } | 
| 1551 | 1551 | 
| 1552 | 1552 | 
| 1553 TEST(Graph) { | 1553 TEST(Graph) { | 
| 1554   V8::Initialize(NULL); | 1554   V8::Initialize(NULL); | 
| 1555   Execute("(?:(?:x(.))?\1)+$", false, true, true); | 1555   Execute("(?:(?:x(.))?\1)+$", false, true, true); | 
| 1556 } | 1556 } | 
| OLD | NEW | 
|---|