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

Side by Side Diff: src/assembler.h

Issue 9415: Add bytecodes and an interpreter for executing regular expressions. Very... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: '' Created 12 years, 1 month 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/SConscript ('k') | src/assembler-ia32.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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void bind_to(int pos) { 75 void bind_to(int pos) {
76 pos_ = -pos - 1; 76 pos_ = -pos - 1;
77 ASSERT(is_bound()); 77 ASSERT(is_bound());
78 } 78 }
79 void link_to(int pos) { 79 void link_to(int pos) {
80 pos_ = pos + 1; 80 pos_ = pos + 1;
81 ASSERT(is_linked()); 81 ASSERT(is_linked());
82 } 82 }
83 83
84 friend class Assembler; 84 friend class Assembler;
85 friend class RegexpAssembler;
85 friend class Displacement; 86 friend class Displacement;
86 friend class LabelShadow; 87 friend class LabelShadow;
88 friend class Re2kAssembler;
87 }; 89 };
88 90
89 91
90 // A LabelShadow represents a label that is temporarily shadowed by another 92 // A LabelShadow represents a label that is temporarily shadowed by another
91 // label (represented by the original label during shadowing). They are used 93 // label (represented by the original label during shadowing). They are used
92 // to catch jumps to labels in certain contexts, e.g. try blocks. After 94 // to catch jumps to labels in certain contexts, e.g. try blocks. After
93 // shadowing ends, the formerly shadowed label is again represented by the 95 // shadowing ends, the formerly shadowed label is again represented by the
94 // original label and the LabelShadow can be used as a label in its own 96 // original label and the LabelShadow can be used as a label in its own
95 // right, representing the formerly shadowing label. 97 // right, representing the formerly shadowing label.
96 class LabelShadow : public Label { 98 class LabelShadow : public Label {
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 static inline bool is_uint4(int x) { return is_uintn(x, 4); } 470 static inline bool is_uint4(int x) { return is_uintn(x, 4); }
469 static inline bool is_uint5(int x) { return is_uintn(x, 5); } 471 static inline bool is_uint5(int x) { return is_uintn(x, 5); }
470 static inline bool is_uint8(int x) { return is_uintn(x, 8); } 472 static inline bool is_uint8(int x) { return is_uintn(x, 8); }
471 static inline bool is_uint12(int x) { return is_uintn(x, 12); } 473 static inline bool is_uint12(int x) { return is_uintn(x, 12); }
472 static inline bool is_uint16(int x) { return is_uintn(x, 16); } 474 static inline bool is_uint16(int x) { return is_uintn(x, 16); }
473 static inline bool is_uint24(int x) { return is_uintn(x, 24); } 475 static inline bool is_uint24(int x) { return is_uintn(x, 24); }
474 476
475 } } // namespace v8::internal 477 } } // namespace v8::internal
476 478
477 #endif // V8_ASSEMBLER_H_ 479 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/SConscript ('k') | src/assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698