| 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 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1623 default: | 1623 default: |
| 1624 break; | 1624 break; |
| 1625 } | 1625 } |
| 1626 } | 1626 } |
| 1627 } | 1627 } |
| 1628 offset += OS::SNPrintF(buffer + offset, "]"); | 1628 offset += OS::SNPrintF(buffer + offset, "]"); |
| 1629 } | 1629 } |
| 1630 #else | 1630 #else |
| 1631 OS::SNPrintF(buffer, "0x%08X", flags.ToIntegral()); | 1631 OS::SNPrintF(buffer, "0x%08X", flags.ToIntegral()); |
| 1632 #endif | 1632 #endif |
| 1633 uint32_t string_len = strlen(underlying_buffer) + 1; | 1633 size_t string_len = strlen(underlying_buffer) + 1; |
| 1634 ASSERT(string_len <= sizeof(underlying_buffer)); | 1634 ASSERT(string_len <= sizeof(underlying_buffer)); |
| 1635 char* result = new char[strlen(underlying_buffer) + 1]; | 1635 char* result = new char[strlen(underlying_buffer) + 1]; |
| 1636 memcpy(result, underlying_buffer, string_len); | 1636 memcpy(result, underlying_buffer, string_len); |
| 1637 return SmartArrayPointer<char>(result); | 1637 return SmartArrayPointer<char>(result); |
| 1638 } | 1638 } |
| 1639 | 1639 |
| 1640 | 1640 |
| 1641 void HGlobalValueNumberer::LoopInvariantCodeMotion() { | 1641 void HGlobalValueNumberer::LoopInvariantCodeMotion() { |
| 1642 for (int i = graph_->blocks()->length() - 1; i >= 0; --i) { | 1642 for (int i = graph_->blocks()->length() - 1; i >= 0; --i) { |
| 1643 HBasicBlock* block = graph_->blocks()->at(i); | 1643 HBasicBlock* block = graph_->blocks()->at(i); |
| (...skipping 7116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8760 } | 8760 } |
| 8761 } | 8761 } |
| 8762 | 8762 |
| 8763 #ifdef DEBUG | 8763 #ifdef DEBUG |
| 8764 if (graph_ != NULL) graph_->Verify(false); // No full verify. | 8764 if (graph_ != NULL) graph_->Verify(false); // No full verify. |
| 8765 if (allocator_ != NULL) allocator_->Verify(); | 8765 if (allocator_ != NULL) allocator_->Verify(); |
| 8766 #endif | 8766 #endif |
| 8767 } | 8767 } |
| 8768 | 8768 |
| 8769 } } // namespace v8::internal | 8769 } } // namespace v8::internal |
| OLD | NEW |