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

Side by Side Diff: src/lookup.cc

Issue 1980483003: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Igors comments. Created 4 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/lookup.h ('k') | src/messages.h » ('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 #include "src/lookup.h" 5 #include "src/lookup.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/deoptimizer.h" 8 #include "src/deoptimizer.h"
9 #include "src/elements.h" 9 #include "src/elements.h"
10 #include "src/field-type.h" 10 #include "src/field-type.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 // Setting the Symbol.species property of any Array constructor invalidates 184 // Setting the Symbol.species property of any Array constructor invalidates
185 // the species protector 185 // the species protector
186 if (isolate_->IsInAnyContext(*holder_, Context::ARRAY_FUNCTION_INDEX)) { 186 if (isolate_->IsInAnyContext(*holder_, Context::ARRAY_FUNCTION_INDEX)) {
187 isolate_->CountUsage( 187 isolate_->CountUsage(
188 v8::Isolate::UseCounterFeature::kArraySpeciesModified); 188 v8::Isolate::UseCounterFeature::kArraySpeciesModified);
189 isolate_->InvalidateArraySpeciesProtector(); 189 isolate_->InvalidateArraySpeciesProtector();
190 } 190 }
191 } else if (*name_ == heap()->is_concat_spreadable_symbol()) { 191 } else if (*name_ == heap()->is_concat_spreadable_symbol()) {
192 if (!isolate_->IsIsConcatSpreadableLookupChainIntact()) return; 192 if (!isolate_->IsIsConcatSpreadableLookupChainIntact()) return;
193 isolate_->InvalidateIsConcatSpreadableProtector(); 193 isolate_->InvalidateIsConcatSpreadableProtector();
194 } else if (*name_ == heap()->has_instance_symbol()) {
195 if (!isolate_->IsHasInstanceLookupChainIntact()) return;
196 isolate_->InvalidateHasInstanceProtector();
194 } 197 }
195 } 198 }
196 199
197 void LookupIterator::PrepareForDataProperty(Handle<Object> value) { 200 void LookupIterator::PrepareForDataProperty(Handle<Object> value) {
198 DCHECK(state_ == DATA || state_ == ACCESSOR); 201 DCHECK(state_ == DATA || state_ == ACCESSOR);
199 DCHECK(HolderIsReceiverOrHiddenPrototype()); 202 DCHECK(HolderIsReceiverOrHiddenPrototype());
200 203
201 Handle<JSObject> holder = GetHolder<JSObject>(); 204 Handle<JSObject> holder = GetHolder<JSObject>();
202 205
203 if (IsElement()) { 206 if (IsElement()) {
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 case v8::internal::kAccessor: 753 case v8::internal::kAccessor:
751 return ACCESSOR; 754 return ACCESSOR;
752 } 755 }
753 756
754 UNREACHABLE(); 757 UNREACHABLE();
755 return state_; 758 return state_;
756 } 759 }
757 760
758 } // namespace internal 761 } // namespace internal
759 } // namespace v8 762 } // namespace v8
OLDNEW
« no previous file with comments | « src/lookup.h ('k') | src/messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698