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

Side by Side Diff: src/lookup.h

Issue 492433005: Get rid of the NONEXISTENT PropertyType (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix lookupresult 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
« no previous file with comments | « src/ic.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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 holder_map_(other->holder_map_), 62 holder_map_(other->holder_map_),
63 maybe_receiver_(other->maybe_receiver_), 63 maybe_receiver_(other->maybe_receiver_),
64 maybe_holder_(other->maybe_holder_) {} 64 maybe_holder_(other->maybe_holder_) {}
65 65
66 LookupIterator(Handle<Object> receiver, Handle<Name> name, 66 LookupIterator(Handle<Object> receiver, Handle<Name> name,
67 Configuration configuration = CHECK_DERIVED) 67 Configuration configuration = CHECK_DERIVED)
68 : configuration_(ComputeConfiguration(configuration, name)), 68 : configuration_(ComputeConfiguration(configuration, name)),
69 state_(NOT_FOUND), 69 state_(NOT_FOUND),
70 property_kind_(DATA), 70 property_kind_(DATA),
71 property_encoding_(DESCRIPTOR), 71 property_encoding_(DESCRIPTOR),
72 property_details_(NONE, NONEXISTENT, Representation::None()), 72 property_details_(NONE, NORMAL, Representation::None()),
73 isolate_(name->GetIsolate()), 73 isolate_(name->GetIsolate()),
74 name_(name), 74 name_(name),
75 maybe_receiver_(receiver), 75 maybe_receiver_(receiver),
76 number_(DescriptorArray::kNotFound) { 76 number_(DescriptorArray::kNotFound) {
77 Handle<JSReceiver> root = GetRoot(); 77 Handle<JSReceiver> root = GetRoot();
78 holder_map_ = handle(root->map()); 78 holder_map_ = handle(root->map());
79 maybe_holder_ = root; 79 maybe_holder_ = root;
80 Next(); 80 Next();
81 } 81 }
82 82
83 LookupIterator(Handle<Object> receiver, Handle<Name> name, 83 LookupIterator(Handle<Object> receiver, Handle<Name> name,
84 Handle<JSReceiver> holder, 84 Handle<JSReceiver> holder,
85 Configuration configuration = CHECK_DERIVED) 85 Configuration configuration = CHECK_DERIVED)
86 : configuration_(ComputeConfiguration(configuration, name)), 86 : configuration_(ComputeConfiguration(configuration, name)),
87 state_(NOT_FOUND), 87 state_(NOT_FOUND),
88 property_kind_(DATA), 88 property_kind_(DATA),
89 property_encoding_(DESCRIPTOR), 89 property_encoding_(DESCRIPTOR),
90 property_details_(NONE, NONEXISTENT, Representation::None()), 90 property_details_(NONE, NORMAL, Representation::None()),
91 isolate_(name->GetIsolate()), 91 isolate_(name->GetIsolate()),
92 name_(name), 92 name_(name),
93 holder_map_(holder->map()), 93 holder_map_(holder->map()),
94 maybe_receiver_(receiver), 94 maybe_receiver_(receiver),
95 maybe_holder_(holder), 95 maybe_holder_(holder),
96 number_(DescriptorArray::kNotFound) { 96 number_(DescriptorArray::kNotFound) {
97 Next(); 97 Next();
98 } 98 }
99 99
100 Isolate* isolate() const { return isolate_; } 100 Isolate* isolate() const { return isolate_; }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 MaybeHandle<Object> maybe_receiver_; 229 MaybeHandle<Object> maybe_receiver_;
230 MaybeHandle<JSReceiver> maybe_holder_; 230 MaybeHandle<JSReceiver> maybe_holder_;
231 231
232 int number_; 232 int number_;
233 }; 233 };
234 234
235 235
236 } } // namespace v8::internal 236 } } // namespace v8::internal
237 237
238 #endif // V8_LOOKUP_H_ 238 #endif // V8_LOOKUP_H_
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698