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

Unified Diff: src/bytecodes-re2k.h

Issue 11600: * Rename to Irregexp throughout.... (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 side-by-side diff with in-line comments
Download patch
Index: src/bytecodes-re2k.h
===================================================================
--- src/bytecodes-re2k.h (revision 827)
+++ src/bytecodes-re2k.h (working copy)
@@ -1,78 +0,0 @@
-// Copyright 2008 the V8 project authors. All rights reserved.
-// Redistribution and use in source and binary forms, with or without
-// modification, are permitted provided that the following conditions are
-// met:
-//
-// * Redistributions of source code must retain the above copyright
-// notice, this list of conditions and the following disclaimer.
-// * Redistributions in binary form must reproduce the above
-// copyright notice, this list of conditions and the following
-// disclaimer in the documentation and/or other materials provided
-// with the distribution.
-// * Neither the name of Google Inc. nor the names of its
-// contributors may be used to endorse or promote products derived
-// from this software without specific prior written permission.
-//
-// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-
-#ifndef V8_BYTECODES_RE2K_H_
-#define V8_BYTECODES_RE2K_H_
-
-namespace v8 { namespace internal {
-
-#define BYTECODE_ITERATOR(V) \
-V(BREAK, 0, 1) /* break */ \
-V(PUSH_CP, 1, 5) /* push_cp offset32 */ \
-V(PUSH_BT, 2, 5) /* push_bt addr32 */ \
-V(PUSH_REGISTER, 3, 2) /* push_register register_index */ \
-V(SET_REGISTER_TO_CP, 4, 6) /* set_register_to_cp register_index offset32 */ \
-V(SET_CP_TO_REGISTER, 5, 2) /* set_cp_to_registger register_index */ \
-V(SET_REGISTER_TO_SP, 6, 2) /* set_register_to_sp register_index */ \
-V(SET_SP_TO_REGISTER, 7, 2) /* set_sp_to_registger register_index */ \
-V(SET_REGISTER, 8, 6) /* set_register register_index value32 */ \
-V(ADVANCE_REGISTER, 9, 6) /* advance_register register_index value32 */ \
-V(POP_CP, 10, 1) /* pop_cp */ \
-V(POP_BT, 11, 1) /* pop_bt */ \
-V(POP_REGISTER, 12, 2) /* pop_register register_index */ \
-V(FAIL, 13, 1) /* fail */ \
-V(SUCCEED, 14, 1) /* succeed */ \
-V(ADVANCE_CP, 15, 5) /* advance_cp offset32 */ \
-V(GOTO, 16, 5) /* goto addr32 */ \
-V(LOAD_CURRENT_CHAR, 17, 9) /* load offset32 addr32 */ \
-V(CHECK_CHAR, 18, 7) /* check_char uc16 addr32 */ \
-V(CHECK_NOT_CHAR, 19, 7) /* check_not_char uc16 addr32 */ \
-V(OR_CHECK_NOT_CHAR, 20, 9) /* or_check_not_char uc16 uc16 addr32 */ \
-V(MINUS_OR_CHECK_NOT_CHAR, 21, 9) /* minus_or_check_not_char uc16 uc16 ad...*/ \
-V(CHECK_LT, 22, 7) /* check_lt uc16 addr32 */ \
-V(CHECK_GT, 23, 7) /* check_gr uc16 addr32 */ \
-V(CHECK_NOT_BACK_REF, 24, 6) /* check_not_back_ref capture_idx addr32 */ \
-V(LOOKUP_MAP1, 25, 11) /* l_map1 start16 bit_map_addr32 addr32 */ \
-V(LOOKUP_MAP2, 26, 99) /* l_map2 start16 half_nibble_map_addr32* */ \
-V(LOOKUP_MAP8, 27, 99) /* l_map8 start16 byte_map addr32* */ \
-V(LOOKUP_HI_MAP8, 28, 99) /* l_himap8 start8 byte_map_addr32 addr32* */ \
-V(CHECK_REGISTER_LT, 29, 8) /* check_reg_lt register_index value16 addr32 */ \
-V(CHECK_REGISTER_GE, 30, 8) /* check_reg_ge register_index value16 addr32 */ \
-
-#define DECLARE_BYTECODES(name, code, length) \
- static const int BC_##name = code;
-BYTECODE_ITERATOR(DECLARE_BYTECODES)
-#undef DECLARE_BYTECODES
-
-#define DECLARE_BYTECODE_LENGTH(name, code, length) \
- static const int BC_##name##_LENGTH = length;
-BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH)
-#undef DECLARE_BYTECODE_LENGTH
-} }
-
-#endif // V8_BYTECODES_IA32_H_
« no previous file with comments | « src/bytecodes-irregexp.h ('k') | src/flag-definitions.h » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698