| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 CHECK_EQ(42, captures[1]); | 1334 CHECK_EQ(42, captures[1]); |
| 1335 | 1335 |
| 1336 isolate->clear_pending_exception(); | 1336 isolate->clear_pending_exception(); |
| 1337 } | 1337 } |
| 1338 | 1338 |
| 1339 #else // V8_INTERPRETED_REGEXP | 1339 #else // V8_INTERPRETED_REGEXP |
| 1340 | 1340 |
| 1341 TEST(MacroAssembler) { | 1341 TEST(MacroAssembler) { |
| 1342 V8::Initialize(NULL); | 1342 V8::Initialize(NULL); |
| 1343 byte codes[1024]; | 1343 byte codes[1024]; |
| 1344 RegExpMacroAssemblerIrregexp m(Vector<byte>(codes, 1024)); | 1344 RegExpMacroAssemblerIrregexp m(Vector<byte>(codes, 1024), |
| 1345 Isolate::Current()->zone()); |
| 1345 // ^f(o)o. | 1346 // ^f(o)o. |
| 1346 Label fail, fail2, start; | 1347 Label fail, fail2, start; |
| 1347 uc16 foo_chars[3]; | 1348 uc16 foo_chars[3]; |
| 1348 foo_chars[0] = 'f'; | 1349 foo_chars[0] = 'f'; |
| 1349 foo_chars[1] = 'o'; | 1350 foo_chars[1] = 'o'; |
| 1350 foo_chars[2] = 'o'; | 1351 foo_chars[2] = 'o'; |
| 1351 Vector<const uc16> foo(foo_chars, 3); | 1352 Vector<const uc16> foo(foo_chars, 3); |
| 1352 m.SetRegister(4, 42); | 1353 m.SetRegister(4, 42); |
| 1353 m.PushRegister(4, RegExpMacroAssembler::kNoStackLimitCheck); | 1354 m.PushRegister(4, RegExpMacroAssembler::kNoStackLimitCheck); |
| 1354 m.AdvanceRegister(4, 42); | 1355 m.AdvanceRegister(4, 42); |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1791 ZoneList<CharacterRange> first_only(4, Isolate::Current()->zone()); | 1792 ZoneList<CharacterRange> first_only(4, Isolate::Current()->zone()); |
| 1792 ZoneList<CharacterRange> second_only(4, Isolate::Current()->zone()); | 1793 ZoneList<CharacterRange> second_only(4, Isolate::Current()->zone()); |
| 1793 ZoneList<CharacterRange> both(4, Isolate::Current()->zone()); | 1794 ZoneList<CharacterRange> both(4, Isolate::Current()->zone()); |
| 1794 } | 1795 } |
| 1795 | 1796 |
| 1796 | 1797 |
| 1797 TEST(Graph) { | 1798 TEST(Graph) { |
| 1798 V8::Initialize(NULL); | 1799 V8::Initialize(NULL); |
| 1799 Execute("\\b\\w+\\b", false, true, true); | 1800 Execute("\\b\\w+\\b", false, true, true); |
| 1800 } | 1801 } |
| OLD | NEW |