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

Side by Side Diff: src/lookup.h

Issue 942963004: Remove internal use of v8::AccessType, always pass v8::ACCESS_HAS instead. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove the distinction between named/indexed access checks, always pass "undefined" as "name" Created 5 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
« no previous file with comments | « src/log.cc ('k') | 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 template <class T> 93 template <class T>
94 Handle<T> GetHolder() const { 94 Handle<T> GetHolder() const {
95 DCHECK(IsFound()); 95 DCHECK(IsFound());
96 return Handle<T>::cast(holder_); 96 return Handle<T>::cast(holder_);
97 } 97 }
98 Handle<JSReceiver> GetRoot() const; 98 Handle<JSReceiver> GetRoot() const;
99 bool HolderIsReceiverOrHiddenPrototype() const; 99 bool HolderIsReceiverOrHiddenPrototype() const;
100 100
101 /* ACCESS_CHECK */ 101 /* ACCESS_CHECK */
102 bool HasAccess(v8::AccessType access_type) const; 102 bool HasAccess() const;
103 103
104 /* PROPERTY */ 104 /* PROPERTY */
105 void PrepareForDataProperty(Handle<Object> value); 105 void PrepareForDataProperty(Handle<Object> value);
106 void PrepareTransitionToDataProperty(Handle<Object> value, 106 void PrepareTransitionToDataProperty(Handle<Object> value,
107 PropertyAttributes attributes, 107 PropertyAttributes attributes,
108 Object::StoreFromKeyed store_mode); 108 Object::StoreFromKeyed store_mode);
109 bool IsCacheableTransition() { 109 bool IsCacheableTransition() {
110 if (state_ != TRANSITION) return false; 110 if (state_ != TRANSITION) return false;
111 return transition_->IsPropertyCell() || 111 return transition_->IsPropertyCell() ||
112 transition_map()->GetBackPointer()->IsMap(); 112 transition_map()->GetBackPointer()->IsMap();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 Handle<Object> receiver_; 198 Handle<Object> receiver_;
199 Handle<JSReceiver> holder_; 199 Handle<JSReceiver> holder_;
200 200
201 int number_; 201 int number_;
202 }; 202 };
203 203
204 204
205 } } // namespace v8::internal 205 } } // namespace v8::internal
206 206
207 #endif // V8_LOOKUP_H_ 207 #endif // V8_LOOKUP_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698