| 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 int start_offset, | 683 int start_offset, |
| 684 const byte* input_start, | 684 const byte* input_start, |
| 685 const byte* input_end, | 685 const byte* input_end, |
| 686 int* captures) { | 686 int* captures) { |
| 687 return NativeRegExpMacroAssembler::Execute( | 687 return NativeRegExpMacroAssembler::Execute( |
| 688 code, | 688 code, |
| 689 input, | 689 input, |
| 690 start_offset, | 690 start_offset, |
| 691 input_start, | 691 input_start, |
| 692 input_end, | 692 input_end, |
| 693 captures); | 693 captures, |
| 694 Isolate::Current()); |
| 694 } | 695 } |
| 695 | 696 |
| 696 | 697 |
| 697 TEST(MacroAssemblerNativeSuccess) { | 698 TEST(MacroAssemblerNativeSuccess) { |
| 698 v8::V8::Initialize(); | 699 v8::V8::Initialize(); |
| 699 ContextInitializer initializer; | 700 ContextInitializer initializer; |
| 700 | 701 |
| 701 ArchRegExpMacroAssembler m(NativeRegExpMacroAssembler::ASCII, 4); | 702 ArchRegExpMacroAssembler m(NativeRegExpMacroAssembler::ASCII, 4); |
| 702 | 703 |
| 703 m.Succeed(); | 704 m.Succeed(); |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1782 bool in_second = CharacterInSet(&l2, i); | 1783 bool in_second = CharacterInSet(&l2, i); |
| 1783 CHECK((in_first || in_second) == CharacterInSet(&all, i)); | 1784 CHECK((in_first || in_second) == CharacterInSet(&all, i)); |
| 1784 } | 1785 } |
| 1785 } | 1786 } |
| 1786 | 1787 |
| 1787 | 1788 |
| 1788 TEST(Graph) { | 1789 TEST(Graph) { |
| 1789 V8::Initialize(NULL); | 1790 V8::Initialize(NULL); |
| 1790 Execute("\\b\\w+\\b", false, true, true); | 1791 Execute("\\b\\w+\\b", false, true, true); |
| 1791 } | 1792 } |
| OLD | NEW |