OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/hydrogen.h" | 5 #include "src/hydrogen.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/v8.h" | 9 #include "src/v8.h" |
10 | 10 |
(...skipping 5248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5259 HOptimizedGraphBuilder::LookupGlobalProperty(Variable* var, LookupIterator* it, | 5259 HOptimizedGraphBuilder::LookupGlobalProperty(Variable* var, LookupIterator* it, |
5260 PropertyAccessType access_type) { | 5260 PropertyAccessType access_type) { |
5261 if (var->is_this() || !current_info()->has_global_object()) { | 5261 if (var->is_this() || !current_info()->has_global_object()) { |
5262 return kUseGeneric; | 5262 return kUseGeneric; |
5263 } | 5263 } |
5264 | 5264 |
5265 switch (it->state()) { | 5265 switch (it->state()) { |
5266 case LookupIterator::ACCESSOR: | 5266 case LookupIterator::ACCESSOR: |
5267 case LookupIterator::ACCESS_CHECK: | 5267 case LookupIterator::ACCESS_CHECK: |
5268 case LookupIterator::INTERCEPTOR: | 5268 case LookupIterator::INTERCEPTOR: |
| 5269 case LookupIterator::INTEGER_INDEXED_EXOTIC: |
5269 case LookupIterator::NOT_FOUND: | 5270 case LookupIterator::NOT_FOUND: |
5270 return kUseGeneric; | 5271 return kUseGeneric; |
5271 case LookupIterator::DATA: | 5272 case LookupIterator::DATA: |
5272 if (access_type == STORE && it->IsReadOnly()) return kUseGeneric; | 5273 if (access_type == STORE && it->IsReadOnly()) return kUseGeneric; |
5273 return kUseCell; | 5274 return kUseCell; |
5274 case LookupIterator::JSPROXY: | 5275 case LookupIterator::JSPROXY: |
5275 case LookupIterator::TRANSITION: | 5276 case LookupIterator::TRANSITION: |
5276 UNREACHABLE(); | 5277 UNREACHABLE(); |
5277 } | 5278 } |
5278 UNREACHABLE(); | 5279 UNREACHABLE(); |
(...skipping 8157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13436 if (ShouldProduceTraceOutput()) { | 13437 if (ShouldProduceTraceOutput()) { |
13437 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13438 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13438 } | 13439 } |
13439 | 13440 |
13440 #ifdef DEBUG | 13441 #ifdef DEBUG |
13441 graph_->Verify(false); // No full verify. | 13442 graph_->Verify(false); // No full verify. |
13442 #endif | 13443 #endif |
13443 } | 13444 } |
13444 | 13445 |
13445 } } // namespace v8::internal | 13446 } } // namespace v8::internal |
OLD | NEW |