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

Side by Side Diff: src/objects.h

Issue 19978003: Fix TargetSpace() method for box type. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | « include/v8.h ('k') | no next file » | 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 // 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 V(SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE) \ 348 V(SHORT_EXTERNAL_INTERNALIZED_STRING_TYPE) \
349 V(SHORT_EXTERNAL_ASCII_INTERNALIZED_STRING_TYPE) \ 349 V(SHORT_EXTERNAL_ASCII_INTERNALIZED_STRING_TYPE) \
350 V(SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE) \ 350 V(SHORT_EXTERNAL_INTERNALIZED_STRING_WITH_ONE_BYTE_DATA_TYPE) \
351 \ 351 \
352 V(SYMBOL_TYPE) \ 352 V(SYMBOL_TYPE) \
353 V(MAP_TYPE) \ 353 V(MAP_TYPE) \
354 V(CODE_TYPE) \ 354 V(CODE_TYPE) \
355 V(ODDBALL_TYPE) \ 355 V(ODDBALL_TYPE) \
356 V(CELL_TYPE) \ 356 V(CELL_TYPE) \
357 V(PROPERTY_CELL_TYPE) \ 357 V(PROPERTY_CELL_TYPE) \
358 V(BOX_TYPE) \
359 \ 358 \
360 V(HEAP_NUMBER_TYPE) \ 359 V(HEAP_NUMBER_TYPE) \
361 V(FOREIGN_TYPE) \ 360 V(FOREIGN_TYPE) \
362 V(BYTE_ARRAY_TYPE) \ 361 V(BYTE_ARRAY_TYPE) \
363 V(FREE_SPACE_TYPE) \ 362 V(FREE_SPACE_TYPE) \
364 /* Note: the order of these external array */ \ 363 /* Note: the order of these external array */ \
365 /* types is relied upon in */ \ 364 /* types is relied upon in */ \
366 /* Object::IsExternalArray(). */ \ 365 /* Object::IsExternalArray(). */ \
367 V(EXTERNAL_BYTE_ARRAY_TYPE) \ 366 V(EXTERNAL_BYTE_ARRAY_TYPE) \
368 V(EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE) \ 367 V(EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE) \
(...skipping 17 matching lines...) Expand all
386 V(OBJECT_TEMPLATE_INFO_TYPE) \ 385 V(OBJECT_TEMPLATE_INFO_TYPE) \
387 V(SIGNATURE_INFO_TYPE) \ 386 V(SIGNATURE_INFO_TYPE) \
388 V(TYPE_SWITCH_INFO_TYPE) \ 387 V(TYPE_SWITCH_INFO_TYPE) \
389 V(ALLOCATION_SITE_INFO_TYPE) \ 388 V(ALLOCATION_SITE_INFO_TYPE) \
390 V(ALLOCATION_SITE_TYPE) \ 389 V(ALLOCATION_SITE_TYPE) \
391 V(SCRIPT_TYPE) \ 390 V(SCRIPT_TYPE) \
392 V(CODE_CACHE_TYPE) \ 391 V(CODE_CACHE_TYPE) \
393 V(POLYMORPHIC_CODE_CACHE_TYPE) \ 392 V(POLYMORPHIC_CODE_CACHE_TYPE) \
394 V(TYPE_FEEDBACK_INFO_TYPE) \ 393 V(TYPE_FEEDBACK_INFO_TYPE) \
395 V(ALIASED_ARGUMENTS_ENTRY_TYPE) \ 394 V(ALIASED_ARGUMENTS_ENTRY_TYPE) \
395 V(BOX_TYPE) \
396 \ 396 \
397 V(FIXED_ARRAY_TYPE) \ 397 V(FIXED_ARRAY_TYPE) \
398 V(FIXED_DOUBLE_ARRAY_TYPE) \ 398 V(FIXED_DOUBLE_ARRAY_TYPE) \
399 V(SHARED_FUNCTION_INFO_TYPE) \ 399 V(SHARED_FUNCTION_INFO_TYPE) \
400 \ 400 \
401 V(JS_MESSAGE_OBJECT_TYPE) \ 401 V(JS_MESSAGE_OBJECT_TYPE) \
402 \ 402 \
403 V(JS_VALUE_TYPE) \ 403 V(JS_VALUE_TYPE) \
404 V(JS_DATE_TYPE) \ 404 V(JS_DATE_TYPE) \
405 V(JS_OBJECT_TYPE) \ 405 V(JS_OBJECT_TYPE) \
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 672
673 // Non-string names 673 // Non-string names
674 SYMBOL_TYPE = kNotStringTag, // LAST_NAME_TYPE, FIRST_NONSTRING_TYPE 674 SYMBOL_TYPE = kNotStringTag, // LAST_NAME_TYPE, FIRST_NONSTRING_TYPE
675 675
676 // Objects allocated in their own spaces (never in new space). 676 // Objects allocated in their own spaces (never in new space).
677 MAP_TYPE, 677 MAP_TYPE,
678 CODE_TYPE, 678 CODE_TYPE,
679 ODDBALL_TYPE, 679 ODDBALL_TYPE,
680 CELL_TYPE, 680 CELL_TYPE,
681 PROPERTY_CELL_TYPE, 681 PROPERTY_CELL_TYPE,
682 BOX_TYPE,
683 682
684 // "Data", objects that cannot contain non-map-word pointers to heap 683 // "Data", objects that cannot contain non-map-word pointers to heap
685 // objects. 684 // objects.
686 HEAP_NUMBER_TYPE, 685 HEAP_NUMBER_TYPE,
687 FOREIGN_TYPE, 686 FOREIGN_TYPE,
688 BYTE_ARRAY_TYPE, 687 BYTE_ARRAY_TYPE,
689 FREE_SPACE_TYPE, 688 FREE_SPACE_TYPE,
690 EXTERNAL_BYTE_ARRAY_TYPE, // FIRST_EXTERNAL_ARRAY_TYPE 689 EXTERNAL_BYTE_ARRAY_TYPE, // FIRST_EXTERNAL_ARRAY_TYPE
691 EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE, 690 EXTERNAL_UNSIGNED_BYTE_ARRAY_TYPE,
692 EXTERNAL_SHORT_ARRAY_TYPE, 691 EXTERNAL_SHORT_ARRAY_TYPE,
(...skipping 18 matching lines...) Expand all
711 OBJECT_TEMPLATE_INFO_TYPE, 710 OBJECT_TEMPLATE_INFO_TYPE,
712 SIGNATURE_INFO_TYPE, 711 SIGNATURE_INFO_TYPE,
713 TYPE_SWITCH_INFO_TYPE, 712 TYPE_SWITCH_INFO_TYPE,
714 ALLOCATION_SITE_TYPE, 713 ALLOCATION_SITE_TYPE,
715 ALLOCATION_SITE_INFO_TYPE, 714 ALLOCATION_SITE_INFO_TYPE,
716 SCRIPT_TYPE, 715 SCRIPT_TYPE,
717 CODE_CACHE_TYPE, 716 CODE_CACHE_TYPE,
718 POLYMORPHIC_CODE_CACHE_TYPE, 717 POLYMORPHIC_CODE_CACHE_TYPE,
719 TYPE_FEEDBACK_INFO_TYPE, 718 TYPE_FEEDBACK_INFO_TYPE,
720 ALIASED_ARGUMENTS_ENTRY_TYPE, 719 ALIASED_ARGUMENTS_ENTRY_TYPE,
720 BOX_TYPE,
721 // The following two instance types are only used when ENABLE_DEBUGGER_SUPPORT 721 // The following two instance types are only used when ENABLE_DEBUGGER_SUPPORT
722 // is defined. However as include/v8.h contain some of the instance type 722 // is defined. However as include/v8.h contain some of the instance type
723 // constants always having them avoids them getting different numbers 723 // constants always having them avoids them getting different numbers
724 // depending on whether ENABLE_DEBUGGER_SUPPORT is defined or not. 724 // depending on whether ENABLE_DEBUGGER_SUPPORT is defined or not.
725 DEBUG_INFO_TYPE, 725 DEBUG_INFO_TYPE,
726 BREAK_POINT_INFO_TYPE, 726 BREAK_POINT_INFO_TYPE,
727 727
728 FIXED_ARRAY_TYPE, 728 FIXED_ARRAY_TYPE,
729 SHARED_FUNCTION_INFO_TYPE, 729 SHARED_FUNCTION_INFO_TYPE,
730 730
(...skipping 9088 matching lines...) Expand 10 before | Expand all | Expand 10 after
9819 } else { 9819 } else {
9820 value &= ~(1 << bit_position); 9820 value &= ~(1 << bit_position);
9821 } 9821 }
9822 return value; 9822 return value;
9823 } 9823 }
9824 }; 9824 };
9825 9825
9826 } } // namespace v8::internal 9826 } } // namespace v8::internal
9827 9827
9828 #endif // V8_OBJECTS_H_ 9828 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698