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

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

Issue 7391001: Implement sealing, freezing, and related functions for proxies. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing Mads' comments, plus bug fix. Created 9 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3743 matching lines...) Expand 10 before | Expand all | Expand 10 after
3754 3754
3755 void JSBuiltinsObject::set_javascript_builtin_code(Builtins::JavaScript id, 3755 void JSBuiltinsObject::set_javascript_builtin_code(Builtins::JavaScript id,
3756 Code* value) { 3756 Code* value) {
3757 ASSERT(id < kJSBuiltinsCount); // id is unsigned. 3757 ASSERT(id < kJSBuiltinsCount); // id is unsigned.
3758 WRITE_FIELD(this, OffsetOfCodeWithId(id), value); 3758 WRITE_FIELD(this, OffsetOfCodeWithId(id), value);
3759 ASSERT(!HEAP->InNewSpace(value)); 3759 ASSERT(!HEAP->InNewSpace(value));
3760 } 3760 }
3761 3761
3762 3762
3763 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) 3763 ACCESSORS(JSProxy, handler, Object, kHandlerOffset)
3764 ACCESSORS(JSProxy, padding, Object, kPaddingOffset)
3764 3765
3765 3766
3766 Address Foreign::address() { 3767 Address Foreign::address() {
3767 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kAddressOffset)); 3768 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kAddressOffset));
3768 } 3769 }
3769 3770
3770 3771
3771 void Foreign::set_address(Address value) { 3772 void Foreign::set_address(Address value) {
3772 WRITE_INTPTR_FIELD(this, kAddressOffset, OffsetFrom(value)); 3773 WRITE_INTPTR_FIELD(this, kAddressOffset, OffsetFrom(value));
3773 } 3774 }
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after
4463 #undef WRITE_INT_FIELD 4464 #undef WRITE_INT_FIELD
4464 #undef READ_SHORT_FIELD 4465 #undef READ_SHORT_FIELD
4465 #undef WRITE_SHORT_FIELD 4466 #undef WRITE_SHORT_FIELD
4466 #undef READ_BYTE_FIELD 4467 #undef READ_BYTE_FIELD
4467 #undef WRITE_BYTE_FIELD 4468 #undef WRITE_BYTE_FIELD
4468 4469
4469 4470
4470 } } // namespace v8::internal 4471 } } // namespace v8::internal
4471 4472
4472 #endif // V8_OBJECTS_INL_H_ 4473 #endif // V8_OBJECTS_INL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698