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 23533003: Implement fixpoint iteration for escape analysis. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Simplified and rebased. Created 7 years, 3 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
« src/hydrogen-escape-analysis.h ('K') | « 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 2326 matching lines...) Expand 10 before | Expand all | Expand 10 after
2337 if (value->IsCapturedObject() && 2337 if (value->IsCapturedObject() &&
2338 HCapturedObject::cast(value)->capture_id() == this->capture_id()) { 2338 HCapturedObject::cast(value)->capture_id() == this->capture_id()) {
2339 env->SetValueAt(i, this); 2339 env->SetValueAt(i, this);
2340 } 2340 }
2341 } 2341 }
2342 env = env->outer(); 2342 env = env->outer();
2343 } 2343 }
2344 } 2344 }
2345 2345
2346 2346
2347 void HCapturedObject::PrintDataTo(StringStream* stream) {
2348 stream->Add("#%d ", capture_id());
2349 HDematerializedObject::PrintDataTo(stream);
2350 }
2351
2352
2347 void HEnterInlined::RegisterReturnTarget(HBasicBlock* return_target, 2353 void HEnterInlined::RegisterReturnTarget(HBasicBlock* return_target,
2348 Zone* zone) { 2354 Zone* zone) {
2349 ASSERT(return_target->IsInlineReturnTarget()); 2355 ASSERT(return_target->IsInlineReturnTarget());
2350 return_targets_.Add(return_target, zone); 2356 return_targets_.Add(return_target, zone);
2351 } 2357 }
2352 2358
2353 2359
2354 void HEnterInlined::PrintDataTo(StringStream* stream) { 2360 void HEnterInlined::PrintDataTo(StringStream* stream) {
2355 SmartArrayPointer<char> name = function()->debug_name()->ToCString(); 2361 SmartArrayPointer<char> name = function()->debug_name()->ToCString();
2356 stream->Add("%s, id=%d", *name, function()->id().ToInt()); 2362 stream->Add("%s, id=%d", *name, function()->id().ToInt());
(...skipping 1879 matching lines...) Expand 10 before | Expand all | Expand 10 after
4236 break; 4242 break;
4237 case kExternalMemory: 4243 case kExternalMemory:
4238 stream->Add("[external-memory]"); 4244 stream->Add("[external-memory]");
4239 break; 4245 break;
4240 } 4246 }
4241 4247
4242 stream->Add("@%d", offset()); 4248 stream->Add("@%d", offset());
4243 } 4249 }
4244 4250
4245 } } // namespace v8::internal 4251 } } // namespace v8::internal
OLDNEW
« src/hydrogen-escape-analysis.h ('K') | « src/hydrogen-instructions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698