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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #include "runtime.h" | 52 #include "runtime.h" |
53 #include "serialize.h" | 53 #include "serialize.h" |
54 #include "store-buffer-inl.h" | 54 #include "store-buffer-inl.h" |
55 #include "stub-cache.h" | 55 #include "stub-cache.h" |
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_X32 |
| 63 #include "x32/assembler-x32-inl.h" |
62 #elif V8_TARGET_ARCH_ARM | 64 #elif V8_TARGET_ARCH_ARM |
63 #include "arm/assembler-arm-inl.h" | 65 #include "arm/assembler-arm-inl.h" |
64 #elif V8_TARGET_ARCH_MIPS | 66 #elif V8_TARGET_ARCH_MIPS |
65 #include "mips/assembler-mips-inl.h" | 67 #include "mips/assembler-mips-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" |
| 78 #elif V8_TARGET_ARCH_X32 |
| 79 #include "x32/regexp-macro-assembler-x32.h" |
76 #elif V8_TARGET_ARCH_ARM | 80 #elif V8_TARGET_ARCH_ARM |
77 #include "arm/regexp-macro-assembler-arm.h" | 81 #include "arm/regexp-macro-assembler-arm.h" |
78 #elif V8_TARGET_ARCH_MIPS | 82 #elif V8_TARGET_ARCH_MIPS |
79 #include "mips/regexp-macro-assembler-mips.h" | 83 #include "mips/regexp-macro-assembler-mips.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 { |
(...skipping 1217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1303 } | 1307 } |
1304 | 1308 |
1305 | 1309 |
1306 #ifndef V8_INTERPRETED_REGEXP | 1310 #ifndef V8_INTERPRETED_REGEXP |
1307 | 1311 |
1308 ExternalReference ExternalReference::re_check_stack_guard_state( | 1312 ExternalReference ExternalReference::re_check_stack_guard_state( |
1309 Isolate* isolate) { | 1313 Isolate* isolate) { |
1310 Address function; | 1314 Address function; |
1311 #if V8_TARGET_ARCH_X64 | 1315 #if V8_TARGET_ARCH_X64 |
1312 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); | 1316 function = FUNCTION_ADDR(RegExpMacroAssemblerX64::CheckStackGuardState); |
| 1317 #elif V8_TARGET_ARCH_X32 |
| 1318 function = FUNCTION_ADDR(RegExpMacroAssemblerX32::CheckStackGuardState); |
1313 #elif V8_TARGET_ARCH_IA32 | 1319 #elif V8_TARGET_ARCH_IA32 |
1314 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); | 1320 function = FUNCTION_ADDR(RegExpMacroAssemblerIA32::CheckStackGuardState); |
1315 #elif V8_TARGET_ARCH_ARM | 1321 #elif V8_TARGET_ARCH_ARM |
1316 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); | 1322 function = FUNCTION_ADDR(RegExpMacroAssemblerARM::CheckStackGuardState); |
1317 #elif V8_TARGET_ARCH_MIPS | 1323 #elif V8_TARGET_ARCH_MIPS |
1318 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); | 1324 function = FUNCTION_ADDR(RegExpMacroAssemblerMIPS::CheckStackGuardState); |
1319 #else | 1325 #else |
1320 UNREACHABLE(); | 1326 UNREACHABLE(); |
1321 #endif | 1327 #endif |
1322 return ExternalReference(Redirect(isolate, function)); | 1328 return ExternalReference(Redirect(isolate, function)); |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1662 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1668 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
1663 state_.written_position = state_.current_position; | 1669 state_.written_position = state_.current_position; |
1664 written = true; | 1670 written = true; |
1665 } | 1671 } |
1666 | 1672 |
1667 // Return whether something was written. | 1673 // Return whether something was written. |
1668 return written; | 1674 return written; |
1669 } | 1675 } |
1670 | 1676 |
1671 } } // namespace v8::internal | 1677 } } // namespace v8::internal |
OLD | NEW |