| 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 5357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5368 Representation::Tagged()); | 5368 Representation::Tagged()); |
| 5369 AddInstruction(context); | 5369 AddInstruction(context); |
| 5370 inner_env->BindContext(context); | 5370 inner_env->BindContext(context); |
| 5371 #endif | 5371 #endif |
| 5372 AddSimulate(return_id); | 5372 AddSimulate(return_id); |
| 5373 current_block()->UpdateEnvironment(inner_env); | 5373 current_block()->UpdateEnvironment(inner_env); |
| 5374 AddInstruction(new(zone()) HEnterInlined(target, | 5374 AddInstruction(new(zone()) HEnterInlined(target, |
| 5375 arguments->length(), | 5375 arguments->length(), |
| 5376 function, | 5376 function, |
| 5377 call_kind, | 5377 call_kind, |
| 5378 function_state()->is_construct())); | 5378 function_state()->is_construct(), |
| 5379 function->scope()->arguments())); |
| 5379 // If the function uses arguments object create and bind one. | 5380 // If the function uses arguments object create and bind one. |
| 5380 if (function->scope()->arguments() != NULL) { | 5381 if (function->scope()->arguments() != NULL) { |
| 5381 ASSERT(function->scope()->arguments()->IsStackAllocated()); | 5382 ASSERT(function->scope()->arguments()->IsStackAllocated()); |
| 5382 environment()->Bind(function->scope()->arguments(), | 5383 environment()->Bind(function->scope()->arguments(), |
| 5383 graph()->GetArgumentsObject()); | 5384 graph()->GetArgumentsObject()); |
| 5384 } | 5385 } |
| 5385 VisitDeclarations(target_info.scope()->declarations()); | 5386 VisitDeclarations(target_info.scope()->declarations()); |
| 5386 VisitStatements(function->body()); | 5387 VisitStatements(function->body()); |
| 5387 if (HasStackOverflow()) { | 5388 if (HasStackOverflow()) { |
| 5388 // Bail out if the inline function did, as we cannot residualize a call | 5389 // Bail out if the inline function did, as we cannot residualize a call |
| (...skipping 2772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8161 } | 8162 } |
| 8162 } | 8163 } |
| 8163 | 8164 |
| 8164 #ifdef DEBUG | 8165 #ifdef DEBUG |
| 8165 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 8166 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
| 8166 if (allocator_ != NULL) allocator_->Verify(); | 8167 if (allocator_ != NULL) allocator_->Verify(); |
| 8167 #endif | 8168 #endif |
| 8168 } | 8169 } |
| 8169 | 8170 |
| 8170 } } // namespace v8::internal | 8171 } } // namespace v8::internal |
| OLD | NEW |