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

Side by Side Diff: src/property.h

Issue 137213009: Clean up accessors in the Isolate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: small fix Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/isolate.h ('k') | no next file » | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 class LookupResult BASE_EMBEDDED { 180 class LookupResult BASE_EMBEDDED {
181 public: 181 public:
182 explicit LookupResult(Isolate* isolate) 182 explicit LookupResult(Isolate* isolate)
183 : isolate_(isolate), 183 : isolate_(isolate),
184 next_(isolate->top_lookup_result()), 184 next_(isolate->top_lookup_result()),
185 lookup_type_(NOT_FOUND), 185 lookup_type_(NOT_FOUND),
186 holder_(NULL), 186 holder_(NULL),
187 cacheable_(true), 187 cacheable_(true),
188 details_(NONE, NONEXISTENT, Representation::None()) { 188 details_(NONE, NONEXISTENT, Representation::None()) {
189 isolate->SetTopLookupResult(this); 189 isolate->set_top_lookup_result(this);
190 } 190 }
191 191
192 ~LookupResult() { 192 ~LookupResult() {
193 ASSERT(isolate()->top_lookup_result() == this); 193 ASSERT(isolate()->top_lookup_result() == this);
194 isolate()->SetTopLookupResult(next_); 194 isolate()->set_top_lookup_result(next_);
195 } 195 }
196 196
197 Isolate* isolate() const { return isolate_; } 197 Isolate* isolate() const { return isolate_; }
198 198
199 void DescriptorResult(JSObject* holder, PropertyDetails details, int number) { 199 void DescriptorResult(JSObject* holder, PropertyDetails details, int number) {
200 lookup_type_ = DESCRIPTOR_TYPE; 200 lookup_type_ = DESCRIPTOR_TYPE;
201 holder_ = holder; 201 holder_ = holder;
202 details_ = details; 202 details_ = details;
203 number_ = number; 203 number_ = number;
204 } 204 }
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 JSReceiver* holder_; 503 JSReceiver* holder_;
504 int number_; 504 int number_;
505 bool cacheable_; 505 bool cacheable_;
506 PropertyDetails details_; 506 PropertyDetails details_;
507 }; 507 };
508 508
509 509
510 } } // namespace v8::internal 510 } } // namespace v8::internal
511 511
512 #endif // V8_PROPERTY_H_ 512 #endif // V8_PROPERTY_H_
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698