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

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

Issue 1486553002: [proxies] Use IsRevoked where possible, remove has_handler. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 5 years 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
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-proxy.cc » ('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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 6313 matching lines...) Expand 10 before | Expand all | Expand 10 after
6324 6324
6325 int JSFunction::NumberOfLiterals() { 6325 int JSFunction::NumberOfLiterals() {
6326 DCHECK(!shared()->bound()); 6326 DCHECK(!shared()->bound());
6327 return literals()->length(); 6327 return literals()->length();
6328 } 6328 }
6329 6329
6330 6330
6331 ACCESSORS(JSProxy, target, Object, kTargetOffset) 6331 ACCESSORS(JSProxy, target, Object, kTargetOffset)
6332 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) 6332 ACCESSORS(JSProxy, handler, Object, kHandlerOffset)
6333 ACCESSORS(JSProxy, hash, Object, kHashOffset) 6333 ACCESSORS(JSProxy, hash, Object, kHashOffset)
6334 bool JSProxy::has_handler() { return !handler()->IsNull(); }
6335 6334
6336 ACCESSORS(JSFunctionProxy, call_trap, JSReceiver, kCallTrapOffset) 6335 ACCESSORS(JSFunctionProxy, call_trap, JSReceiver, kCallTrapOffset)
6337 ACCESSORS(JSFunctionProxy, construct_trap, Object, kConstructTrapOffset) 6336 ACCESSORS(JSFunctionProxy, construct_trap, Object, kConstructTrapOffset)
6338 6337
6339 6338
6340 ACCESSORS(JSCollection, table, Object, kTableOffset) 6339 ACCESSORS(JSCollection, table, Object, kTableOffset)
6341 6340
6342 6341
6343 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \ 6342 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \
6344 template<class Derived, class TableType> \ 6343 template<class Derived, class TableType> \
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
7863 #undef WRITE_INT64_FIELD 7862 #undef WRITE_INT64_FIELD
7864 #undef READ_BYTE_FIELD 7863 #undef READ_BYTE_FIELD
7865 #undef WRITE_BYTE_FIELD 7864 #undef WRITE_BYTE_FIELD
7866 #undef NOBARRIER_READ_BYTE_FIELD 7865 #undef NOBARRIER_READ_BYTE_FIELD
7867 #undef NOBARRIER_WRITE_BYTE_FIELD 7866 #undef NOBARRIER_WRITE_BYTE_FIELD
7868 7867
7869 } // namespace internal 7868 } // namespace internal
7870 } // namespace v8 7869 } // namespace v8
7871 7870
7872 #endif // V8_OBJECTS_INL_H_ 7871 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime/runtime-proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698