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

Side by Side Diff: src/v8.h

Issue 8939: Backport the changes from the readability. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 1 month 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/simulator-arm.cc ('k') | test/cctest/test-disasm-arm.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 20 matching lines...) Expand all
31 31
32 #ifndef V8_V8_H_ 32 #ifndef V8_V8_H_
33 #define V8_V8_H_ 33 #define V8_V8_H_
34 34
35 #if defined(GOOGLE3) 35 #if defined(GOOGLE3)
36 // Google3 special flag handling. 36 // Google3 special flag handling.
37 #if defined(DEBUG) && defined(NDEBUG) 37 #if defined(DEBUG) && defined(NDEBUG)
38 // If both are defined in Google3, then we are building an optimized v8 with 38 // If both are defined in Google3, then we are building an optimized v8 with
39 // assertions enabled. 39 // assertions enabled.
40 #undef NDEBUG 40 #undef NDEBUG
41 #elif !defined(DEBUG) && !defined(NDEBUG)
42 // If neither is defined in Google3, then we are building a debug v8. Mark it
43 // as such.
44 #define DEBUG
Feng Qian 2008/11/04 22:05:53 This is a big confusing. Maybe you should explain
41 #endif 45 #endif
42 #endif // defined(GOOGLE3) 46 #endif // defined(GOOGLE3)
43 47
44 // V8 only uses DEBUG, but included external files 48 // V8 only uses DEBUG, but included external files
45 // may use NDEBUG - make sure they are consistent. 49 // may use NDEBUG - make sure they are consistent.
46 #if defined(DEBUG) && defined(NDEBUG) 50 #if defined(DEBUG) && defined(NDEBUG)
47 #error both DEBUG and NDEBUG are set 51 #error both DEBUG and NDEBUG are set
48 #endif 52 #endif
49 53
50 // Basic includes 54 // Basic includes
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // Report process out of memory. Implementation found in api.cc. 86 // Report process out of memory. Implementation found in api.cc.
83 static void FatalProcessOutOfMemory(const char* location); 87 static void FatalProcessOutOfMemory(const char* location);
84 private: 88 private:
85 static bool has_been_setup_; 89 static bool has_been_setup_;
86 static bool has_been_disposed_; 90 static bool has_been_disposed_;
87 }; 91 };
88 92
89 } } // namespace v8::internal 93 } } // namespace v8::internal
90 94
91 #endif // V8_V8_H_ 95 #endif // V8_V8_H_
OLDNEW
« no previous file with comments | « src/simulator-arm.cc ('k') | test/cctest/test-disasm-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698