OLD | NEW |
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #include "token.h" | 56 #include "token.h" |
57 | 57 |
58 #if V8_TARGET_ARCH_IA32 | 58 #if V8_TARGET_ARCH_IA32 |
59 #include "ia32/assembler-ia32-inl.h" | 59 #include "ia32/assembler-ia32-inl.h" |
60 #elif V8_TARGET_ARCH_X64 | 60 #elif V8_TARGET_ARCH_X64 |
61 #include "x64/assembler-x64-inl.h" | 61 #include "x64/assembler-x64-inl.h" |
62 #elif V8_TARGET_ARCH_ARM | 62 #elif V8_TARGET_ARCH_ARM |
63 #include "arm/assembler-arm-inl.h" | 63 #include "arm/assembler-arm-inl.h" |
64 #elif V8_TARGET_ARCH_MIPS | 64 #elif V8_TARGET_ARCH_MIPS |
65 #include "mips/assembler-mips-inl.h" | 65 #include "mips/assembler-mips-inl.h" |
| 66 #elif V8_TARGET_ARCH_SH4 |
| 67 #include "sh4/assembler-sh4-inl.h" |
66 #else | 68 #else |
67 #error "Unknown architecture." | 69 #error "Unknown architecture." |
68 #endif | 70 #endif |
69 | 71 |
70 // Include native regexp-macro-assembler. | 72 // Include native regexp-macro-assembler. |
71 #ifndef V8_INTERPRETED_REGEXP | 73 #ifndef V8_INTERPRETED_REGEXP |
72 #if V8_TARGET_ARCH_IA32 | 74 #if V8_TARGET_ARCH_IA32 |
73 #include "ia32/regexp-macro-assembler-ia32.h" | 75 #include "ia32/regexp-macro-assembler-ia32.h" |
74 #elif V8_TARGET_ARCH_X64 | 76 #elif V8_TARGET_ARCH_X64 |
75 #include "x64/regexp-macro-assembler-x64.h" | 77 #include "x64/regexp-macro-assembler-x64.h" |
76 #elif V8_TARGET_ARCH_ARM | 78 #elif V8_TARGET_ARCH_ARM |
77 #include "arm/regexp-macro-assembler-arm.h" | 79 #include "arm/regexp-macro-assembler-arm.h" |
78 #elif V8_TARGET_ARCH_MIPS | 80 #elif V8_TARGET_ARCH_MIPS |
79 #include "mips/regexp-macro-assembler-mips.h" | 81 #include "mips/regexp-macro-assembler-mips.h" |
| 82 #elif V8_TARGET_ARCH_SH4 |
| 83 #include "sh4/regexp-macro-assembler-sh4.h" |
80 #else // Unknown architecture. | 84 #else // Unknown architecture. |
81 #error "Unknown architecture." | 85 #error "Unknown architecture." |
82 #endif // Target architecture. | 86 #endif // Target architecture. |
83 #endif // V8_INTERPRETED_REGEXP | 87 #endif // V8_INTERPRETED_REGEXP |
84 | 88 |
85 namespace v8 { | 89 namespace v8 { |
86 namespace internal { | 90 namespace internal { |
87 | 91 |
88 // ----------------------------------------------------------------------------- | 92 // ----------------------------------------------------------------------------- |
89 // Common double constants. | 93 // Common double constants. |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1059 Isolate* isolate) { | 1063 Isolate* isolate) { |
1060 Address function; | 1064 Address function; |
1061 #ifdef V8_TARGET_ARCH_X64 | 1065 #ifdef V8_TARGET_ARCH_X64 |
1062 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); | 1066 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); |
1063 #elif V8_TARGET_ARCH_IA32 | 1067 #elif V8_TARGET_ARCH_IA32 |
1064 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); | 1068 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); |
1065 #elif V8_TARGET_ARCH_ARM | 1069 #elif V8_TARGET_ARCH_ARM |
1066 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); | 1070 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); |
1067 #elif V8_TARGET_ARCH_MIPS | 1071 #elif V8_TARGET_ARCH_MIPS |
1068 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); | 1072 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); |
| 1073 #elif V8_TARGET_ARCH_SH4 |
| 1074 function = FUNCTION_ADDR(RegExpMacroAssemblerSH4::CheckStackGuardState); |
1069 #else | 1075 #else |
1070 UNREACHABLE(); | 1076 UNREACHABLE(); |
1071 #endif | 1077 #endif |
1072 return ExternalReference(Redirect(isolate, function)); | 1078 return ExternalReference(Redirect(isolate, function)); |
1073 } | 1079 } |
1074 | 1080 |
1075 ExternalReference ExternalReference::re_grow_stack(Isolate* isolate) { | 1081 ExternalReference ExternalReference::re_grow_stack(Isolate* isolate) { |
1076 return ExternalReference( | 1082 return ExternalReference( |
1077 Redirect(isolate, FUNCTION_ADDR(NativeRegExpMacroAssembler::GrowStack))); | 1083 Redirect(isolate, FUNCTION_ADDR(NativeRegExpMacroAssembler::GrowStack))); |
1078 } | 1084 } |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1366 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1372 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
1367 state_.written_position = state_.current_position; | 1373 state_.written_position = state_.current_position; |
1368 written = true; | 1374 written = true; |
1369 } | 1375 } |
1370 | 1376 |
1371 // Return whether something was written. | 1377 // Return whether something was written. |
1372 return written; | 1378 return written; |
1373 } | 1379 } |
1374 | 1380 |
1375 } } // namespace v8::internal | 1381 } } // namespace v8::internal |
OLD | NEW |