| 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 5361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5372 Representation::Tagged()); | 5372 Representation::Tagged()); |
| 5373 AddInstruction(context); | 5373 AddInstruction(context); |
| 5374 inner_env->BindContext(context); | 5374 inner_env->BindContext(context); |
| 5375 #endif | 5375 #endif |
| 5376 AddSimulate(return_id); | 5376 AddSimulate(return_id); |
| 5377 current_block()->UpdateEnvironment(inner_env); | 5377 current_block()->UpdateEnvironment(inner_env); |
| 5378 AddInstruction(new(zone()) HEnterInlined(target, | 5378 AddInstruction(new(zone()) HEnterInlined(target, |
| 5379 arguments->length(), | 5379 arguments->length(), |
| 5380 function, | 5380 function, |
| 5381 call_kind, | 5381 call_kind, |
| 5382 function_state()->is_construct())); | 5382 function_state()->is_construct(), |
| 5383 function->scope()->arguments())); |
| 5383 // If the function uses arguments object create and bind one. | 5384 // If the function uses arguments object create and bind one. |
| 5384 if (function->scope()->arguments() != NULL) { | 5385 if (function->scope()->arguments() != NULL) { |
| 5385 ASSERT(function->scope()->arguments()->IsStackAllocated()); | 5386 ASSERT(function->scope()->arguments()->IsStackAllocated()); |
| 5386 environment()->Bind(function->scope()->arguments(), | 5387 environment()->Bind(function->scope()->arguments(), |
| 5387 graph()->GetArgumentsObject()); | 5388 graph()->GetArgumentsObject()); |
| 5388 } | 5389 } |
| 5389 VisitDeclarations(target_info.scope()->declarations()); | 5390 VisitDeclarations(target_info.scope()->declarations()); |
| 5390 VisitStatements(function->body()); | 5391 VisitStatements(function->body()); |
| 5391 if (HasStackOverflow()) { | 5392 if (HasStackOverflow()) { |
| 5392 // Bail out if the inline function did, as we cannot residualize a call | 5393 // Bail out if the inline function did, as we cannot residualize a call |
| (...skipping 2796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8189 } | 8190 } |
| 8190 } | 8191 } |
| 8191 | 8192 |
| 8192 #ifdef DEBUG | 8193 #ifdef DEBUG |
| 8193 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 8194 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
| 8194 if (allocator_ != NULL) allocator_->Verify(); | 8195 if (allocator_ != NULL) allocator_->Verify(); |
| 8195 #endif | 8196 #endif |
| 8196 } | 8197 } |
| 8197 | 8198 |
| 8198 } } // namespace v8::internal | 8199 } } // namespace v8::internal |
| OLD | NEW |