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

Side by Side Diff: src/hydrogen-instructions.cc

Issue 309763003: Fix HPushArguments instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/hydrogen-instructions.h ('k') | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "double.h" 7 #include "double.h"
8 #include "factory.h" 8 #include "factory.h"
9 #include "hydrogen-infer-representation.h" 9 #include "hydrogen-infer-representation.h"
10 #include "property-details-inl.h" 10 #include "property-details-inl.h"
(...skipping 2416 matching lines...) Expand 10 before | Expand all | Expand 10 after
2427 ASSERT(operation_ == kMathMin); 2427 ASSERT(operation_ == kMathMin);
2428 res->CombinedMin(b); 2428 res->CombinedMin(b);
2429 } 2429 }
2430 return res; 2430 return res;
2431 } else { 2431 } else {
2432 return HValue::InferRange(zone); 2432 return HValue::InferRange(zone);
2433 } 2433 }
2434 } 2434 }
2435 2435
2436 2436
2437 void HPushArguments::AddInput(HValue* value) {
2438 inputs_.Add(NULL, value->block()->zone());
2439 SetOperandAt(OperandCount() - 1, value);
2440 }
2441
2442
2437 void HPhi::PrintTo(StringStream* stream) { 2443 void HPhi::PrintTo(StringStream* stream) {
2438 stream->Add("["); 2444 stream->Add("[");
2439 for (int i = 0; i < OperandCount(); ++i) { 2445 for (int i = 0; i < OperandCount(); ++i) {
2440 HValue* value = OperandAt(i); 2446 HValue* value = OperandAt(i);
2441 stream->Add(" "); 2447 stream->Add(" ");
2442 value->PrintNameTo(stream); 2448 value->PrintNameTo(stream);
2443 stream->Add(" "); 2449 stream->Add(" ");
2444 } 2450 }
2445 stream->Add(" uses:%d_%ds_%di_%dd_%dt", 2451 stream->Add(" uses:%d_%ds_%di_%dd_%dt",
2446 UseCount(), 2452 UseCount(),
(...skipping 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after
4747 break; 4753 break;
4748 case kExternalMemory: 4754 case kExternalMemory:
4749 stream->Add("[external-memory]"); 4755 stream->Add("[external-memory]");
4750 break; 4756 break;
4751 } 4757 }
4752 4758
4753 stream->Add("@%d", offset()); 4759 stream->Add("@%d", offset());
4754 } 4760 }
4755 4761
4756 } } // namespace v8::internal 4762 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698