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

Unified Diff: src/property.h

Issue 14425011: api: Object::CachedProperty Base URL: gh:v8/v8.git@master
Patch Set: globalize reference Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.cc ('k') | src/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/property.h
diff --git a/src/property.h b/src/property.h
index 229241948a8c4ee0dc253e199bdbd1710fdb8159..a1c46a69bab6f877de4aba7ebd3effc09ad6dc51 100644
--- a/src/property.h
+++ b/src/property.h
@@ -207,6 +207,15 @@ class LookupResult BASE_EMBEDDED {
Isolate* isolate() const { return isolate_; }
+ void CopyFrom(LookupResult* res, JSObject* new_holder) {
+ isolate_ = res->isolate_;
+ lookup_type_ = res->lookup_type_;
+ number_ = res->number_;
+ cacheable_ = res->cacheable_;
+ details_ = res->details_;
+ holder_ = new_holder;
+ }
+
void DescriptorResult(JSObject* holder, PropertyDetails details, int number) {
lookup_type_ = DESCRIPTOR_TYPE;
holder_ = holder;
@@ -475,7 +484,7 @@ class LookupResult BASE_EMBEDDED {
void Iterate(ObjectVisitor* visitor);
- private:
+ protected:
Isolate* isolate_;
LookupResult* next_;
« no previous file with comments | « src/objects.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698