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

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

Issue 1494673004: For non-prototype objects constructed using base==new.target, use the cached constructor to render … (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/mjsunit/regress/regress-crbug-523308.js » ('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 4732 matching lines...) Expand 10 before | Expand all | Expand 10 after
4743 void Map::set_is_strong() { 4743 void Map::set_is_strong() {
4744 set_bit_field3(IsStrong::update(bit_field3(), true)); 4744 set_bit_field3(IsStrong::update(bit_field3(), true));
4745 } 4745 }
4746 4746
4747 4747
4748 bool Map::is_strong() { 4748 bool Map::is_strong() {
4749 return IsStrong::decode(bit_field3()); 4749 return IsStrong::decode(bit_field3());
4750 } 4750 }
4751 4751
4752 4752
4753 void Map::set_new_target_is_base(bool value) {
4754 set_bit_field3(NewTargetIsBase::update(bit_field3(), value));
4755 }
4756
4757
4758 bool Map::new_target_is_base() { return NewTargetIsBase::decode(bit_field3()); }
4759
4760
4753 void Map::set_counter(int value) { 4761 void Map::set_counter(int value) {
4754 set_bit_field3(Counter::update(bit_field3(), value)); 4762 set_bit_field3(Counter::update(bit_field3(), value));
4755 } 4763 }
4756 4764
4757 4765
4758 int Map::counter() { return Counter::decode(bit_field3()); } 4766 int Map::counter() { return Counter::decode(bit_field3()); }
4759 4767
4760 4768
4761 void Map::mark_unstable() { 4769 void Map::mark_unstable() {
4762 set_bit_field3(IsUnstable::update(bit_field3(), true)); 4770 set_bit_field3(IsUnstable::update(bit_field3(), true));
(...skipping 3086 matching lines...) Expand 10 before | Expand all | Expand 10 after
7849 #undef WRITE_INT64_FIELD 7857 #undef WRITE_INT64_FIELD
7850 #undef READ_BYTE_FIELD 7858 #undef READ_BYTE_FIELD
7851 #undef WRITE_BYTE_FIELD 7859 #undef WRITE_BYTE_FIELD
7852 #undef NOBARRIER_READ_BYTE_FIELD 7860 #undef NOBARRIER_READ_BYTE_FIELD
7853 #undef NOBARRIER_WRITE_BYTE_FIELD 7861 #undef NOBARRIER_WRITE_BYTE_FIELD
7854 7862
7855 } // namespace internal 7863 } // namespace internal
7856 } // namespace v8 7864 } // namespace v8
7857 7865
7858 #endif // V8_OBJECTS_INL_H_ 7866 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/regress/regress-crbug-523308.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698