Chromium Code Reviews| 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 20 matching lines...) Expand all Loading... | |
| 31 namespace v8 { namespace internal { | 31 namespace v8 { namespace internal { |
| 32 | 32 |
| 33 struct DisjunctDecisionRow { | 33 struct DisjunctDecisionRow { |
| 34 RegExpCharacterClass cc; | 34 RegExpCharacterClass cc; |
| 35 Label* on_match; | 35 Label* on_match; |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 | 38 |
| 39 class RegExpMacroAssembler { | 39 class RegExpMacroAssembler { |
| 40 public: | 40 public: |
| 41 // The implmentation must be able to handle at least: | |
|
Lasse Reichstein
2009/01/26 13:48:53
Typo "implementation".
I agree that any regexp fa
| |
| 42 static const int kMaxRegister = (1 << 16) - 1; | |
| 43 static const int kMaxCPOffset = (1 << 15) - 1; | |
| 44 static const int kMinCPOffset = -(1 << 15); | |
| 41 enum IrregexpImplementation { | 45 enum IrregexpImplementation { |
| 42 kIA32Implementation, | 46 kIA32Implementation, |
| 43 kARMImplementation, | 47 kARMImplementation, |
| 44 kBytecodeImplementation | 48 kBytecodeImplementation |
| 45 }; | 49 }; |
| 46 | 50 |
| 47 enum StackCheckFlag { | 51 enum StackCheckFlag { |
| 48 kNoStackLimitCheck = false, | 52 kNoStackLimitCheck = false, |
| 49 kCheckStackLimit = true | 53 kCheckStackLimit = true |
| 50 }; | 54 }; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 211 ArraySlice GetBuffer(Vector<T> values); | 215 ArraySlice GetBuffer(Vector<T> values); |
| 212 private: | 216 private: |
| 213 size_t byte_array_size_; | 217 size_t byte_array_size_; |
| 214 Handle<ByteArray> current_byte_array_; | 218 Handle<ByteArray> current_byte_array_; |
| 215 int current_byte_array_free_offset_; | 219 int current_byte_array_free_offset_; |
| 216 }; | 220 }; |
| 217 | 221 |
| 218 } } // namespace v8::internal | 222 } } // namespace v8::internal |
| 219 | 223 |
| 220 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ | 224 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ |
| OLD | NEW |