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

Side by Side Diff: src/hydrogen.cc

Issue 10221006: Fix 64-bit windows size_t assert (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 8 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 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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