Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 22 matching lines...) Expand all Loading... | |
| 33 #include "ast.h" | 33 #include "ast.h" |
| 34 #include "execution.h" | 34 #include "execution.h" |
| 35 #include "factory.h" | 35 #include "factory.h" |
| 36 #include "jsregexp-inl.h" | 36 #include "jsregexp-inl.h" |
| 37 #include "platform.h" | 37 #include "platform.h" |
| 38 #include "runtime.h" | 38 #include "runtime.h" |
| 39 #include "top.h" | 39 #include "top.h" |
| 40 #include "compilation-cache.h" | 40 #include "compilation-cache.h" |
| 41 #include "string-stream.h" | 41 #include "string-stream.h" |
| 42 #include "parser.h" | 42 #include "parser.h" |
| 43 #include "assembler-irregexp.h" | |
| 44 #include "regexp-macro-assembler.h" | 43 #include "regexp-macro-assembler.h" |
| 45 #include "regexp-macro-assembler-tracer.h" | 44 #include "regexp-macro-assembler-tracer.h" |
| 46 #include "regexp-macro-assembler-irregexp.h" | 45 #include "regexp-macro-assembler-irregexp.h" |
| 47 | 46 |
| 48 #ifdef ARM | 47 #ifdef ARM |
| 49 #include "regexp-macro-assembler-arm.h" | 48 #include "regexp-macro-assembler-arm.h" |
| 50 #else // IA32 | 49 #else // IA32 |
| 51 #include "macro-assembler-ia32.h" | 50 #include "macro-assembler-ia32.h" |
| 52 #include "regexp-macro-assembler-ia32.h" | 51 #include "regexp-macro-assembler-ia32.h" |
| 53 #endif | 52 #endif |
| (...skipping 2669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2723 #ifdef ARM | 2722 #ifdef ARM |
| 2724 UNIMPLEMENTED(); | 2723 UNIMPLEMENTED(); |
| 2725 #else // IA32 | 2724 #else // IA32 |
| 2726 RegExpMacroAssemblerIA32 macro_assembler(RegExpMacroAssemblerIA32::UC16, | 2725 RegExpMacroAssemblerIA32 macro_assembler(RegExpMacroAssemblerIA32::UC16, |
| 2727 (input->capture_count + 1) * 2); | 2726 (input->capture_count + 1) * 2); |
| 2728 return compiler.Assemble(¯o_assembler, | 2727 return compiler.Assemble(¯o_assembler, |
| 2729 node, | 2728 node, |
| 2730 input->capture_count); | 2729 input->capture_count); |
| 2731 #endif | 2730 #endif |
| 2732 } | 2731 } |
| 2733 byte codes[1024]; | 2732 byte codes[1024]; |
|
Christian Plesner Hansen
2008/11/28 10:13:25
You can use EmbeddedVector<byte, 1024> instead.
| |
| 2734 IrregexpAssembler assembler(Vector<byte>(codes, 1024)); | 2733 RegExpMacroAssemblerIrregexp macro_assembler(Vector<byte>(codes, 1024)); |
| 2735 RegExpMacroAssemblerIrregexp macro_assembler(&assembler); | |
| 2736 return compiler.Assemble(¯o_assembler, | 2734 return compiler.Assemble(¯o_assembler, |
| 2737 node, | 2735 node, |
| 2738 input->capture_count); | 2736 input->capture_count); |
| 2739 } | 2737 } |
| 2740 | 2738 |
| 2741 | 2739 |
| 2742 }} // namespace v8::internal | 2740 }} // namespace v8::internal |
| OLD | NEW |