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

Side by Side Diff: src/lookup.h

Issue 466283003: Use LookupIterator for CompileLoadInterceptor and delete Object::Lookup (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add ports Created 6 years, 4 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
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 30 matching lines...) Expand all
41 enum PropertyKind { 41 enum PropertyKind {
42 DATA, 42 DATA,
43 ACCESSOR 43 ACCESSOR
44 }; 44 };
45 45
46 enum PropertyEncoding { 46 enum PropertyEncoding {
47 DICTIONARY, 47 DICTIONARY,
48 DESCRIPTOR 48 DESCRIPTOR
49 }; 49 };
50 50
51 explicit LookupIterator(const LookupIterator* other)
52 : configuration_(other->configuration_),
53 state_(other->state_),
54 property_kind_(other->property_kind_),
55 property_encoding_(other->property_encoding_),
56 property_details_(other->property_details_),
57 isolate_(other->isolate_),
58 name_(other->name_),
59 holder_map_(other->holder_map_),
60 maybe_receiver_(other->maybe_receiver_),
61 maybe_holder_(other->maybe_holder_) {}
62
51 LookupIterator(Handle<Object> receiver, Handle<Name> name, 63 LookupIterator(Handle<Object> receiver, Handle<Name> name,
52 Configuration configuration = CHECK_DERIVED) 64 Configuration configuration = CHECK_DERIVED)
53 : configuration_(ComputeConfiguration(configuration, name)), 65 : configuration_(ComputeConfiguration(configuration, name)),
54 state_(NOT_FOUND), 66 state_(NOT_FOUND),
55 property_kind_(DATA), 67 property_kind_(DATA),
56 property_encoding_(DESCRIPTOR), 68 property_encoding_(DESCRIPTOR),
57 property_details_(NONE, NONEXISTENT, Representation::None()), 69 property_details_(NONE, NONEXISTENT, Representation::None()),
58 isolate_(name->GetIsolate()), 70 isolate_(name->GetIsolate()),
59 name_(name), 71 name_(name),
60 maybe_receiver_(receiver), 72 maybe_receiver_(receiver),
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 MaybeHandle<Object> maybe_receiver_; 217 MaybeHandle<Object> maybe_receiver_;
206 MaybeHandle<JSReceiver> maybe_holder_; 218 MaybeHandle<JSReceiver> maybe_holder_;
207 219
208 int number_; 220 int number_;
209 }; 221 };
210 222
211 223
212 } } // namespace v8::internal 224 } } // namespace v8::internal
213 225
214 #endif // V8_LOOKUP_H_ 226 #endif // V8_LOOKUP_H_
OLDNEW
« src/ia32/stub-cache-ia32.cc ('K') | « src/ic.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698