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

Side by Side Diff: src/hydrogen.cc

Issue 992913002: handle the special snowflakes that are Integer Indexed Exotic objects (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | « no previous file | src/ic/handler-compiler.cc » ('j') | src/lookup.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/ic/handler-compiler.cc » ('j') | src/lookup.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698