| 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 4502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4513 ++i) { | 4513 ++i) { |
| 4514 environment()->Bind(i, undefined_constant); | 4514 environment()->Bind(i, undefined_constant); |
| 4515 } | 4515 } |
| 4516 | 4516 |
| 4517 // Handle the arguments and arguments shadow variables specially (they do | 4517 // Handle the arguments and arguments shadow variables specially (they do |
| 4518 // not have declarations). | 4518 // not have declarations). |
| 4519 if (scope->arguments() != NULL) { | 4519 if (scope->arguments() != NULL) { |
| 4520 environment()->Bind(scope->arguments(), | 4520 environment()->Bind(scope->arguments(), |
| 4521 graph()->GetArgumentsObject()); | 4521 graph()->GetArgumentsObject()); |
| 4522 } | 4522 } |
| 4523 |
| 4524 int rest_index; |
| 4525 Variable* rest = scope->rest_parameter(&rest_index); |
| 4526 if (rest) { |
| 4527 return Bailout(kRestParameter); |
| 4528 } |
| 4523 } | 4529 } |
| 4524 | 4530 |
| 4525 | 4531 |
| 4526 Type* HOptimizedGraphBuilder::ToType(Handle<Map> map) { | 4532 Type* HOptimizedGraphBuilder::ToType(Handle<Map> map) { |
| 4527 return IC::MapToType<Type>(map, zone()); | 4533 return IC::MapToType<Type>(map, zone()); |
| 4528 } | 4534 } |
| 4529 | 4535 |
| 4530 | 4536 |
| 4531 void HOptimizedGraphBuilder::VisitStatements(ZoneList<Statement*>* statements) { | 4537 void HOptimizedGraphBuilder::VisitStatements(ZoneList<Statement*>* statements) { |
| 4532 for (int i = 0; i < statements->length(); i++) { | 4538 for (int i = 0; i < statements->length(); i++) { |
| (...skipping 8963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13496 if (ShouldProduceTraceOutput()) { | 13502 if (ShouldProduceTraceOutput()) { |
| 13497 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13503 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13498 } | 13504 } |
| 13499 | 13505 |
| 13500 #ifdef DEBUG | 13506 #ifdef DEBUG |
| 13501 graph_->Verify(false); // No full verify. | 13507 graph_->Verify(false); // No full verify. |
| 13502 #endif | 13508 #endif |
| 13503 } | 13509 } |
| 13504 | 13510 |
| 13505 } } // namespace v8::internal | 13511 } } // namespace v8::internal |
| OLD | NEW |