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

Side by Side Diff: src/hydrogen.cc

Issue 570293002: Simplify the LookupIterator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « no previous file | src/ic/handler-compiler.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 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "src/v8.h" 9 #include "src/v8.h"
10 10
(...skipping 5289 matching lines...) Expand 10 before | Expand all | Expand 10 after
5300 case LookupIterator::ACCESSOR: 5300 case LookupIterator::ACCESSOR:
5301 case LookupIterator::ACCESS_CHECK: 5301 case LookupIterator::ACCESS_CHECK:
5302 case LookupIterator::INTERCEPTOR: 5302 case LookupIterator::INTERCEPTOR:
5303 case LookupIterator::NOT_FOUND: 5303 case LookupIterator::NOT_FOUND:
5304 return kUseGeneric; 5304 return kUseGeneric;
5305 case LookupIterator::DATA: 5305 case LookupIterator::DATA:
5306 if (access_type == STORE && it->IsReadOnly()) return kUseGeneric; 5306 if (access_type == STORE && it->IsReadOnly()) return kUseGeneric;
5307 return kUseCell; 5307 return kUseCell;
5308 case LookupIterator::JSPROXY: 5308 case LookupIterator::JSPROXY:
5309 case LookupIterator::TRANSITION: 5309 case LookupIterator::TRANSITION:
5310 case LookupIterator::UNKNOWN:
5311 UNREACHABLE(); 5310 UNREACHABLE();
5312 } 5311 }
5313 UNREACHABLE(); 5312 UNREACHABLE();
5314 return kUseGeneric; 5313 return kUseGeneric;
5315 } 5314 }
5316 5315
5317 5316
5318 HValue* HOptimizedGraphBuilder::BuildContextChainWalk(Variable* var) { 5317 HValue* HOptimizedGraphBuilder::BuildContextChainWalk(Variable* var) {
5319 DCHECK(var->IsContextSlot()); 5318 DCHECK(var->IsContextSlot());
5320 HValue* context = environment()->context(); 5319 HValue* context = environment()->context();
(...skipping 7170 matching lines...) Expand 10 before | Expand all | Expand 10 after
12491 if (ShouldProduceTraceOutput()) { 12490 if (ShouldProduceTraceOutput()) {
12492 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 12491 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
12493 } 12492 }
12494 12493
12495 #ifdef DEBUG 12494 #ifdef DEBUG
12496 graph_->Verify(false); // No full verify. 12495 graph_->Verify(false); // No full verify.
12497 #endif 12496 #endif
12498 } 12497 }
12499 12498
12500 } } // namespace v8::internal 12499 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ic/handler-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698