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

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

Issue 1542943002: [proxies] Expose proxies in the API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2015-12-17_JSProxy_d8_printing_1530293004
Patch Set: adressing comments 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') | test/cctest/test-api.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 6336 matching lines...) Expand 10 before | Expand all | Expand 10 after
6347 set_literals_or_bindings(bindings); 6347 set_literals_or_bindings(bindings);
6348 } 6348 }
6349 6349
6350 6350
6351 int JSFunction::NumberOfLiterals() { 6351 int JSFunction::NumberOfLiterals() {
6352 DCHECK(!shared()->bound()); 6352 DCHECK(!shared()->bound());
6353 return literals()->length(); 6353 return literals()->length();
6354 } 6354 }
6355 6355
6356 6356
6357 ACCESSORS(JSProxy, target, JSReceiver, kTargetOffset)
6357 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) 6358 ACCESSORS(JSProxy, handler, Object, kHandlerOffset)
6358 ACCESSORS(JSProxy, target, JSReceiver, kTargetOffset)
6359 ACCESSORS(JSProxy, hash, Object, kHashOffset) 6359 ACCESSORS(JSProxy, hash, Object, kHashOffset)
6360 6360
6361 bool JSProxy::IsRevoked() const { return !handler()->IsJSReceiver(); } 6361 bool JSProxy::IsRevoked() const { return !handler()->IsJSReceiver(); }
6362 6362
6363 ACCESSORS(JSCollection, table, Object, kTableOffset) 6363 ACCESSORS(JSCollection, table, Object, kTableOffset)
6364 6364
6365 6365
6366 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \ 6366 #define ORDERED_HASH_TABLE_ITERATOR_ACCESSORS(name, type, offset) \
6367 template<class Derived, class TableType> \ 6367 template<class Derived, class TableType> \
6368 type* OrderedHashTableIterator<Derived, TableType>::name() const { \ 6368 type* OrderedHashTableIterator<Derived, TableType>::name() const { \
(...skipping 1516 matching lines...) Expand 10 before | Expand all | Expand 10 after
7885 #undef WRITE_INT64_FIELD 7885 #undef WRITE_INT64_FIELD
7886 #undef READ_BYTE_FIELD 7886 #undef READ_BYTE_FIELD
7887 #undef WRITE_BYTE_FIELD 7887 #undef WRITE_BYTE_FIELD
7888 #undef NOBARRIER_READ_BYTE_FIELD 7888 #undef NOBARRIER_READ_BYTE_FIELD
7889 #undef NOBARRIER_WRITE_BYTE_FIELD 7889 #undef NOBARRIER_WRITE_BYTE_FIELD
7890 7890
7891 } // namespace internal 7891 } // namespace internal
7892 } // namespace v8 7892 } // namespace v8
7893 7893
7894 #endif // V8_OBJECTS_INL_H_ 7894 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698