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

Side by Side Diff: src/regexp-macro-assembler.h

Issue 18587: Eliminate the code that handles fallback to JSCRE. The only way to get... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 11 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« src/jsregexp.cc ('K') | « src/jsregexp.cc ('k') | src/regexp-macro-assembler-irregexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698