OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 25 matching lines...) Expand all Loading... |
36 #include "top.h" | 36 #include "top.h" |
37 #include "compilation-cache.h" | 37 #include "compilation-cache.h" |
38 #include "string-stream.h" | 38 #include "string-stream.h" |
39 #include "parser.h" | 39 #include "parser.h" |
40 #include "regexp-macro-assembler.h" | 40 #include "regexp-macro-assembler.h" |
41 #include "regexp-macro-assembler-tracer.h" | 41 #include "regexp-macro-assembler-tracer.h" |
42 #include "regexp-macro-assembler-irregexp.h" | 42 #include "regexp-macro-assembler-irregexp.h" |
43 #include "regexp-stack.h" | 43 #include "regexp-stack.h" |
44 | 44 |
45 #ifdef ARM | 45 #ifdef ARM |
46 #include "regexp-macro-assembler-arm.h" | 46 #include "arm/regexp-macro-assembler-arm.h" |
47 #else // IA32 | 47 #else // IA32 |
48 #include "macro-assembler-ia32.h" | 48 #include "ia32/macro-assembler-ia32.h" |
49 #include "regexp-macro-assembler-ia32.h" | 49 #include "ia32/regexp-macro-assembler-ia32.h" |
50 #endif | 50 #endif |
51 | 51 |
52 #include "interpreter-irregexp.h" | 52 #include "interpreter-irregexp.h" |
53 | 53 |
54 | 54 |
55 namespace v8 { namespace internal { | 55 namespace v8 { namespace internal { |
56 | 56 |
57 | 57 |
58 Handle<Object> RegExpImpl::CreateRegExpLiteral(Handle<JSFunction> constructor, | 58 Handle<Object> RegExpImpl::CreateRegExpLiteral(Handle<JSFunction> constructor, |
59 Handle<String> pattern, | 59 Handle<String> pattern, |
(...skipping 4394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4454 EmbeddedVector<byte, 1024> codes; | 4454 EmbeddedVector<byte, 1024> codes; |
4455 RegExpMacroAssemblerIrregexp macro_assembler(codes); | 4455 RegExpMacroAssemblerIrregexp macro_assembler(codes); |
4456 return compiler.Assemble(¯o_assembler, | 4456 return compiler.Assemble(¯o_assembler, |
4457 node, | 4457 node, |
4458 data->capture_count, | 4458 data->capture_count, |
4459 pattern); | 4459 pattern); |
4460 } | 4460 } |
4461 | 4461 |
4462 | 4462 |
4463 }} // namespace v8::internal | 4463 }} // namespace v8::internal |
OLD | NEW |