OLD | NEW |
1 // Copyright 2008 the V8 project authors. All rights reserved. | 1 // Copyright 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 30 matching lines...) Expand all Loading... |
41 | 41 |
42 class RegExpMacroAssembler { | 42 class RegExpMacroAssembler { |
43 public: | 43 public: |
44 // The implementation must be able to handle at least: | 44 // The implementation must be able to handle at least: |
45 static const int kMaxRegister = (1 << 16) - 1; | 45 static const int kMaxRegister = (1 << 16) - 1; |
46 static const int kMaxCPOffset = (1 << 15) - 1; | 46 static const int kMaxCPOffset = (1 << 15) - 1; |
47 static const int kMinCPOffset = -(1 << 15); | 47 static const int kMinCPOffset = -(1 << 15); |
48 enum IrregexpImplementation { | 48 enum IrregexpImplementation { |
49 kIA32Implementation, | 49 kIA32Implementation, |
50 kARMImplementation, | 50 kARMImplementation, |
| 51 kMIPSImplementation, |
51 kX64Implementation, | 52 kX64Implementation, |
52 kBytecodeImplementation | 53 kBytecodeImplementation |
53 }; | 54 }; |
54 | 55 |
55 enum StackCheckFlag { | 56 enum StackCheckFlag { |
56 kNoStackLimitCheck = false, | 57 kNoStackLimitCheck = false, |
57 kCheckStackLimit = true | 58 kCheckStackLimit = true |
58 }; | 59 }; |
59 | 60 |
60 RegExpMacroAssembler(); | 61 RegExpMacroAssembler(); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 const byte* input_end, | 227 const byte* input_end, |
227 int* output, | 228 int* output, |
228 Isolate* isolate); | 229 Isolate* isolate); |
229 }; | 230 }; |
230 | 231 |
231 #endif // V8_INTERPRETED_REGEXP | 232 #endif // V8_INTERPRETED_REGEXP |
232 | 233 |
233 } } // namespace v8::internal | 234 } } // namespace v8::internal |
234 | 235 |
235 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ | 236 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ |
OLD | NEW |