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

Side by Side Diff: src/hydrogen.cc

Issue 8391042: Fix bug in lazy deoptimization after HInvokeFunction. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 5108 matching lines...) Expand 10 before | Expand all | Expand 10 after
5119 AddInstruction(global); 5119 AddInstruction(global);
5120 PushAndAdd(receiver); 5120 PushAndAdd(receiver);
5121 CHECK_ALIVE(VisitExpressions(expr->arguments())); 5121 CHECK_ALIVE(VisitExpressions(expr->arguments()));
5122 AddInstruction(new(zone()) HCheckFunction(function, expr->target())); 5122 AddInstruction(new(zone()) HCheckFunction(function, expr->target()));
5123 if (TryInline(expr, true)) { // Drop function from environment. 5123 if (TryInline(expr, true)) { // Drop function from environment.
5124 return; 5124 return;
5125 } else { 5125 } else {
5126 call = PreProcessCall(new(zone()) HInvokeFunction(context, 5126 call = PreProcessCall(new(zone()) HInvokeFunction(context,
5127 function, 5127 function,
5128 argument_count)); 5128 argument_count));
5129 call->set_position(expr->position());
5130 AddInstruction(call);
5131 AddSimulate(expr->id());
5129 Drop(1); // The function. 5132 Drop(1); // The function.
5133 return ast_context()->ReturnValue(call);
5130 } 5134 }
5131 5135
5132 } else { 5136 } else {
5133 CHECK_ALIVE(VisitArgument(expr->expression())); 5137 CHECK_ALIVE(VisitArgument(expr->expression()));
5134 HValue* context = environment()->LookupContext(); 5138 HValue* context = environment()->LookupContext();
5135 HGlobalObject* global_object = new(zone()) HGlobalObject(context); 5139 HGlobalObject* global_object = new(zone()) HGlobalObject(context);
5136 HGlobalReceiver* receiver = new(zone()) HGlobalReceiver(global_object); 5140 HGlobalReceiver* receiver = new(zone()) HGlobalReceiver(global_object);
5137 AddInstruction(global_object); 5141 AddInstruction(global_object);
5138 AddInstruction(receiver); 5142 AddInstruction(receiver);
5139 PushAndAdd(new(zone()) HPushArgument(receiver)); 5143 PushAndAdd(new(zone()) HPushArgument(receiver));
(...skipping 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after
7013 } 7017 }
7014 } 7018 }
7015 7019
7016 #ifdef DEBUG 7020 #ifdef DEBUG
7017 if (graph_ != NULL) graph_->Verify(false); // No full verify. 7021 if (graph_ != NULL) graph_->Verify(false); // No full verify.
7018 if (allocator_ != NULL) allocator_->Verify(); 7022 if (allocator_ != NULL) allocator_->Verify();
7019 #endif 7023 #endif
7020 } 7024 }
7021 7025
7022 } } // namespace v8::internal 7026 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698