OLD | NEW |
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 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1345 } | 1345 } |
1346 | 1346 |
1347 | 1347 |
1348 void HPhi::ResetInteger32Uses() { | 1348 void HPhi::ResetInteger32Uses() { |
1349 non_phi_uses_[Representation::kInteger32] = 0; | 1349 non_phi_uses_[Representation::kInteger32] = 0; |
1350 indirect_uses_[Representation::kInteger32] = 0; | 1350 indirect_uses_[Representation::kInteger32] = 0; |
1351 } | 1351 } |
1352 | 1352 |
1353 | 1353 |
1354 void HSimulate::PrintDataTo(StringStream* stream) { | 1354 void HSimulate::PrintDataTo(StringStream* stream) { |
1355 stream->Add("id=%d", ast_id()); | 1355 stream->Add("id=%d", ast_id().ToInt()); |
1356 if (pop_count_ > 0) stream->Add(" pop %d", pop_count_); | 1356 if (pop_count_ > 0) stream->Add(" pop %d", pop_count_); |
1357 if (values_.length() > 0) { | 1357 if (values_.length() > 0) { |
1358 if (pop_count_ > 0) stream->Add(" /"); | 1358 if (pop_count_ > 0) stream->Add(" /"); |
1359 for (int i = 0; i < values_.length(); ++i) { | 1359 for (int i = 0; i < values_.length(); ++i) { |
1360 if (i > 0) stream->Add(","); | 1360 if (i > 0) stream->Add(","); |
1361 if (HasAssignedIndexAt(i)) { | 1361 if (HasAssignedIndexAt(i)) { |
1362 stream->Add(" var[%d] = ", GetAssignedIndexAt(i)); | 1362 stream->Add(" var[%d] = ", GetAssignedIndexAt(i)); |
1363 } else { | 1363 } else { |
1364 stream->Add(" push "); | 1364 stream->Add(" push "); |
1365 } | 1365 } |
1366 values_[i]->PrintNameTo(stream); | 1366 values_[i]->PrintNameTo(stream); |
1367 } | 1367 } |
1368 } | 1368 } |
1369 } | 1369 } |
1370 | 1370 |
1371 | 1371 |
1372 void HDeoptimize::PrintDataTo(StringStream* stream) { | 1372 void HDeoptimize::PrintDataTo(StringStream* stream) { |
1373 if (OperandCount() == 0) return; | 1373 if (OperandCount() == 0) return; |
1374 OperandAt(0)->PrintNameTo(stream); | 1374 OperandAt(0)->PrintNameTo(stream); |
1375 for (int i = 1; i < OperandCount(); ++i) { | 1375 for (int i = 1; i < OperandCount(); ++i) { |
1376 stream->Add(" "); | 1376 stream->Add(" "); |
1377 OperandAt(i)->PrintNameTo(stream); | 1377 OperandAt(i)->PrintNameTo(stream); |
1378 } | 1378 } |
1379 } | 1379 } |
1380 | 1380 |
1381 | 1381 |
1382 void HEnterInlined::PrintDataTo(StringStream* stream) { | 1382 void HEnterInlined::PrintDataTo(StringStream* stream) { |
1383 SmartArrayPointer<char> name = function()->debug_name()->ToCString(); | 1383 SmartArrayPointer<char> name = function()->debug_name()->ToCString(); |
1384 stream->Add("%s, id=%d", *name, function()->id()); | 1384 stream->Add("%s, id=%d", *name, function()->id().ToInt()); |
1385 } | 1385 } |
1386 | 1386 |
1387 | 1387 |
1388 static bool IsInteger32(double value) { | 1388 static bool IsInteger32(double value) { |
1389 double roundtrip_value = static_cast<double>(static_cast<int32_t>(value)); | 1389 double roundtrip_value = static_cast<double>(static_cast<int32_t>(value)); |
1390 return BitCast<int64_t>(roundtrip_value) == BitCast<int64_t>(value); | 1390 return BitCast<int64_t>(roundtrip_value) == BitCast<int64_t>(value); |
1391 } | 1391 } |
1392 | 1392 |
1393 | 1393 |
1394 HConstant::HConstant(Handle<Object> handle, Representation r) | 1394 HConstant::HConstant(Handle<Object> handle, Representation r) |
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2584 | 2584 |
2585 | 2585 |
2586 void HCheckPrototypeMaps::Verify() { | 2586 void HCheckPrototypeMaps::Verify() { |
2587 HInstruction::Verify(); | 2587 HInstruction::Verify(); |
2588 ASSERT(HasNoUses()); | 2588 ASSERT(HasNoUses()); |
2589 } | 2589 } |
2590 | 2590 |
2591 #endif | 2591 #endif |
2592 | 2592 |
2593 } } // namespace v8::internal | 2593 } } // namespace v8::internal |
OLD | NEW |