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

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

Issue 12391057: Better hydrogen printing for the allocate instruction (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 // 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 2639 matching lines...) Expand 10 before | Expand all | Expand 10 after
2650 HType HAllocateObject::CalculateInferredType() { 2650 HType HAllocateObject::CalculateInferredType() {
2651 return HType::JSObject(); 2651 return HType::JSObject();
2652 } 2652 }
2653 2653
2654 2654
2655 HType HAllocate::CalculateInferredType() { 2655 HType HAllocate::CalculateInferredType() {
2656 return type_; 2656 return type_;
2657 } 2657 }
2658 2658
2659 2659
2660 void HAllocate::PrintDataTo(StringStream* stream) {
2661 size()->PrintNameTo(stream);
2662 }
2663
2664
2660 HType HFastLiteral::CalculateInferredType() { 2665 HType HFastLiteral::CalculateInferredType() {
2661 // TODO(mstarzinger): Be smarter, could also be JSArray here. 2666 // TODO(mstarzinger): Be smarter, could also be JSArray here.
2662 return HType::JSObject(); 2667 return HType::JSObject();
2663 } 2668 }
2664 2669
2665 2670
2666 HType HArrayLiteral::CalculateInferredType() { 2671 HType HArrayLiteral::CalculateInferredType() {
2667 return HType::JSArray(); 2672 return HType::JSArray();
2668 } 2673 }
2669 2674
(...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
3263 3268
3264 3269
3265 void HCheckFunction::Verify() { 3270 void HCheckFunction::Verify() {
3266 HInstruction::Verify(); 3271 HInstruction::Verify();
3267 ASSERT(HasNoUses()); 3272 ASSERT(HasNoUses());
3268 } 3273 }
3269 3274
3270 #endif 3275 #endif
3271 3276
3272 } } // namespace v8::internal 3277 } } // 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