OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 5407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5418 Representation::Tagged()); | 5418 Representation::Tagged()); |
5419 AddInstruction(context); | 5419 AddInstruction(context); |
5420 inner_env->BindContext(context); | 5420 inner_env->BindContext(context); |
5421 #endif | 5421 #endif |
5422 AddSimulate(return_id); | 5422 AddSimulate(return_id); |
5423 current_block()->UpdateEnvironment(inner_env); | 5423 current_block()->UpdateEnvironment(inner_env); |
5424 AddInstruction(new(zone()) HEnterInlined(target, | 5424 AddInstruction(new(zone()) HEnterInlined(target, |
5425 arguments->length(), | 5425 arguments->length(), |
5426 function, | 5426 function, |
5427 call_kind, | 5427 call_kind, |
5428 function_state()->is_construct())); | 5428 function_state()->is_construct(), |
| 5429 function->scope()->arguments())); |
5429 // If the function uses arguments object create and bind one. | 5430 // If the function uses arguments object create and bind one. |
5430 if (function->scope()->arguments() != NULL) { | 5431 if (function->scope()->arguments() != NULL) { |
5431 ASSERT(function->scope()->arguments()->IsStackAllocated()); | 5432 ASSERT(function->scope()->arguments()->IsStackAllocated()); |
5432 environment()->Bind(function->scope()->arguments(), | 5433 environment()->Bind(function->scope()->arguments(), |
5433 graph()->GetArgumentsObject()); | 5434 graph()->GetArgumentsObject()); |
5434 } | 5435 } |
5435 VisitDeclarations(target_info.scope()->declarations()); | 5436 VisitDeclarations(target_info.scope()->declarations()); |
5436 VisitStatements(function->body()); | 5437 VisitStatements(function->body()); |
5437 if (HasStackOverflow()) { | 5438 if (HasStackOverflow()) { |
5438 // Bail out if the inline function did, as we cannot residualize a call | 5439 // Bail out if the inline function did, as we cannot residualize a call |
(...skipping 2770 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8209 } | 8210 } |
8210 } | 8211 } |
8211 | 8212 |
8212 #ifdef DEBUG | 8213 #ifdef DEBUG |
8213 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 8214 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
8214 if (allocator_ != NULL) allocator_->Verify(); | 8215 if (allocator_ != NULL) allocator_->Verify(); |
8215 #endif | 8216 #endif |
8216 } | 8217 } |
8217 | 8218 |
8218 } } // namespace v8::internal | 8219 } } // namespace v8::internal |
OLD | NEW |