OLD | NEW |
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 | 5 |
6 // Defined when linking against shared lib on Windows. | 6 // Defined when linking against shared lib on Windows. |
7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) | 7 #if defined(USING_V8_SHARED) && !defined(V8_SHARED) |
8 #define V8_SHARED | 8 #define V8_SHARED |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #include <windows.h> // NOLINT | 59 #include <windows.h> // NOLINT |
60 #if defined(_MSC_VER) | 60 #if defined(_MSC_VER) |
61 #include <crtdbg.h> // NOLINT | 61 #include <crtdbg.h> // NOLINT |
62 #endif // defined(_MSC_VER) | 62 #endif // defined(_MSC_VER) |
63 #endif // !defined(_WIN32) && !defined(_WIN64) | 63 #endif // !defined(_WIN32) && !defined(_WIN64) |
64 | 64 |
65 #ifndef DCHECK | 65 #ifndef DCHECK |
66 #define DCHECK(condition) assert(condition) | 66 #define DCHECK(condition) assert(condition) |
67 #endif | 67 #endif |
68 | 68 |
| 69 #ifndef CHECK |
| 70 #define CHECK(condition) assert(condition) |
| 71 #endif |
| 72 |
69 namespace v8 { | 73 namespace v8 { |
70 | 74 |
71 | 75 |
72 static Handle<Value> Throw(Isolate* isolate, const char* message) { | 76 static Handle<Value> Throw(Isolate* isolate, const char* message) { |
73 return isolate->ThrowException(String::NewFromUtf8(isolate, message)); | 77 return isolate->ThrowException(String::NewFromUtf8(isolate, message)); |
74 } | 78 } |
75 | 79 |
76 | 80 |
77 | 81 |
78 class PerIsolateData { | 82 class PerIsolateData { |
(...skipping 1614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1693 } | 1697 } |
1694 | 1698 |
1695 } // namespace v8 | 1699 } // namespace v8 |
1696 | 1700 |
1697 | 1701 |
1698 #ifndef GOOGLE3 | 1702 #ifndef GOOGLE3 |
1699 int main(int argc, char* argv[]) { | 1703 int main(int argc, char* argv[]) { |
1700 return v8::Shell::Main(argc, argv); | 1704 return v8::Shell::Main(argc, argv); |
1701 } | 1705 } |
1702 #endif | 1706 #endif |
OLD | NEW |