| 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 4507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4518 ++i) { | 4518 ++i) { |
| 4519 environment()->Bind(i, undefined_constant); | 4519 environment()->Bind(i, undefined_constant); |
| 4520 } | 4520 } |
| 4521 | 4521 |
| 4522 // Handle the arguments and arguments shadow variables specially (they do | 4522 // Handle the arguments and arguments shadow variables specially (they do |
| 4523 // not have declarations). | 4523 // not have declarations). |
| 4524 if (scope->arguments() != NULL) { | 4524 if (scope->arguments() != NULL) { |
| 4525 environment()->Bind(scope->arguments(), | 4525 environment()->Bind(scope->arguments(), |
| 4526 graph()->GetArgumentsObject()); | 4526 graph()->GetArgumentsObject()); |
| 4527 } | 4527 } |
| 4528 |
| 4529 int rest_index; |
| 4530 Variable* rest = scope->rest_parameter(&rest_index); |
| 4531 if (rest) { |
| 4532 return Bailout(kRestParameter); |
| 4533 } |
| 4528 } | 4534 } |
| 4529 | 4535 |
| 4530 | 4536 |
| 4531 Type* HOptimizedGraphBuilder::ToType(Handle<Map> map) { | 4537 Type* HOptimizedGraphBuilder::ToType(Handle<Map> map) { |
| 4532 return IC::MapToType<Type>(map, zone()); | 4538 return IC::MapToType<Type>(map, zone()); |
| 4533 } | 4539 } |
| 4534 | 4540 |
| 4535 | 4541 |
| 4536 void HOptimizedGraphBuilder::VisitStatements(ZoneList<Statement*>* statements) { | 4542 void HOptimizedGraphBuilder::VisitStatements(ZoneList<Statement*>* statements) { |
| 4537 for (int i = 0; i < statements->length(); i++) { | 4543 for (int i = 0; i < statements->length(); i++) { |
| (...skipping 8970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13508 if (ShouldProduceTraceOutput()) { | 13514 if (ShouldProduceTraceOutput()) { |
| 13509 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13515 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13510 } | 13516 } |
| 13511 | 13517 |
| 13512 #ifdef DEBUG | 13518 #ifdef DEBUG |
| 13513 graph_->Verify(false); // No full verify. | 13519 graph_->Verify(false); // No full verify. |
| 13514 #endif | 13520 #endif |
| 13515 } | 13521 } |
| 13516 | 13522 |
| 13517 } } // namespace v8::internal | 13523 } } // namespace v8::internal |
| OLD | NEW |