| 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 4495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4506 if (scope->arguments() != NULL) { | 4506 if (scope->arguments() != NULL) { |
| 4507 environment()->Bind(scope->arguments(), | 4507 environment()->Bind(scope->arguments(), |
| 4508 graph()->GetArgumentsObject()); | 4508 graph()->GetArgumentsObject()); |
| 4509 } | 4509 } |
| 4510 | 4510 |
| 4511 int rest_index; | 4511 int rest_index; |
| 4512 Variable* rest = scope->rest_parameter(&rest_index); | 4512 Variable* rest = scope->rest_parameter(&rest_index); |
| 4513 if (rest) { | 4513 if (rest) { |
| 4514 return Bailout(kRestParameter); | 4514 return Bailout(kRestParameter); |
| 4515 } | 4515 } |
| 4516 |
| 4517 if (scope->this_function_var() != nullptr || |
| 4518 scope->new_target_var() != nullptr) { |
| 4519 return Bailout(kSuperReference); |
| 4520 } |
| 4516 } | 4521 } |
| 4517 | 4522 |
| 4518 | 4523 |
| 4519 void HOptimizedGraphBuilder::VisitStatements(ZoneList<Statement*>* statements) { | 4524 void HOptimizedGraphBuilder::VisitStatements(ZoneList<Statement*>* statements) { |
| 4520 for (int i = 0; i < statements->length(); i++) { | 4525 for (int i = 0; i < statements->length(); i++) { |
| 4521 Statement* stmt = statements->at(i); | 4526 Statement* stmt = statements->at(i); |
| 4522 CHECK_ALIVE(Visit(stmt)); | 4527 CHECK_ALIVE(Visit(stmt)); |
| 4523 if (stmt->IsJump()) break; | 4528 if (stmt->IsJump()) break; |
| 4524 } | 4529 } |
| 4525 } | 4530 } |
| (...skipping 8648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13174 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13179 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13175 } | 13180 } |
| 13176 | 13181 |
| 13177 #ifdef DEBUG | 13182 #ifdef DEBUG |
| 13178 graph_->Verify(false); // No full verify. | 13183 graph_->Verify(false); // No full verify. |
| 13179 #endif | 13184 #endif |
| 13180 } | 13185 } |
| 13181 | 13186 |
| 13182 } // namespace internal | 13187 } // namespace internal |
| 13183 } // namespace v8 | 13188 } // namespace v8 |
| OLD | NEW |