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

Side by Side Diff: src/lookup.h

Issue 996133002: correctly invalidate global cells (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: cleanup Created 5 years, 9 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') | 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 30 matching lines...) Expand all
41 // Set state_ to BEFORE_PROPERTY to ensure that the next lookup will be a 41 // Set state_ to BEFORE_PROPERTY to ensure that the next lookup will be a
42 // PROPERTY lookup. 42 // PROPERTY lookup.
43 BEFORE_PROPERTY = INTERCEPTOR 43 BEFORE_PROPERTY = INTERCEPTOR
44 }; 44 };
45 45
46 LookupIterator(Handle<Object> receiver, Handle<Name> name, 46 LookupIterator(Handle<Object> receiver, Handle<Name> name,
47 Configuration configuration = PROTOTYPE_CHAIN) 47 Configuration configuration = PROTOTYPE_CHAIN)
48 : configuration_(ComputeConfiguration(configuration, name)), 48 : configuration_(ComputeConfiguration(configuration, name)),
49 state_(NOT_FOUND), 49 state_(NOT_FOUND),
50 exotic_index_state_(ExoticIndexState::kUninitialized), 50 exotic_index_state_(ExoticIndexState::kUninitialized),
51 property_details_(NONE, v8::internal::DATA, 0), 51 property_details_(PropertyDetails::Empty()),
52 isolate_(name->GetIsolate()), 52 isolate_(name->GetIsolate()),
53 name_(name), 53 name_(name),
54 receiver_(receiver), 54 receiver_(receiver),
55 number_(DescriptorArray::kNotFound) { 55 number_(DescriptorArray::kNotFound) {
56 holder_ = GetRoot(); 56 holder_ = GetRoot();
57 holder_map_ = handle(holder_->map(), isolate_); 57 holder_map_ = handle(holder_->map(), isolate_);
58 Next(); 58 Next();
59 } 59 }
60 60
61 LookupIterator(Handle<Object> receiver, Handle<Name> name, 61 LookupIterator(Handle<Object> receiver, Handle<Name> name,
62 Handle<JSReceiver> holder, 62 Handle<JSReceiver> holder,
63 Configuration configuration = PROTOTYPE_CHAIN) 63 Configuration configuration = PROTOTYPE_CHAIN)
64 : configuration_(ComputeConfiguration(configuration, name)), 64 : configuration_(ComputeConfiguration(configuration, name)),
65 state_(NOT_FOUND), 65 state_(NOT_FOUND),
66 exotic_index_state_(ExoticIndexState::kUninitialized), 66 exotic_index_state_(ExoticIndexState::kUninitialized),
67 property_details_(NONE, v8::internal::DATA, 0), 67 property_details_(PropertyDetails::Empty()),
68 isolate_(name->GetIsolate()), 68 isolate_(name->GetIsolate()),
69 name_(name), 69 name_(name),
70 holder_map_(holder->map(), isolate_), 70 holder_map_(holder->map(), isolate_),
71 receiver_(receiver), 71 receiver_(receiver),
72 holder_(holder), 72 holder_(holder),
73 number_(DescriptorArray::kNotFound) { 73 number_(DescriptorArray::kNotFound) {
74 Next(); 74 Next();
75 } 75 }
76 76
77 Isolate* isolate() const { return isolate_; } 77 Isolate* isolate() const { return isolate_; }
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 Handle<Object> receiver_; 200 Handle<Object> receiver_;
201 Handle<JSReceiver> holder_; 201 Handle<JSReceiver> holder_;
202 202
203 int number_; 203 int number_;
204 }; 204 };
205 205
206 206
207 } } // namespace v8::internal 207 } } // namespace v8::internal
208 208
209 #endif // V8_LOOKUP_H_ 209 #endif // V8_LOOKUP_H_
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/lookup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698