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

Side by Side Diff: src/objects.h

Issue 10824084: Fix deserializer to understand direct pointers from code to cell payloads. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 4 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
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 7897 matching lines...) Expand 10 before | Expand all | Expand 10 after
7908 7908
7909 7909
7910 class JSGlobalPropertyCell: public HeapObject { 7910 class JSGlobalPropertyCell: public HeapObject {
7911 public: 7911 public:
7912 // [value]: value of the global property. 7912 // [value]: value of the global property.
7913 DECL_ACCESSORS(value, Object) 7913 DECL_ACCESSORS(value, Object)
7914 7914
7915 // Casting. 7915 // Casting.
7916 static inline JSGlobalPropertyCell* cast(Object* obj); 7916 static inline JSGlobalPropertyCell* cast(Object* obj);
7917 7917
7918 static inline JSGlobalPropertyCell* FromValueAddress(Address value) {
7919 return cast(FromAddress(value - kValueOffset));
7920 }
7921
7922 inline Address ValueAddress() {
7923 return address() + kValueOffset;
7924 }
7925
7918 #ifdef DEBUG 7926 #ifdef DEBUG
7919 void JSGlobalPropertyCellVerify(); 7927 void JSGlobalPropertyCellVerify();
7920 #endif 7928 #endif
7921 #ifdef OBJECT_PRINT 7929 #ifdef OBJECT_PRINT
7922 inline void JSGlobalPropertyCellPrint() { 7930 inline void JSGlobalPropertyCellPrint() {
7923 JSGlobalPropertyCellPrint(stdout); 7931 JSGlobalPropertyCellPrint(stdout);
7924 } 7932 }
7925 void JSGlobalPropertyCellPrint(FILE* out); 7933 void JSGlobalPropertyCellPrint(FILE* out);
7926 #endif 7934 #endif
7927 7935
(...skipping 982 matching lines...) Expand 10 before | Expand all | Expand 10 after
8910 } else { 8918 } else {
8911 value &= ~(1 << bit_position); 8919 value &= ~(1 << bit_position);
8912 } 8920 }
8913 return value; 8921 return value;
8914 } 8922 }
8915 }; 8923 };
8916 8924
8917 } } // namespace v8::internal 8925 } } // namespace v8::internal
8918 8926
8919 #endif // V8_OBJECTS_H_ 8927 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698