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

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

Issue 19493005: Avoid adding HWrapReceiver during graph building. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 3169 matching lines...) Expand 10 before | Expand all | Expand 10 after
3180 if (!input_rep.IsTagged()) rep = rep.generalize(input_rep); 3180 if (!input_rep.IsTagged()) rep = rep.generalize(input_rep);
3181 return rep; 3181 return rep;
3182 } 3182 }
3183 3183
3184 3184
3185 HType HStringCharFromCode::CalculateInferredType() { 3185 HType HStringCharFromCode::CalculateInferredType() {
3186 return HType::String(); 3186 return HType::String();
3187 } 3187 }
3188 3188
3189 3189
3190 HType HAllocate::CalculateInferredType() {
3191 return type_;
3192 }
3193
3194
3195 void HAllocate::HandleSideEffectDominator(GVNFlag side_effect, 3190 void HAllocate::HandleSideEffectDominator(GVNFlag side_effect,
3196 HValue* dominator) { 3191 HValue* dominator) {
3197 ASSERT(side_effect == kChangesNewSpacePromotion); 3192 ASSERT(side_effect == kChangesNewSpacePromotion);
3198 if (!FLAG_use_allocation_folding) return; 3193 if (!FLAG_use_allocation_folding) return;
3199 3194
3200 // Try to fold allocations together with their dominating allocations. 3195 // Try to fold allocations together with their dominating allocations.
3201 if (!dominator->IsAllocate()) { 3196 if (!dominator->IsAllocate()) {
3202 if (FLAG_trace_allocation_folding) { 3197 if (FLAG_trace_allocation_folding) {
3203 PrintF("#%d (%s) cannot fold into #%d (%s)\n", 3198 PrintF("#%d (%s) cannot fold into #%d (%s)\n",
3204 id(), Mnemonic(), dominator->id(), dominator->Mnemonic()); 3199 id(), Mnemonic(), dominator->id(), dominator->Mnemonic());
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
3980 case kBackingStore: 3975 case kBackingStore:
3981 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); 3976 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString());
3982 stream->Add("[backing-store]"); 3977 stream->Add("[backing-store]");
3983 break; 3978 break;
3984 } 3979 }
3985 3980
3986 stream->Add("@%d", offset()); 3981 stream->Add("@%d", offset());
3987 } 3982 }
3988 3983
3989 } } // namespace v8::internal 3984 } } // 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