| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 V(JS_GLOBAL_PROXY_TYPE) \ | 289 V(JS_GLOBAL_PROXY_TYPE) \ |
| 290 V(JS_ARRAY_TYPE) \ | 290 V(JS_ARRAY_TYPE) \ |
| 291 V(JS_REGEXP_TYPE) \ | 291 V(JS_REGEXP_TYPE) \ |
| 292 \ | 292 \ |
| 293 V(JS_FUNCTION_TYPE) \ | 293 V(JS_FUNCTION_TYPE) \ |
| 294 | 294 |
| 295 | 295 |
| 296 // Since string types are not consecutive, this macro is used to | 296 // Since string types are not consecutive, this macro is used to |
| 297 // iterate over them. | 297 // iterate over them. |
| 298 #define STRING_TYPE_LIST(V) \ | 298 #define STRING_TYPE_LIST(V) \ |
| 299 V(SHORT_SYMBOL_TYPE, SeqTwoByteString::kAlignedSize, short_symbol)
\ | 299 V(SHORT_SYMBOL_TYPE, SeqTwoByteString::kAlignedSize, short_symbol) \ |
| 300 V(MEDIUM_SYMBOL_TYPE, SeqTwoByteString::kAlignedSize, medium_symbol)
\ | 300 V(MEDIUM_SYMBOL_TYPE, SeqTwoByteString::kAlignedSize, medium_symbol) \ |
| 301 V(LONG_SYMBOL_TYPE, SeqTwoByteString::kAlignedSize, long_symbol)
\ | 301 V(LONG_SYMBOL_TYPE, SeqTwoByteString::kAlignedSize, long_symbol) \ |
| 302 V(SHORT_ASCII_SYMBOL_TYPE, SeqAsciiString::kAlignedSize, short_ascii_symbol)
\ | 302 V(SHORT_ASCII_SYMBOL_TYPE, SeqAsciiString::kAlignedSize, short_ascii_symbol) \ |
| 303 V(MEDIUM_ASCII_SYMBOL_TYPE, SeqAsciiString::kAlignedSize, medium_ascii_symbol)
\ | 303 V(MEDIUM_ASCII_SYMBOL_TYPE, \ |
| 304 V(LONG_ASCII_SYMBOL_TYPE, SeqAsciiString::kAlignedSize, long_ascii_symbol)
\ | 304 SeqAsciiString::kAlignedSize, \ |
| 305 medium_ascii_symbol) \ |
| 306 V(LONG_ASCII_SYMBOL_TYPE, SeqAsciiString::kAlignedSize, long_ascii_symbol) \ |
| 305 V(SHORT_CONS_SYMBOL_TYPE, ConsString::kSize, short_cons_symbol) \ | 307 V(SHORT_CONS_SYMBOL_TYPE, ConsString::kSize, short_cons_symbol) \ |
| 306 V(MEDIUM_CONS_SYMBOL_TYPE, ConsString::kSize, medium_cons_symbol) \ | 308 V(MEDIUM_CONS_SYMBOL_TYPE, ConsString::kSize, medium_cons_symbol) \ |
| 307 V(LONG_CONS_SYMBOL_TYPE, ConsString::kSize, long_cons_symbol) \ | 309 V(LONG_CONS_SYMBOL_TYPE, ConsString::kSize, long_cons_symbol) \ |
| 308 V(SHORT_CONS_ASCII_SYMBOL_TYPE, ConsString::kSize, short_cons_ascii_symbol) \ | 310 V(SHORT_CONS_ASCII_SYMBOL_TYPE, ConsString::kSize, short_cons_ascii_symbol) \ |
| 309 V(MEDIUM_CONS_ASCII_SYMBOL_TYPE, ConsString::kSize, medium_cons_ascii_symbol)\ | 311 V(MEDIUM_CONS_ASCII_SYMBOL_TYPE, ConsString::kSize, medium_cons_ascii_symbol)\ |
| 310 V(LONG_CONS_ASCII_SYMBOL_TYPE, ConsString::kSize, long_cons_ascii_symbol) \ | 312 V(LONG_CONS_ASCII_SYMBOL_TYPE, ConsString::kSize, long_cons_ascii_symbol) \ |
| 311 V(SHORT_SLICED_SYMBOL_TYPE, SlicedString::kSize, short_sliced_symbol) \ | 313 V(SHORT_SLICED_SYMBOL_TYPE, SlicedString::kSize, short_sliced_symbol) \ |
| 312 V(MEDIUM_SLICED_SYMBOL_TYPE, SlicedString::kSize, medium_sliced_symbol) \ | 314 V(MEDIUM_SLICED_SYMBOL_TYPE, SlicedString::kSize, medium_sliced_symbol) \ |
| 313 V(LONG_SLICED_SYMBOL_TYPE, SlicedString::kSize, long_sliced_symbol) \ | 315 V(LONG_SLICED_SYMBOL_TYPE, SlicedString::kSize, long_sliced_symbol) \ |
| 314 V(SHORT_SLICED_ASCII_SYMBOL_TYPE, \ | 316 V(SHORT_SLICED_ASCII_SYMBOL_TYPE, \ |
| (...skipping 16 matching lines...) Expand all Loading... |
| 331 long_external_symbol) \ | 333 long_external_symbol) \ |
| 332 V(SHORT_EXTERNAL_ASCII_SYMBOL_TYPE, \ | 334 V(SHORT_EXTERNAL_ASCII_SYMBOL_TYPE, \ |
| 333 ExternalAsciiString::kSize, \ | 335 ExternalAsciiString::kSize, \ |
| 334 short_external_ascii_symbol) \ | 336 short_external_ascii_symbol) \ |
| 335 V(MEDIUM_EXTERNAL_ASCII_SYMBOL_TYPE, \ | 337 V(MEDIUM_EXTERNAL_ASCII_SYMBOL_TYPE, \ |
| 336 ExternalAsciiString::kSize, \ | 338 ExternalAsciiString::kSize, \ |
| 337 medium_external_ascii_symbol) \ | 339 medium_external_ascii_symbol) \ |
| 338 V(LONG_EXTERNAL_ASCII_SYMBOL_TYPE, \ | 340 V(LONG_EXTERNAL_ASCII_SYMBOL_TYPE, \ |
| 339 ExternalAsciiString::kSize, \ | 341 ExternalAsciiString::kSize, \ |
| 340 long_external_ascii_symbol) \ | 342 long_external_ascii_symbol) \ |
| 341 V(SHORT_STRING_TYPE, SeqTwoByteString::kAlignedSize, short_string)
\ | 343 V(SHORT_STRING_TYPE, SeqTwoByteString::kAlignedSize, short_string) \ |
| 342 V(MEDIUM_STRING_TYPE, SeqTwoByteString::kAlignedSize, medium_string)
\ | 344 V(MEDIUM_STRING_TYPE, SeqTwoByteString::kAlignedSize, medium_string) \ |
| 343 V(LONG_STRING_TYPE, SeqTwoByteString::kAlignedSize, long_string)
\ | 345 V(LONG_STRING_TYPE, SeqTwoByteString::kAlignedSize, long_string) \ |
| 344 V(SHORT_ASCII_STRING_TYPE, SeqAsciiString::kAlignedSize, short_ascii_string)
\ | 346 V(SHORT_ASCII_STRING_TYPE, SeqAsciiString::kAlignedSize, short_ascii_string) \ |
| 345 V(MEDIUM_ASCII_STRING_TYPE, SeqAsciiString::kAlignedSize, medium_ascii_string)
\ | 347 V(MEDIUM_ASCII_STRING_TYPE, \ |
| 346 V(LONG_ASCII_STRING_TYPE, SeqAsciiString::kAlignedSize, long_ascii_string)
\ | 348 SeqAsciiString::kAlignedSize, \ |
| 349 medium_ascii_string) \ |
| 350 V(LONG_ASCII_STRING_TYPE, SeqAsciiString::kAlignedSize, long_ascii_string) \ |
| 347 V(SHORT_CONS_STRING_TYPE, ConsString::kSize, short_cons_string) \ | 351 V(SHORT_CONS_STRING_TYPE, ConsString::kSize, short_cons_string) \ |
| 348 V(MEDIUM_CONS_STRING_TYPE, ConsString::kSize, medium_cons_string) \ | 352 V(MEDIUM_CONS_STRING_TYPE, ConsString::kSize, medium_cons_string) \ |
| 349 V(LONG_CONS_STRING_TYPE, ConsString::kSize, long_cons_string) \ | 353 V(LONG_CONS_STRING_TYPE, ConsString::kSize, long_cons_string) \ |
| 350 V(SHORT_CONS_ASCII_STRING_TYPE, ConsString::kSize, short_cons_ascii_string) \ | 354 V(SHORT_CONS_ASCII_STRING_TYPE, ConsString::kSize, short_cons_ascii_string) \ |
| 351 V(MEDIUM_CONS_ASCII_STRING_TYPE, ConsString::kSize, medium_cons_ascii_string)\ | 355 V(MEDIUM_CONS_ASCII_STRING_TYPE, ConsString::kSize, medium_cons_ascii_string)\ |
| 352 V(LONG_CONS_ASCII_STRING_TYPE, ConsString::kSize, long_cons_ascii_string) \ | 356 V(LONG_CONS_ASCII_STRING_TYPE, ConsString::kSize, long_cons_ascii_string) \ |
| 353 V(SHORT_SLICED_STRING_TYPE, SlicedString::kSize, short_sliced_string) \ | 357 V(SHORT_SLICED_STRING_TYPE, SlicedString::kSize, short_sliced_string) \ |
| 354 V(MEDIUM_SLICED_STRING_TYPE, SlicedString::kSize, medium_sliced_string) \ | 358 V(MEDIUM_SLICED_STRING_TYPE, SlicedString::kSize, medium_sliced_string) \ |
| 355 V(LONG_SLICED_STRING_TYPE, SlicedString::kSize, long_sliced_string) \ | 359 V(LONG_SLICED_STRING_TYPE, SlicedString::kSize, long_sliced_string) \ |
| 356 V(SHORT_SLICED_ASCII_STRING_TYPE, \ | 360 V(SHORT_SLICED_ASCII_STRING_TYPE, \ |
| (...skipping 4036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4393 } else { | 4397 } else { |
| 4394 value &= ~(1 << bit_position); | 4398 value &= ~(1 << bit_position); |
| 4395 } | 4399 } |
| 4396 return value; | 4400 return value; |
| 4397 } | 4401 } |
| 4398 }; | 4402 }; |
| 4399 | 4403 |
| 4400 } } // namespace v8::internal | 4404 } } // namespace v8::internal |
| 4401 | 4405 |
| 4402 #endif // V8_OBJECTS_H_ | 4406 #endif // V8_OBJECTS_H_ |
| OLD | NEW |