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

Side by Side Diff: src/objects.h

Issue 1702353002: Attempt to speed up v8::Object::SetPrivate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 10 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/api.cc ('k') | src/objects.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 9760 matching lines...) Expand 10 before | Expand all | Expand 10 after
9771 static const int kHashOffset = kHandlerOffset + kPointerSize; 9771 static const int kHashOffset = kHandlerOffset + kPointerSize;
9772 static const int kSize = kHashOffset + kPointerSize; 9772 static const int kSize = kHashOffset + kPointerSize;
9773 9773
9774 typedef FixedBodyDescriptor<JSReceiver::kPropertiesOffset, kSize, kSize> 9774 typedef FixedBodyDescriptor<JSReceiver::kPropertiesOffset, kSize, kSize>
9775 BodyDescriptor; 9775 BodyDescriptor;
9776 9776
9777 MUST_USE_RESULT Object* GetIdentityHash(); 9777 MUST_USE_RESULT Object* GetIdentityHash();
9778 9778
9779 static Handle<Smi> GetOrCreateIdentityHash(Handle<JSProxy> proxy); 9779 static Handle<Smi> GetOrCreateIdentityHash(Handle<JSProxy> proxy);
9780 9780
9781 private: 9781 static Maybe<bool> SetPrivateProperty(Isolate* isolate, Handle<JSProxy> proxy,
9782 static Maybe<bool> AddPrivateProperty(Isolate* isolate, Handle<JSProxy> proxy,
9783 Handle<Symbol> private_name, 9782 Handle<Symbol> private_name,
9784 PropertyDescriptor* desc, 9783 PropertyDescriptor* desc,
9785 ShouldThrow should_throw); 9784 ShouldThrow should_throw);
9786 9785
9786 private:
9787 DISALLOW_IMPLICIT_CONSTRUCTORS(JSProxy); 9787 DISALLOW_IMPLICIT_CONSTRUCTORS(JSProxy);
9788 }; 9788 };
9789 9789
9790 9790
9791 class JSCollection : public JSObject { 9791 class JSCollection : public JSObject {
9792 public: 9792 public:
9793 // [table]: the backing hash table 9793 // [table]: the backing hash table
9794 DECL_ACCESSORS(table, Object) 9794 DECL_ACCESSORS(table, Object)
9795 9795
9796 static const int kTableOffset = JSObject::kHeaderSize; 9796 static const int kTableOffset = JSObject::kHeaderSize;
(...skipping 1040 matching lines...) Expand 10 before | Expand all | Expand 10 after
10837 } 10837 }
10838 return value; 10838 return value;
10839 } 10839 }
10840 }; 10840 };
10841 10841
10842 10842
10843 } // NOLINT, false-positive due to second-order macros. 10843 } // NOLINT, false-positive due to second-order macros.
10844 } // NOLINT, false-positive due to second-order macros. 10844 } // NOLINT, false-positive due to second-order macros.
10845 10845
10846 #endif // V8_OBJECTS_H_ 10846 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698