Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/hydrogen.cc

Issue 10020040: Merged r11194, r11198, r11201, r11214, r11225, r11233, r11240 into 3.9 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.9
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/elements.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/elements.cc ('k') | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698