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

Side by Side Diff: src/hydrogen.cc

Issue 8404037: Revert r9805. (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 | test/mjsunit/mjsunit.status » ('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 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 5114 matching lines...) Expand 10 before | Expand all | Expand 10 after
5125 AddInstruction(global); 5125 AddInstruction(global);
5126 PushAndAdd(receiver); 5126 PushAndAdd(receiver);
5127 CHECK_ALIVE(VisitExpressions(expr->arguments())); 5127 CHECK_ALIVE(VisitExpressions(expr->arguments()));
5128 AddInstruction(new(zone()) HCheckFunction(function, expr->target())); 5128 AddInstruction(new(zone()) HCheckFunction(function, expr->target()));
5129 if (TryInline(expr, true)) { // Drop function from environment. 5129 if (TryInline(expr, true)) { // Drop function from environment.
5130 return; 5130 return;
5131 } else { 5131 } else {
5132 call = PreProcessCall(new(zone()) HInvokeFunction(context, 5132 call = PreProcessCall(new(zone()) HInvokeFunction(context,
5133 function, 5133 function,
5134 argument_count)); 5134 argument_count));
5135 call->set_position(expr->position());
5136 AddInstruction(call);
5137 AddSimulate(expr->id());
5138 Drop(1); // The function. 5135 Drop(1); // The function.
5139 return ast_context()->ReturnValue(call);
5140 } 5136 }
5141 5137
5142 } else { 5138 } else {
5143 CHECK_ALIVE(VisitArgument(expr->expression())); 5139 CHECK_ALIVE(VisitArgument(expr->expression()));
5144 HValue* context = environment()->LookupContext(); 5140 HValue* context = environment()->LookupContext();
5145 HGlobalObject* global_object = new(zone()) HGlobalObject(context); 5141 HGlobalObject* global_object = new(zone()) HGlobalObject(context);
5146 HGlobalReceiver* receiver = new(zone()) HGlobalReceiver(global_object); 5142 HGlobalReceiver* receiver = new(zone()) HGlobalReceiver(global_object);
5147 AddInstruction(global_object); 5143 AddInstruction(global_object);
5148 AddInstruction(receiver); 5144 AddInstruction(receiver);
5149 PushAndAdd(new(zone()) HPushArgument(receiver)); 5145 PushAndAdd(new(zone()) HPushArgument(receiver));
(...skipping 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after
7023 } 7019 }
7024 } 7020 }
7025 7021
7026 #ifdef DEBUG 7022 #ifdef DEBUG
7027 if (graph_ != NULL) graph_->Verify(false); // No full verify. 7023 if (graph_ != NULL) graph_->Verify(false); // No full verify.
7028 if (allocator_ != NULL) allocator_->Verify(); 7024 if (allocator_ != NULL) allocator_->Verify();
7029 #endif 7025 #endif
7030 } 7026 }
7031 7027
7032 } } // namespace v8::internal 7028 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698