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

Side by Side Diff: src/lookup.h

Issue 1943303002: Make it possible to set a getter and a setter at the same time (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 years, 7 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 | « no previous file | src/lookup.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_LOOKUP_H_ 5 #ifndef V8_LOOKUP_H_
6 #define V8_LOOKUP_H_ 6 #define V8_LOOKUP_H_
7 7
8 #include "src/factory.h" 8 #include "src/factory.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 bool IsCacheableTransition() { 222 bool IsCacheableTransition() {
223 DCHECK_EQ(TRANSITION, state_); 223 DCHECK_EQ(TRANSITION, state_);
224 return transition_->IsPropertyCell() || 224 return transition_->IsPropertyCell() ||
225 (!transition_map()->is_dictionary_map() && 225 (!transition_map()->is_dictionary_map() &&
226 transition_map()->GetBackPointer()->IsMap()); 226 transition_map()->GetBackPointer()->IsMap());
227 } 227 }
228 void ApplyTransitionToDataProperty(Handle<JSObject> receiver); 228 void ApplyTransitionToDataProperty(Handle<JSObject> receiver);
229 void ReconfigureDataProperty(Handle<Object> value, 229 void ReconfigureDataProperty(Handle<Object> value,
230 PropertyAttributes attributes); 230 PropertyAttributes attributes);
231 void Delete(); 231 void Delete();
232 void TransitionToAccessorProperty(AccessorComponent component, 232 void TransitionToAccessorProperty(Handle<Object> getter,
233 Handle<Object> accessor, 233 Handle<Object> setter,
234 PropertyAttributes attributes); 234 PropertyAttributes attributes);
235 void TransitionToAccessorPair(Handle<Object> pair, 235 void TransitionToAccessorPair(Handle<Object> pair,
236 PropertyAttributes attributes); 236 PropertyAttributes attributes);
237 PropertyDetails property_details() const { 237 PropertyDetails property_details() const {
238 DCHECK(has_property_); 238 DCHECK(has_property_);
239 return property_details_; 239 return property_details_;
240 } 240 }
241 PropertyAttributes property_attributes() const { 241 PropertyAttributes property_attributes() const {
242 return property_details().attributes(); 242 return property_details().attributes();
243 } 243 }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 const Handle<JSReceiver> initial_holder_; 370 const Handle<JSReceiver> initial_holder_;
371 const uint32_t index_; 371 const uint32_t index_;
372 uint32_t number_; 372 uint32_t number_;
373 }; 373 };
374 374
375 375
376 } // namespace internal 376 } // namespace internal
377 } // namespace v8 377 } // namespace v8
378 378
379 #endif // V8_LOOKUP_H_ 379 #endif // V8_LOOKUP_H_
OLDNEW
« no previous file with comments | « no previous file | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698