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-inl.h

Issue 16813005: Deprecate obsolete JSFunction::unchecked_shared accessor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 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.h ('k') | src/objects-visiting-inl.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 4942 matching lines...) Expand 10 before | Expand all | Expand 10 after
4953 Context* JSFunction::context() { 4953 Context* JSFunction::context() {
4954 return Context::cast(READ_FIELD(this, kContextOffset)); 4954 return Context::cast(READ_FIELD(this, kContextOffset));
4955 } 4955 }
4956 4956
4957 4957
4958 Object* JSFunction::unchecked_context() { 4958 Object* JSFunction::unchecked_context() {
4959 return READ_FIELD(this, kContextOffset); 4959 return READ_FIELD(this, kContextOffset);
4960 } 4960 }
4961 4961
4962 4962
4963 SharedFunctionInfo* JSFunction::unchecked_shared() {
4964 return reinterpret_cast<SharedFunctionInfo*>(
4965 READ_FIELD(this, kSharedFunctionInfoOffset));
4966 }
4967
4968
4969 void JSFunction::set_context(Object* value) { 4963 void JSFunction::set_context(Object* value) {
4970 ASSERT(value->IsUndefined() || value->IsContext()); 4964 ASSERT(value->IsUndefined() || value->IsContext());
4971 WRITE_FIELD(this, kContextOffset, value); 4965 WRITE_FIELD(this, kContextOffset, value);
4972 WRITE_BARRIER(GetHeap(), this, kContextOffset, value); 4966 WRITE_BARRIER(GetHeap(), this, kContextOffset, value);
4973 } 4967 }
4974 4968
4975 ACCESSORS(JSFunction, prototype_or_initial_map, Object, 4969 ACCESSORS(JSFunction, prototype_or_initial_map, Object,
4976 kPrototypeOrInitialMapOffset) 4970 kPrototypeOrInitialMapOffset)
4977 4971
4978 4972
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after
6231 #undef WRITE_UINT32_FIELD 6225 #undef WRITE_UINT32_FIELD
6232 #undef READ_SHORT_FIELD 6226 #undef READ_SHORT_FIELD
6233 #undef WRITE_SHORT_FIELD 6227 #undef WRITE_SHORT_FIELD
6234 #undef READ_BYTE_FIELD 6228 #undef READ_BYTE_FIELD
6235 #undef WRITE_BYTE_FIELD 6229 #undef WRITE_BYTE_FIELD
6236 6230
6237 6231
6238 } } // namespace v8::internal 6232 } } // namespace v8::internal
6239 6233
6240 #endif // V8_OBJECTS_INL_H_ 6234 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-visiting-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698