| OLD | NEW | 
|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 | 5 | 
| 6 #ifndef V8_REGEXP_BYTECODES_IRREGEXP_H_ | 6 #ifndef V8_REGEXP_BYTECODES_IRREGEXP_H_ | 
| 7 #define V8_REGEXP_BYTECODES_IRREGEXP_H_ | 7 #define V8_REGEXP_BYTECODES_IRREGEXP_H_ | 
| 8 | 8 | 
|  | 9 #ifdef V8_INTERPRETED_REGEXP | 
|  | 10 | 
| 9 namespace v8 { | 11 namespace v8 { | 
| 10 namespace internal { | 12 namespace internal { | 
| 11 | 13 | 
| 12 | 14 | 
| 13 const int BYTECODE_MASK = 0xff; | 15 const int BYTECODE_MASK = 0xff; | 
| 14 // The first argument is packed in with the byte code in one word, but so it | 16 // The first argument is packed in with the byte code in one word, but so it | 
| 15 // has 24 bits, but it can be positive and negative so only use 23 bits for | 17 // has 24 bits, but it can be positive and negative so only use 23 bits for | 
| 16 // positive values. | 18 // positive values. | 
| 17 const unsigned int MAX_FIRST_ARG = 0x7fffffu; | 19 const unsigned int MAX_FIRST_ARG = 0x7fffffu; | 
| 18 const int BYTECODE_SHIFT = 8; | 20 const int BYTECODE_SHIFT = 8; | 
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 75 #undef DECLARE_BYTECODES | 77 #undef DECLARE_BYTECODES | 
| 76 | 78 | 
| 77 #define DECLARE_BYTECODE_LENGTH(name, code, length) \ | 79 #define DECLARE_BYTECODE_LENGTH(name, code, length) \ | 
| 78   static const int BC_##name##_LENGTH = length; | 80   static const int BC_##name##_LENGTH = length; | 
| 79 BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH) | 81 BYTECODE_ITERATOR(DECLARE_BYTECODE_LENGTH) | 
| 80 #undef DECLARE_BYTECODE_LENGTH | 82 #undef DECLARE_BYTECODE_LENGTH | 
| 81 | 83 | 
| 82 }  // namespace internal | 84 }  // namespace internal | 
| 83 }  // namespace v8 | 85 }  // namespace v8 | 
| 84 | 86 | 
|  | 87 #endif  // V8_INTERPRETED_REGEXP | 
|  | 88 | 
| 85 #endif  // V8_REGEXP_BYTECODES_IRREGEXP_H_ | 89 #endif  // V8_REGEXP_BYTECODES_IRREGEXP_H_ | 
| OLD | NEW | 
|---|