OLD | NEW |
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 9500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9511 typedef FixedBodyDescriptor<kValueOffset, kSize, kSize> BodyDescriptor; | 9511 typedef FixedBodyDescriptor<kValueOffset, kSize, kSize> BodyDescriptor; |
9512 | 9512 |
9513 private: | 9513 private: |
9514 DISALLOW_IMPLICIT_CONSTRUCTORS(WeakCell); | 9514 DISALLOW_IMPLICIT_CONSTRUCTORS(WeakCell); |
9515 }; | 9515 }; |
9516 | 9516 |
9517 | 9517 |
9518 // The JSProxy describes EcmaScript Harmony proxies | 9518 // The JSProxy describes EcmaScript Harmony proxies |
9519 class JSProxy: public JSReceiver { | 9519 class JSProxy: public JSReceiver { |
9520 public: | 9520 public: |
| 9521 MUST_USE_RESULT static MaybeHandle<JSProxy> New(Isolate* isolate, |
| 9522 Handle<Object>, |
| 9523 Handle<Object>); |
| 9524 |
9521 // [handler]: The handler property. | 9525 // [handler]: The handler property. |
9522 DECL_ACCESSORS(handler, Object) | 9526 DECL_ACCESSORS(handler, Object) |
9523 // [target]: The target property. | 9527 // [target]: The target property. |
9524 DECL_ACCESSORS(target, JSReceiver) | 9528 DECL_ACCESSORS(target, JSReceiver) |
9525 // [hash]: The hash code property (undefined if not initialized yet). | 9529 // [hash]: The hash code property (undefined if not initialized yet). |
9526 DECL_ACCESSORS(hash, Object) | 9530 DECL_ACCESSORS(hash, Object) |
9527 | 9531 |
9528 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy); | 9532 static MaybeHandle<Context> GetFunctionRealm(Handle<JSProxy> proxy); |
9529 | 9533 |
9530 DECLARE_CAST(JSProxy) | 9534 DECLARE_CAST(JSProxy) |
(...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10712 } | 10716 } |
10713 return value; | 10717 return value; |
10714 } | 10718 } |
10715 }; | 10719 }; |
10716 | 10720 |
10717 | 10721 |
10718 } // NOLINT, false-positive due to second-order macros. | 10722 } // NOLINT, false-positive due to second-order macros. |
10719 } // NOLINT, false-positive due to second-order macros. | 10723 } // NOLINT, false-positive due to second-order macros. |
10720 | 10724 |
10721 #endif // V8_OBJECTS_H_ | 10725 #endif // V8_OBJECTS_H_ |
OLD | NEW |