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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/base/once.h" | 8 #include "src/base/once.h" |
9 #include "src/base/platform/platform.h" | 9 #include "src/base/platform/platform.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 } | 109 } |
110 | 110 |
111 | 111 |
112 void V8::ShutdownPlatform() { | 112 void V8::ShutdownPlatform() { |
113 CHECK(platform_); | 113 CHECK(platform_); |
114 platform_ = NULL; | 114 platform_ = NULL; |
115 } | 115 } |
116 | 116 |
117 | 117 |
118 v8::Platform* V8::GetCurrentPlatform() { | 118 v8::Platform* V8::GetCurrentPlatform() { |
119 ASSERT(platform_); | 119 DCHECK(platform_); |
120 return platform_; | 120 return platform_; |
121 } | 121 } |
122 | 122 |
123 } } // namespace v8::internal | 123 } } // namespace v8::internal |
OLD | NEW |