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 1909433003: Remove support for Object.observe (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 4 years, 8 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
« no previous file with comments | « src/objects.cc ('k') | src/objects-printer.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 4426 matching lines...) Expand 10 before | Expand all | Expand 10 after
4437 void Map::set_is_undetectable() { 4437 void Map::set_is_undetectable() {
4438 set_bit_field(bit_field() | (1 << kIsUndetectable)); 4438 set_bit_field(bit_field() | (1 << kIsUndetectable));
4439 } 4439 }
4440 4440
4441 4441
4442 bool Map::is_undetectable() { 4442 bool Map::is_undetectable() {
4443 return ((1 << kIsUndetectable) & bit_field()) != 0; 4443 return ((1 << kIsUndetectable) & bit_field()) != 0;
4444 } 4444 }
4445 4445
4446 4446
4447 void Map::set_is_observed() { set_bit_field(bit_field() | (1 << kIsObserved)); }
4448
4449 bool Map::is_observed() { return ((1 << kIsObserved) & bit_field()) != 0; }
4450
4451
4452 void Map::set_has_named_interceptor() { 4447 void Map::set_has_named_interceptor() {
4453 set_bit_field(bit_field() | (1 << kHasNamedInterceptor)); 4448 set_bit_field(bit_field() | (1 << kHasNamedInterceptor));
4454 } 4449 }
4455 4450
4456 4451
4457 bool Map::has_named_interceptor() { 4452 bool Map::has_named_interceptor() {
4458 return ((1 << kHasNamedInterceptor) & bit_field()) != 0; 4453 return ((1 << kHasNamedInterceptor) & bit_field()) != 0;
4459 } 4454 }
4460 4455
4461 4456
(...skipping 3356 matching lines...) Expand 10 before | Expand all | Expand 10 after
7818 #undef WRITE_INT64_FIELD 7813 #undef WRITE_INT64_FIELD
7819 #undef READ_BYTE_FIELD 7814 #undef READ_BYTE_FIELD
7820 #undef WRITE_BYTE_FIELD 7815 #undef WRITE_BYTE_FIELD
7821 #undef NOBARRIER_READ_BYTE_FIELD 7816 #undef NOBARRIER_READ_BYTE_FIELD
7822 #undef NOBARRIER_WRITE_BYTE_FIELD 7817 #undef NOBARRIER_WRITE_BYTE_FIELD
7823 7818
7824 } // namespace internal 7819 } // namespace internal
7825 } // namespace v8 7820 } // namespace v8
7826 7821
7827 #endif // V8_OBJECTS_INL_H_ 7822 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698