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

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

Issue 12880017: Build fast literals in hydrogen. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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
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 2898 matching lines...) Expand 10 before | Expand all | Expand 10 after
2909 return type_; 2909 return type_;
2910 } 2910 }
2911 2911
2912 2912
2913 void HAllocate::PrintDataTo(StringStream* stream) { 2913 void HAllocate::PrintDataTo(StringStream* stream) {
2914 size()->PrintNameTo(stream); 2914 size()->PrintNameTo(stream);
2915 if (!GuaranteedInNewSpace()) stream->Add(" (pretenure)"); 2915 if (!GuaranteedInNewSpace()) stream->Add(" (pretenure)");
2916 } 2916 }
2917 2917
2918 2918
2919 HType HFastLiteral::CalculateInferredType() {
2920 // TODO(mstarzinger): Be smarter, could also be JSArray here.
2921 return HType::JSObject();
2922 }
2923
2924
2925 HType HArrayLiteral::CalculateInferredType() { 2919 HType HArrayLiteral::CalculateInferredType() {
2926 return HType::JSArray(); 2920 return HType::JSArray();
2927 } 2921 }
2928 2922
2929 2923
2930 HType HObjectLiteral::CalculateInferredType() { 2924 HType HObjectLiteral::CalculateInferredType() {
2931 return HType::JSObject(); 2925 return HType::JSObject();
2932 } 2926 }
2933 2927
2934 2928
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
3531 3525
3532 3526
3533 void HCheckFunction::Verify() { 3527 void HCheckFunction::Verify() {
3534 HInstruction::Verify(); 3528 HInstruction::Verify();
3535 ASSERT(HasNoUses()); 3529 ASSERT(HasNoUses());
3536 } 3530 }
3537 3531
3538 #endif 3532 #endif
3539 3533
3540 } } // namespace v8::internal 3534 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698