Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: src/assembler.cc

Issue 1285163003: Move regexp implementation into its own folder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addressed comment Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/arm64/regexp-macro-assembler-arm64.cc ('k') | src/ast.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "src/base/utils/random-number-generator.h" 43 #include "src/base/utils/random-number-generator.h"
44 #include "src/builtins.h" 44 #include "src/builtins.h"
45 #include "src/codegen.h" 45 #include "src/codegen.h"
46 #include "src/counters.h" 46 #include "src/counters.h"
47 #include "src/cpu-profiler.h" 47 #include "src/cpu-profiler.h"
48 #include "src/debug/debug.h" 48 #include "src/debug/debug.h"
49 #include "src/deoptimizer.h" 49 #include "src/deoptimizer.h"
50 #include "src/execution.h" 50 #include "src/execution.h"
51 #include "src/ic/ic.h" 51 #include "src/ic/ic.h"
52 #include "src/ic/stub-cache.h" 52 #include "src/ic/stub-cache.h"
53 #include "src/jsregexp.h" 53 #include "src/regexp/jsregexp.h"
54 #include "src/regexp-macro-assembler.h" 54 #include "src/regexp/regexp-macro-assembler.h"
55 #include "src/regexp-stack.h" 55 #include "src/regexp/regexp-stack.h"
56 #include "src/runtime/runtime.h" 56 #include "src/runtime/runtime.h"
57 #include "src/snapshot/serialize.h" 57 #include "src/snapshot/serialize.h"
58 #include "src/token.h" 58 #include "src/token.h"
59 59
60 #if V8_TARGET_ARCH_IA32 60 #if V8_TARGET_ARCH_IA32
61 #include "src/ia32/assembler-ia32-inl.h" // NOLINT 61 #include "src/ia32/assembler-ia32-inl.h" // NOLINT
62 #elif V8_TARGET_ARCH_X64 62 #elif V8_TARGET_ARCH_X64
63 #include "src/x64/assembler-x64-inl.h" // NOLINT 63 #include "src/x64/assembler-x64-inl.h" // NOLINT
64 #elif V8_TARGET_ARCH_ARM64 64 #elif V8_TARGET_ARCH_ARM64
65 #include "src/arm64/assembler-arm64-inl.h" // NOLINT 65 #include "src/arm64/assembler-arm64-inl.h" // NOLINT
66 #elif V8_TARGET_ARCH_ARM 66 #elif V8_TARGET_ARCH_ARM
67 #include "src/arm/assembler-arm-inl.h" // NOLINT 67 #include "src/arm/assembler-arm-inl.h" // NOLINT
68 #elif V8_TARGET_ARCH_PPC 68 #elif V8_TARGET_ARCH_PPC
69 #include "src/ppc/assembler-ppc-inl.h" // NOLINT 69 #include "src/ppc/assembler-ppc-inl.h" // NOLINT
70 #elif V8_TARGET_ARCH_MIPS 70 #elif V8_TARGET_ARCH_MIPS
71 #include "src/mips/assembler-mips-inl.h" // NOLINT 71 #include "src/mips/assembler-mips-inl.h" // NOLINT
72 #elif V8_TARGET_ARCH_MIPS64 72 #elif V8_TARGET_ARCH_MIPS64
73 #include "src/mips64/assembler-mips64-inl.h" // NOLINT 73 #include "src/mips64/assembler-mips64-inl.h" // NOLINT
74 #elif V8_TARGET_ARCH_X87 74 #elif V8_TARGET_ARCH_X87
75 #include "src/x87/assembler-x87-inl.h" // NOLINT 75 #include "src/x87/assembler-x87-inl.h" // NOLINT
76 #else 76 #else
77 #error "Unknown architecture." 77 #error "Unknown architecture."
78 #endif 78 #endif
79 79
80 // Include native regexp-macro-assembler. 80 // Include native regexp-macro-assembler.
81 #ifndef V8_INTERPRETED_REGEXP 81 #ifndef V8_INTERPRETED_REGEXP
82 #if V8_TARGET_ARCH_IA32 82 #if V8_TARGET_ARCH_IA32
83 #include "src/ia32/regexp-macro-assembler-ia32.h" // NOLINT 83 #include "src/regexp/ia32/regexp-macro-assembler-ia32.h" // NOLINT
84 #elif V8_TARGET_ARCH_X64 84 #elif V8_TARGET_ARCH_X64
85 #include "src/x64/regexp-macro-assembler-x64.h" // NOLINT 85 #include "src/regexp/x64/regexp-macro-assembler-x64.h" // NOLINT
86 #elif V8_TARGET_ARCH_ARM64 86 #elif V8_TARGET_ARCH_ARM64
87 #include "src/arm64/regexp-macro-assembler-arm64.h" // NOLINT 87 #include "src/regexp/arm64/regexp-macro-assembler-arm64.h" // NOLINT
88 #elif V8_TARGET_ARCH_ARM 88 #elif V8_TARGET_ARCH_ARM
89 #include "src/arm/regexp-macro-assembler-arm.h" // NOLINT 89 #include "src/regexp/arm/regexp-macro-assembler-arm.h" // NOLINT
90 #elif V8_TARGET_ARCH_PPC 90 #elif V8_TARGET_ARCH_PPC
91 #include "src/ppc/regexp-macro-assembler-ppc.h" // NOLINT 91 #include "src/regexp/ppc/regexp-macro-assembler-ppc.h" // NOLINT
92 #elif V8_TARGET_ARCH_MIPS 92 #elif V8_TARGET_ARCH_MIPS
93 #include "src/mips/regexp-macro-assembler-mips.h" // NOLINT 93 #include "src/regexp/mips/regexp-macro-assembler-mips.h" // NOLINT
94 #elif V8_TARGET_ARCH_MIPS64 94 #elif V8_TARGET_ARCH_MIPS64
95 #include "src/mips64/regexp-macro-assembler-mips64.h" // NOLINT 95 #include "src/regexp/mips64/regexp-macro-assembler-mips64.h" // NOLINT
96 #elif V8_TARGET_ARCH_X87 96 #elif V8_TARGET_ARCH_X87
97 #include "src/x87/regexp-macro-assembler-x87.h" // NOLINT 97 #include "src/regexp/x87/regexp-macro-assembler-x87.h" // NOLINT
98 #else // Unknown architecture. 98 #else // Unknown architecture.
99 #error "Unknown architecture." 99 #error "Unknown architecture."
100 #endif // Target architecture. 100 #endif // Target architecture.
101 #endif // V8_INTERPRETED_REGEXP 101 #endif // V8_INTERPRETED_REGEXP
102 102
103 namespace v8 { 103 namespace v8 {
104 namespace internal { 104 namespace internal {
105 105
106 // ----------------------------------------------------------------------------- 106 // -----------------------------------------------------------------------------
107 // Common double constants. 107 // Common double constants.
(...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1821 1821
1822 1822
1823 void Assembler::DataAlign(int m) { 1823 void Assembler::DataAlign(int m) {
1824 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1824 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1825 while ((pc_offset() & (m - 1)) != 0) { 1825 while ((pc_offset() & (m - 1)) != 0) {
1826 db(0); 1826 db(0);
1827 } 1827 }
1828 } 1828 }
1829 } // namespace internal 1829 } // namespace internal
1830 } // namespace v8 1830 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/regexp-macro-assembler-arm64.cc ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698