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

Side by Side Diff: src/objects-inl.h

Issue 17895004: Add DependentCode to PropertyCells (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Moar review feedback 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 | « src/objects.cc ('k') | src/objects-visiting.h » ('j') | 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 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 return READ_FIELD(this, kValueOffset); 1634 return READ_FIELD(this, kValueOffset);
1635 } 1635 }
1636 1636
1637 1637
1638 void Cell::set_value(Object* val, WriteBarrierMode ignored) { 1638 void Cell::set_value(Object* val, WriteBarrierMode ignored) {
1639 // The write barrier is not used for global property cells. 1639 // The write barrier is not used for global property cells.
1640 ASSERT(!val->IsPropertyCell() && !val->IsCell()); 1640 ASSERT(!val->IsPropertyCell() && !val->IsCell());
1641 WRITE_FIELD(this, kValueOffset, val); 1641 WRITE_FIELD(this, kValueOffset, val);
1642 } 1642 }
1643 1643
1644 ACCESSORS(PropertyCell, dependent_code, DependentCode, kDependentCodeOffset)
1644 1645
1645 Object* PropertyCell::type_raw() { 1646 Object* PropertyCell::type_raw() {
1646 return READ_FIELD(this, kTypeOffset); 1647 return READ_FIELD(this, kTypeOffset);
1647 } 1648 }
1648 1649
1649 1650
1650 void PropertyCell::set_type_raw(Object* val, WriteBarrierMode ignored) { 1651 void PropertyCell::set_type_raw(Object* val, WriteBarrierMode ignored) {
1651 WRITE_FIELD(this, kTypeOffset, val); 1652 WRITE_FIELD(this, kTypeOffset, val);
1652 } 1653 }
1653 1654
(...skipping 4531 matching lines...) Expand 10 before | Expand all | Expand 10 after
6185 #undef WRITE_UINT32_FIELD 6186 #undef WRITE_UINT32_FIELD
6186 #undef READ_SHORT_FIELD 6187 #undef READ_SHORT_FIELD
6187 #undef WRITE_SHORT_FIELD 6188 #undef WRITE_SHORT_FIELD
6188 #undef READ_BYTE_FIELD 6189 #undef READ_BYTE_FIELD
6189 #undef WRITE_BYTE_FIELD 6190 #undef WRITE_BYTE_FIELD
6190 6191
6191 6192
6192 } } // namespace v8::internal 6193 } } // namespace v8::internal
6193 6194
6194 #endif // V8_OBJECTS_INL_H_ 6195 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-visiting.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698