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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #include "regexp-stack.h" | 44 #include "regexp-stack.h" |
45 | 45 |
46 #if V8_TARGET_ARCH_IA32 | 46 #if V8_TARGET_ARCH_IA32 |
47 #include "ia32/macro-assembler-ia32.h" | 47 #include "ia32/macro-assembler-ia32.h" |
48 #include "ia32/regexp-macro-assembler-ia32.h" | 48 #include "ia32/regexp-macro-assembler-ia32.h" |
49 #elif V8_TARGET_ARCH_X64 | 49 #elif V8_TARGET_ARCH_X64 |
50 #include "x64/macro-assembler-x64.h" | 50 #include "x64/macro-assembler-x64.h" |
51 #include "x64/regexp-macro-assembler-x64.h" | 51 #include "x64/regexp-macro-assembler-x64.h" |
52 #elif V8_TARGET_ARCH_ARM | 52 #elif V8_TARGET_ARCH_ARM |
53 #include "arm/regexp-macro-assembler-arm.h" | 53 #include "arm/regexp-macro-assembler-arm.h" |
| 54 #else |
| 55 #error Unsupported target architecture. |
54 #endif | 56 #endif |
55 | 57 |
56 #include "interpreter-irregexp.h" | 58 #include "interpreter-irregexp.h" |
57 | 59 |
58 | 60 |
59 namespace v8 { | 61 namespace v8 { |
60 namespace internal { | 62 namespace internal { |
61 | 63 |
62 | 64 |
63 Handle<Object> RegExpImpl::CreateRegExpLiteral(Handle<JSFunction> constructor, | 65 Handle<Object> RegExpImpl::CreateRegExpLiteral(Handle<JSFunction> constructor, |
(...skipping 4433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4497 EmbeddedVector<byte, 1024> codes; | 4499 EmbeddedVector<byte, 1024> codes; |
4498 RegExpMacroAssemblerIrregexp macro_assembler(codes); | 4500 RegExpMacroAssemblerIrregexp macro_assembler(codes); |
4499 return compiler.Assemble(¯o_assembler, | 4501 return compiler.Assemble(¯o_assembler, |
4500 node, | 4502 node, |
4501 data->capture_count, | 4503 data->capture_count, |
4502 pattern); | 4504 pattern); |
4503 } | 4505 } |
4504 | 4506 |
4505 | 4507 |
4506 }} // namespace v8::internal | 4508 }} // namespace v8::internal |
OLD | NEW |