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

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

Issue 21340002: Generate a custom OSR entrypoint for OSR compiles on all platforms, and transition to optimized cod… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Use FixedArray::OffsetAt and add comment to codegen. Created 7 years, 4 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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 984
985 void HNumericConstraint::PrintDataTo(StringStream* stream) { 985 void HNumericConstraint::PrintDataTo(StringStream* stream) {
986 stream->Add("("); 986 stream->Add("(");
987 constrained_value()->PrintNameTo(stream); 987 constrained_value()->PrintNameTo(stream);
988 stream->Add(" %s ", relation().Mnemonic()); 988 stream->Add(" %s ", relation().Mnemonic());
989 related_value()->PrintNameTo(stream); 989 related_value()->PrintNameTo(stream);
990 stream->Add(")"); 990 stream->Add(")");
991 } 991 }
992 992
993 993
994 void HUnknownOSRValue::PrintDataTo(StringStream *stream) {
995 const char* type = "expression";
996 if (environment_->is_local_index(index_)) type = "local";
997 if (environment_->is_special_index(index_)) type = "special";
998 if (environment_->is_parameter_index(index_)) type = "parameter";
999 stream->Add("%s @ %d", type, index_);
1000 }
1001
1002
994 HInductionVariableAnnotation* HInductionVariableAnnotation::AddToGraph( 1003 HInductionVariableAnnotation* HInductionVariableAnnotation::AddToGraph(
995 HPhi* phi, 1004 HPhi* phi,
996 NumericRelation relation, 1005 NumericRelation relation,
997 int operand_index) { 1006 int operand_index) {
998 HInductionVariableAnnotation* result = 1007 HInductionVariableAnnotation* result =
999 new(phi->block()->zone()) HInductionVariableAnnotation(phi, relation, 1008 new(phi->block()->zone()) HInductionVariableAnnotation(phi, relation,
1000 operand_index); 1009 operand_index);
1001 result->InsertAfter(phi->block()->first()); 1010 result->InsertAfter(phi->block()->first());
1002 return result; 1011 return result;
1003 } 1012 }
(...skipping 3465 matching lines...) Expand 10 before | Expand all | Expand 10 after
4469 break; 4478 break;
4470 case kExternalMemory: 4479 case kExternalMemory:
4471 stream->Add("[external-memory]"); 4480 stream->Add("[external-memory]");
4472 break; 4481 break;
4473 } 4482 }
4474 4483
4475 stream->Add("@%d", offset()); 4484 stream->Add("@%d", offset());
4476 } 4485 }
4477 4486
4478 } } // namespace v8::internal 4487 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/hydrogen-osr.h » ('j') | src/runtime.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698