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

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

Issue 571903002: Reland "Remove V8_HOST_CAN_READ_UNALIGNED and its uses." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comment Created 6 years, 3 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/regexp-macro-assembler.cc ('k') | src/runtime.cc » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ 5 #ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_
6 #define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ 6 #define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_
7 7
8 #include "src/regexp-macro-assembler.h" 8 #include "src/regexp-macro-assembler.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 13 matching lines...) Expand all
24 // owned by the assembler and deallocated upon destruction of the assembler. 24 // owned by the assembler and deallocated upon destruction of the assembler.
25 // 25 //
26 // If the provided buffer is not NULL, the assembler uses the provided buffer 26 // If the provided buffer is not NULL, the assembler uses the provided buffer
27 // for code generation and assumes its size to be buffer_size. If the buffer 27 // for code generation and assumes its size to be buffer_size. If the buffer
28 // is too small, a fatal error occurs. No deallocation of the buffer is done 28 // is too small, a fatal error occurs. No deallocation of the buffer is done
29 // upon destruction of the assembler. 29 // upon destruction of the assembler.
30 RegExpMacroAssemblerIrregexp(Vector<byte>, Zone* zone); 30 RegExpMacroAssemblerIrregexp(Vector<byte>, Zone* zone);
31 virtual ~RegExpMacroAssemblerIrregexp(); 31 virtual ~RegExpMacroAssemblerIrregexp();
32 // The byte-code interpreter checks on each push anyway. 32 // The byte-code interpreter checks on each push anyway.
33 virtual int stack_limit_slack() { return 1; } 33 virtual int stack_limit_slack() { return 1; }
34 virtual bool CanReadUnaligned() { return false; }
34 virtual void Bind(Label* label); 35 virtual void Bind(Label* label);
35 virtual void AdvanceCurrentPosition(int by); // Signed cp change. 36 virtual void AdvanceCurrentPosition(int by); // Signed cp change.
36 virtual void PopCurrentPosition(); 37 virtual void PopCurrentPosition();
37 virtual void PushCurrentPosition(); 38 virtual void PushCurrentPosition();
38 virtual void Backtrack(); 39 virtual void Backtrack();
39 virtual void GoTo(Label* label); 40 virtual void GoTo(Label* label);
40 virtual void PushBacktrack(Label* label); 41 virtual void PushBacktrack(Label* label);
41 virtual bool Succeed(); 42 virtual bool Succeed();
42 virtual void Fail(); 43 virtual void Fail();
43 virtual void PopRegister(int register_index); 44 virtual void PopRegister(int register_index);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 static const int kInvalidPC = -1; 119 static const int kInvalidPC = -1;
119 120
120 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp); 121 DISALLOW_IMPLICIT_CONSTRUCTORS(RegExpMacroAssemblerIrregexp);
121 }; 122 };
122 123
123 #endif // V8_INTERPRETED_REGEXP 124 #endif // V8_INTERPRETED_REGEXP
124 125
125 } } // namespace v8::internal 126 } } // namespace v8::internal
126 127
127 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_ 128 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_H_
OLDNEW
« no previous file with comments | « src/regexp-macro-assembler.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698