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

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

Issue 17082003: Let NaN flow as double into HBranch (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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.cc » ('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 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 void HReturn::PrintDataTo(StringStream* stream) { 1269 void HReturn::PrintDataTo(StringStream* stream) {
1270 value()->PrintNameTo(stream); 1270 value()->PrintNameTo(stream);
1271 stream->Add(" (pop "); 1271 stream->Add(" (pop ");
1272 parameter_count()->PrintNameTo(stream); 1272 parameter_count()->PrintNameTo(stream);
1273 stream->Add(" values)"); 1273 stream->Add(" values)");
1274 } 1274 }
1275 1275
1276 1276
1277 Representation HBranch::observed_input_representation(int index) { 1277 Representation HBranch::observed_input_representation(int index) {
1278 static const ToBooleanStub::Types tagged_types( 1278 static const ToBooleanStub::Types tagged_types(
1279 ToBooleanStub::UNDEFINED |
1280 ToBooleanStub::NULL_TYPE | 1279 ToBooleanStub::NULL_TYPE |
1281 ToBooleanStub::SPEC_OBJECT | 1280 ToBooleanStub::SPEC_OBJECT |
1282 ToBooleanStub::STRING | 1281 ToBooleanStub::STRING |
1283 ToBooleanStub::SYMBOL); 1282 ToBooleanStub::SYMBOL);
1284 if (expected_input_types_.ContainsAnyOf(tagged_types)) { 1283 if (expected_input_types_.ContainsAnyOf(tagged_types)) {
1285 return Representation::Tagged(); 1284 return Representation::Tagged();
1286 } else if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) { 1285 }
1286 if (expected_input_types_.Contains(ToBooleanStub::UNDEFINED)) {
1287 if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) {
1288 return Representation::Double();
1289 }
1290 return Representation::Tagged();
1291 }
1292 if (expected_input_types_.Contains(ToBooleanStub::HEAP_NUMBER)) {
1287 return Representation::Double(); 1293 return Representation::Double();
1288 } else if (expected_input_types_.Contains(ToBooleanStub::SMI)) { 1294 }
1295 if (expected_input_types_.Contains(ToBooleanStub::SMI)) {
1289 return Representation::Smi(); 1296 return Representation::Smi();
1290 } else {
1291 return Representation::None();
1292 } 1297 }
1298 return Representation::None();
1293 } 1299 }
1294 1300
1295 1301
1296 void HCompareMap::PrintDataTo(StringStream* stream) { 1302 void HCompareMap::PrintDataTo(StringStream* stream) {
1297 value()->PrintNameTo(stream); 1303 value()->PrintNameTo(stream);
1298 stream->Add(" (%p)", *map()); 1304 stream->Add(" (%p)", *map());
1299 HControlInstruction::PrintDataTo(stream); 1305 HControlInstruction::PrintDataTo(stream);
1300 } 1306 }
1301 1307
1302 1308
(...skipping 2568 matching lines...) Expand 10 before | Expand all | Expand 10 after
3871 case kBackingStore: 3877 case kBackingStore:
3872 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); 3878 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString());
3873 stream->Add("[backing-store]"); 3879 stream->Add("[backing-store]");
3874 break; 3880 break;
3875 } 3881 }
3876 3882
3877 stream->Add("@%d", offset()); 3883 stream->Add("@%d", offset());
3878 } 3884 }
3879 3885
3880 } } // namespace v8::internal 3886 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.h ('k') | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698