| 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 5273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |