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

Side by Side Diff: src/hydrogen.cc

Issue 1028973002: Move this_has_uses from ParseInfo back into CompilationInfo and renumber CompilationInfo flags. (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 | « src/compiler.cc ('k') | src/parser.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 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 5273 matching lines...) Expand 10 before | Expand all | Expand 10 after
5284 context = Add<HLoadNamedField>( 5284 context = Add<HLoadNamedField>(
5285 context, nullptr, 5285 context, nullptr,
5286 HObjectAccess::ForContextSlot(Context::PREVIOUS_INDEX)); 5286 HObjectAccess::ForContextSlot(Context::PREVIOUS_INDEX));
5287 } 5287 }
5288 return context; 5288 return context;
5289 } 5289 }
5290 5290
5291 5291
5292 void HOptimizedGraphBuilder::VisitVariableProxy(VariableProxy* expr) { 5292 void HOptimizedGraphBuilder::VisitVariableProxy(VariableProxy* expr) {
5293 if (expr->is_this()) { 5293 if (expr->is_this()) {
5294 current_info()->parse_info()->set_this_has_uses(true); 5294 current_info()->SetThisHasUses(true);
5295 } 5295 }
5296 5296
5297 DCHECK(!HasStackOverflow()); 5297 DCHECK(!HasStackOverflow());
5298 DCHECK(current_block() != NULL); 5298 DCHECK(current_block() != NULL);
5299 DCHECK(current_block()->HasPredecessor()); 5299 DCHECK(current_block()->HasPredecessor());
5300 Variable* variable = expr->var(); 5300 Variable* variable = expr->var();
5301 switch (variable->location()) { 5301 switch (variable->location()) {
5302 case Variable::UNALLOCATED: { 5302 case Variable::UNALLOCATED: {
5303 if (IsLexicalVariableMode(variable->mode())) { 5303 if (IsLexicalVariableMode(variable->mode())) {
5304 // TODO(rossberg): should this be an DCHECK? 5304 // TODO(rossberg): should this be an DCHECK?
(...skipping 8117 matching lines...) Expand 10 before | Expand all | Expand 10 after
13422 if (ShouldProduceTraceOutput()) { 13422 if (ShouldProduceTraceOutput()) {
13423 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13423 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13424 } 13424 }
13425 13425
13426 #ifdef DEBUG 13426 #ifdef DEBUG
13427 graph_->Verify(false); // No full verify. 13427 graph_->Verify(false); // No full verify.
13428 #endif 13428 #endif
13429 } 13429 }
13430 13430
13431 } } // namespace v8::internal 13431 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698