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

Side by Side Diff: src/objects.h

Issue 46673004: Remove unused ValueInfo struct (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | 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 858 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 class AllocationSite; 869 class AllocationSite;
870 class AllocationSiteContext; 870 class AllocationSiteContext;
871 class DictionaryElementsAccessor; 871 class DictionaryElementsAccessor;
872 class ElementsAccessor; 872 class ElementsAccessor;
873 class Failure; 873 class Failure;
874 class FixedArrayBase; 874 class FixedArrayBase;
875 class ObjectVisitor; 875 class ObjectVisitor;
876 class StringStream; 876 class StringStream;
877 class Type; 877 class Type;
878 878
879 struct ValueInfo : public Malloced {
880 ValueInfo() : type(FIRST_TYPE), ptr(NULL), str(NULL), number(0) { }
881 InstanceType type;
882 Object* ptr;
883 const char* str;
884 double number;
885 };
886
887 879
888 // A template-ized version of the IsXXX functions. 880 // A template-ized version of the IsXXX functions.
889 template <class C> inline bool Is(Object* obj); 881 template <class C> inline bool Is(Object* obj);
890 882
891 #ifdef VERIFY_HEAP 883 #ifdef VERIFY_HEAP
892 #define DECLARE_VERIFIER(Name) void Name##Verify(); 884 #define DECLARE_VERIFIER(Name) void Name##Verify();
893 #else 885 #else
894 #define DECLARE_VERIFIER(Name) 886 #define DECLARE_VERIFIER(Name)
895 #endif 887 #endif
896 888
(...skipping 9543 matching lines...) Expand 10 before | Expand all | Expand 10 after
10440 } else { 10432 } else {
10441 value &= ~(1 << bit_position); 10433 value &= ~(1 << bit_position);
10442 } 10434 }
10443 return value; 10435 return value;
10444 } 10436 }
10445 }; 10437 };
10446 10438
10447 } } // namespace v8::internal 10439 } } // namespace v8::internal
10448 10440
10449 #endif // V8_OBJECTS_H_ 10441 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698