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

Side by Side Diff: src/objects.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/factory.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 9500 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698