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

Side by Side Diff: src/v8.h

Issue 1315063007: Remove obsolete DEBUG and NDEBUG macro dance. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
« 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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_V8_H_ 5 #ifndef V8_V8_H_
6 #define V8_V8_H_ 6 #define V8_V8_H_
7 7
8 #include "include/v8.h" 8 #include "include/v8.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 10
11 #if defined(GOOGLE3) || defined(DCHECK_ALWAYS_ON)
12 // Google3 and Chromium special flag handling.
13 #if defined(DEBUG) && defined(NDEBUG)
14 // V8 only uses DEBUG and whenever it is set we are building a debug
15 // version of V8. We do not use NDEBUG and simply undef it here for
16 // consistency.
17 #undef NDEBUG
18 #endif
19 #endif // defined(GOOGLE3)
20
21 // V8 only uses DEBUG, but included external files
22 // may use NDEBUG - make sure they are consistent.
23 #if defined(DEBUG) && defined(NDEBUG)
24 #error both DEBUG and NDEBUG are set
25 #endif
26
27 namespace v8 { 11 namespace v8 {
28 namespace internal { 12 namespace internal {
29 13
30 class V8 : public AllStatic { 14 class V8 : public AllStatic {
31 public: 15 public:
32 // Global actions. 16 // Global actions.
33 17
34 static bool Initialize(); 18 static bool Initialize();
35 static void TearDown(); 19 static void TearDown();
36 20
(...skipping 13 matching lines...) Expand all
50 static void InitializeOncePerProcessImpl(); 34 static void InitializeOncePerProcessImpl();
51 static void InitializeOncePerProcess(); 35 static void InitializeOncePerProcess();
52 36
53 // v8::Platform to use. 37 // v8::Platform to use.
54 static v8::Platform* platform_; 38 static v8::Platform* platform_;
55 }; 39 };
56 40
57 } } // namespace v8::internal 41 } } // namespace v8::internal
58 42
59 #endif // V8_V8_H_ 43 #endif // V8_V8_H_
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