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

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
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('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 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 2903 matching lines...) Expand 10 before | Expand all | Expand 10 after
2914 return type_; 2914 return type_;
2915 } 2915 }
2916 2916
2917 2917
2918 void HAllocate::PrintDataTo(StringStream* stream) { 2918 void HAllocate::PrintDataTo(StringStream* stream) {
2919 size()->PrintNameTo(stream); 2919 size()->PrintNameTo(stream);
2920 if (!GuaranteedInNewSpace()) stream->Add(" (pretenure)"); 2920 if (!GuaranteedInNewSpace()) stream->Add(" (pretenure)");
2921 } 2921 }
2922 2922
2923 2923
2924 HType HFastLiteral::CalculateInferredType() {
2925 // TODO(mstarzinger): Be smarter, could also be JSArray here.
2926 return HType::JSObject();
2927 }
2928
2929
2930 HType HArrayLiteral::CalculateInferredType() { 2924 HType HArrayLiteral::CalculateInferredType() {
2931 return HType::JSArray(); 2925 return HType::JSArray();
2932 } 2926 }
2933 2927
2934 2928
2935 HType HObjectLiteral::CalculateInferredType() { 2929 HType HObjectLiteral::CalculateInferredType() {
2936 return HType::JSObject(); 2930 return HType::JSObject();
2937 } 2931 }
2938 2932
2939 2933
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
3536 3530
3537 3531
3538 void HCheckFunction::Verify() { 3532 void HCheckFunction::Verify() {
3539 HInstruction::Verify(); 3533 HInstruction::Verify();
3540 ASSERT(HasNoUses()); 3534 ASSERT(HasNoUses());
3541 } 3535 }
3542 3536
3543 #endif 3537 #endif
3544 3538
3545 } } // namespace v8::internal 3539 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698