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

Side by Side Diff: src/lookup.h

Issue 1148583002: Simplify GetProperty helpers to ease element support (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « src/ic/ic.cc ('k') | src/lookup.cc » ('j') | src/lookup.cc » ('J')
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 bool IsReadOnly() const { return property_details().IsReadOnly(); } 175 bool IsReadOnly() const { return property_details().IsReadOnly(); }
176 Representation representation() const { 176 Representation representation() const {
177 return property_details().representation(); 177 return property_details().representation();
178 } 178 }
179 FieldIndex GetFieldIndex() const; 179 FieldIndex GetFieldIndex() const;
180 Handle<HeapType> GetFieldType() const; 180 Handle<HeapType> GetFieldType() const;
181 int GetAccessorIndex() const; 181 int GetAccessorIndex() const;
182 int GetConstantIndex() const; 182 int GetConstantIndex() const;
183 Handle<PropertyCell> GetPropertyCell() const; 183 Handle<PropertyCell> GetPropertyCell() const;
184 Handle<Object> GetAccessors() const; 184 Handle<Object> GetAccessors() const;
185 Handle<InterceptorInfo> GetInterceptor() const;
185 Handle<Object> GetDataValue() const; 186 Handle<Object> GetDataValue() const;
186 // Usually returns the value that was passed in, but may perform 187 // Usually returns the value that was passed in, but may perform
187 // non-observable modifications on it, such as internalize strings. 188 // non-observable modifications on it, such as internalize strings.
188 void WriteDataValue(Handle<Object> value); 189 void WriteDataValue(Handle<Object> value);
189 void InternalizeName(); 190 void InternalizeName();
190 191
191 private: 192 private:
192 enum class InterceptorState { 193 enum class InterceptorState {
193 kUninitialized, 194 kUninitialized,
194 kSkipNonMasking, 195 kSkipNonMasking,
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 Handle<JSReceiver> holder_; 256 Handle<JSReceiver> holder_;
256 Handle<Map> holder_map_; 257 Handle<Map> holder_map_;
257 const Handle<JSReceiver> initial_holder_; 258 const Handle<JSReceiver> initial_holder_;
258 uint32_t number_; 259 uint32_t number_;
259 }; 260 };
260 261
261 262
262 } } // namespace v8::internal 263 } } // namespace v8::internal
263 264
264 #endif // V8_LOOKUP_H_ 265 #endif // V8_LOOKUP_H_
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/lookup.cc » ('j') | src/lookup.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698