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

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

Issue 15714005: Deprecate HAllocateObject in favor of HAllocate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed moar comments by Hannes Payer. Created 7 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') | src/ia32/lithium-codegen-ia32.h » ('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 3023 matching lines...) Expand 10 before | Expand all | Expand 10 after
3034 HType HUnaryMathOperation::CalculateInferredType() { 3034 HType HUnaryMathOperation::CalculateInferredType() {
3035 return HType::TaggedNumber(); 3035 return HType::TaggedNumber();
3036 } 3036 }
3037 3037
3038 3038
3039 HType HStringCharFromCode::CalculateInferredType() { 3039 HType HStringCharFromCode::CalculateInferredType() {
3040 return HType::String(); 3040 return HType::String();
3041 } 3041 }
3042 3042
3043 3043
3044 HType HAllocateObject::CalculateInferredType() {
3045 return HType::JSObject();
3046 }
3047
3048
3049 HType HAllocate::CalculateInferredType() { 3044 HType HAllocate::CalculateInferredType() {
3050 return type_; 3045 return type_;
3051 } 3046 }
3052 3047
3053 3048
3054 void HAllocate::PrintDataTo(StringStream* stream) { 3049 void HAllocate::PrintDataTo(StringStream* stream) {
3055 size()->PrintNameTo(stream); 3050 size()->PrintNameTo(stream);
3056 if (!GuaranteedInNewSpace()) stream->Add(" (pretenure)"); 3051 if (!GuaranteedInNewSpace()) stream->Add(" (pretenure)");
3057 } 3052 }
3058 3053
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
3805 case kBackingStore: 3800 case kBackingStore:
3806 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); 3801 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString());
3807 stream->Add("[backing-store]"); 3802 stream->Add("[backing-store]");
3808 break; 3803 break;
3809 } 3804 }
3810 3805
3811 stream->Add("@%d", offset()); 3806 stream->Add("@%d", offset());
3812 } 3807 }
3813 3808
3814 } } // namespace v8::internal 3809 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698