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

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

Issue 10535164: Unbreak interpreted regexp. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.h ('k') | src/jsregexp.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 16 matching lines...) Expand all
27 27
28 #ifndef V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ 28 #ifndef V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
29 #define V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ 29 #define V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
30 30
31 #include "ia32/assembler-ia32.h" 31 #include "ia32/assembler-ia32.h"
32 #include "ia32/assembler-ia32-inl.h" 32 #include "ia32/assembler-ia32-inl.h"
33 33
34 namespace v8 { 34 namespace v8 {
35 namespace internal { 35 namespace internal {
36 36
37 #ifdef V8_INTERPRETED_REGEXP 37 #ifndef V8_INTERPRETED_REGEXP
38 class RegExpMacroAssemblerIA32: public RegExpMacroAssembler {
39 public:
40 RegExpMacroAssemblerIA32() { }
41 virtual ~RegExpMacroAssemblerIA32() { }
42 };
43
44 #else // V8_INTERPRETED_REGEXP
45 class RegExpMacroAssemblerIA32: public NativeRegExpMacroAssembler { 38 class RegExpMacroAssemblerIA32: public NativeRegExpMacroAssembler {
46 public: 39 public:
47 RegExpMacroAssemblerIA32(Mode mode, int registers_to_save, Zone* zone); 40 RegExpMacroAssemblerIA32(Mode mode, int registers_to_save, Zone* zone);
48 virtual ~RegExpMacroAssemblerIA32(); 41 virtual ~RegExpMacroAssemblerIA32();
49 virtual int stack_limit_slack(); 42 virtual int stack_limit_slack();
50 virtual void AdvanceCurrentPosition(int by); 43 virtual void AdvanceCurrentPosition(int by);
51 virtual void AdvanceRegister(int reg, int by); 44 virtual void AdvanceRegister(int reg, int by);
52 virtual void Backtrack(); 45 virtual void Backtrack();
53 virtual void Bind(Label* label); 46 virtual void Bind(Label* label);
54 virtual void CheckAtStart(Label* on_at_start); 47 virtual void CheckAtStart(Label* on_at_start);
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 Label backtrack_label_; 215 Label backtrack_label_;
223 Label exit_label_; 216 Label exit_label_;
224 Label check_preempt_label_; 217 Label check_preempt_label_;
225 Label stack_overflow_label_; 218 Label stack_overflow_label_;
226 }; 219 };
227 #endif // V8_INTERPRETED_REGEXP 220 #endif // V8_INTERPRETED_REGEXP
228 221
229 }} // namespace v8::internal 222 }} // namespace v8::internal
230 223
231 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ 224 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/arm/regexp-macro-assembler-arm.h ('k') | src/jsregexp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698