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

Side by Side Diff: src/utils.h

Issue 307393002: Misc cleanup (split from the "delay string / value internalization" CL). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix (the amount of error reporting functions is too damn high!) Created 6 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/preparser.h ('k') | 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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_UTILS_H_ 5 #ifndef V8_UTILS_H_
6 #define V8_UTILS_H_ 6 #define V8_UTILS_H_
7 7
8 #include <limits.h> 8 #include <limits.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <string.h> 10 #include <string.h>
11 11
12 #include "src/allocation.h" 12 #include "src/allocation.h"
13 #include "src/checks.h" 13 #include "src/checks.h"
14 #include "src/globals.h" 14 #include "src/globals.h"
15 #include "src/list.h"
15 #include "src/platform.h" 16 #include "src/platform.h"
16 #include "src/vector.h" 17 #include "src/vector.h"
17 18
18 namespace v8 { 19 namespace v8 {
19 namespace internal { 20 namespace internal {
20 21
21 // ---------------------------------------------------------------------------- 22 // ----------------------------------------------------------------------------
22 // General helper functions 23 // General helper functions
23 24
24 #define IS_POWER_OF_TWO(x) ((x) != 0 && (((x) & ((x) - 1)) == 0)) 25 #define IS_POWER_OF_TWO(x) ((x) != 0 && (((x) & ((x) - 1)) == 0))
(...skipping 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1547 // Add formatted contents like printf based on a va_list. 1548 // Add formatted contents like printf based on a va_list.
1548 void AddFormattedList(const char* format, va_list list); 1549 void AddFormattedList(const char* format, va_list list);
1549 private: 1550 private:
1550 DISALLOW_IMPLICIT_CONSTRUCTORS(StringBuilder); 1551 DISALLOW_IMPLICIT_CONSTRUCTORS(StringBuilder);
1551 }; 1552 };
1552 1553
1553 1554
1554 } } // namespace v8::internal 1555 } } // namespace v8::internal
1555 1556
1556 #endif // V8_UTILS_H_ 1557 #endif // V8_UTILS_H_
OLDNEW
« no previous file with comments | « src/preparser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698