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

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

Issue 185403005: Fix HStringAdd::PrintDataTo(). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | « no previous file | 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 3860 matching lines...) Expand 10 before | Expand all | Expand 10 after
3871 3871
3872 3872
3873 void HStringAdd::PrintDataTo(StringStream* stream) { 3873 void HStringAdd::PrintDataTo(StringStream* stream) {
3874 if ((flags() & STRING_ADD_CHECK_BOTH) == STRING_ADD_CHECK_BOTH) { 3874 if ((flags() & STRING_ADD_CHECK_BOTH) == STRING_ADD_CHECK_BOTH) {
3875 stream->Add("_CheckBoth"); 3875 stream->Add("_CheckBoth");
3876 } else if ((flags() & STRING_ADD_CHECK_BOTH) == STRING_ADD_CHECK_LEFT) { 3876 } else if ((flags() & STRING_ADD_CHECK_BOTH) == STRING_ADD_CHECK_LEFT) {
3877 stream->Add("_CheckLeft"); 3877 stream->Add("_CheckLeft");
3878 } else if ((flags() & STRING_ADD_CHECK_BOTH) == STRING_ADD_CHECK_RIGHT) { 3878 } else if ((flags() & STRING_ADD_CHECK_BOTH) == STRING_ADD_CHECK_RIGHT) {
3879 stream->Add("_CheckRight"); 3879 stream->Add("_CheckRight");
3880 } 3880 }
3881 HBinaryOperation::PrintDataTo(stream);
3881 stream->Add(" ("); 3882 stream->Add(" (");
3882 if (pretenure_flag() == NOT_TENURED) stream->Add("N"); 3883 if (pretenure_flag() == NOT_TENURED) stream->Add("N");
3883 else if (pretenure_flag() == TENURED) stream->Add("D"); 3884 else if (pretenure_flag() == TENURED) stream->Add("D");
3884 stream->Add(")"); 3885 stream->Add(")");
3885 } 3886 }
3886 3887
3887 3888
3888 HInstruction* HStringCharFromCode::New( 3889 HInstruction* HStringCharFromCode::New(
3889 Zone* zone, HValue* context, HValue* char_code) { 3890 Zone* zone, HValue* context, HValue* char_code) {
3890 if (FLAG_fold_constants && char_code->IsConstant()) { 3891 if (FLAG_fold_constants && char_code->IsConstant()) {
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after
4523 break; 4524 break;
4524 case kExternalMemory: 4525 case kExternalMemory:
4525 stream->Add("[external-memory]"); 4526 stream->Add("[external-memory]");
4526 break; 4527 break;
4527 } 4528 }
4528 4529
4529 stream->Add("@%d", offset()); 4530 stream->Add("@%d", offset());
4530 } 4531 }
4531 4532
4532 } } // namespace v8::internal 4533 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698