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

Side by Side Diff: src/utils.h

Issue 115462: Add a script cache to the debugger... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 7 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
« src/debug.cc ('K') | « src/runtime.cc ('k') | src/utils.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 s += 7; 198 s += 7;
199 b = *--p; 199 b = *--p;
200 } 200 }
201 // b >= 128 201 // b >= 128
202 *x = r | ((static_cast<unsigned int>(b) - 128) << s); 202 *x = r | ((static_cast<unsigned int>(b) - 128) << s);
203 return p; 203 return p;
204 } 204 }
205 205
206 206
207 // ---------------------------------------------------------------------------- 207 // ----------------------------------------------------------------------------
208 // Hash function.
209
210 uint32_t ComputeIntegerHash(uint32_t key);
211
212
213 // ----------------------------------------------------------------------------
208 // I/O support. 214 // I/O support.
209 215
210 // Our version of printf(). Avoids compilation errors that we get 216 // Our version of printf(). Avoids compilation errors that we get
211 // with standard printf when attempting to print pointers, etc. 217 // with standard printf when attempting to print pointers, etc.
212 // (the errors are due to the extra compilation flags, which we 218 // (the errors are due to the extra compilation flags, which we
213 // want elsewhere). 219 // want elsewhere).
214 void PrintF(const char* format, ...); 220 void PrintF(const char* format, ...);
215 221
216 // Our version of fflush. 222 // Our version of fflush.
217 void Flush(); 223 void Flush();
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 #endif 545 #endif
540 while (dest < limit) { 546 while (dest < limit) {
541 *dest++ = static_cast<sinkchar>(*src++); 547 *dest++ = static_cast<sinkchar>(*src++);
542 } 548 }
543 } 549 }
544 550
545 551
546 } } // namespace v8::internal 552 } } // namespace v8::internal
547 553
548 #endif // V8_UTILS_H_ 554 #endif // V8_UTILS_H_
OLDNEW
« src/debug.cc ('K') | « src/runtime.cc ('k') | src/utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698