OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 static V8PerIsolateData* mainThreadPerIsolateData = 0; | 43 static V8PerIsolateData* mainThreadPerIsolateData = 0; |
44 | 44 |
45 #if ENABLE(ASSERT) | 45 #if ENABLE(ASSERT) |
46 static void assertV8RecursionScope() | 46 static void assertV8RecursionScope() |
47 { | 47 { |
48 ASSERT(V8RecursionScope::properlyUsed(v8::Isolate::GetCurrent())); | 48 ASSERT(V8RecursionScope::properlyUsed(v8::Isolate::GetCurrent())); |
49 } | 49 } |
50 | 50 |
51 static bool runningUnitTest() | 51 static bool runningUnitTest() |
52 { | 52 { |
53 return blink::Platform::current()->unitTestSupport(); | 53 return Platform::current()->unitTestSupport(); |
54 } | 54 } |
55 #endif | 55 #endif |
56 | 56 |
57 static void useCounterCallback(v8::Isolate* isolate, v8::Isolate::UseCounterFeat
ure feature) | 57 static void useCounterCallback(v8::Isolate* isolate, v8::Isolate::UseCounterFeat
ure feature) |
58 { | 58 { |
59 switch (feature) { | 59 switch (feature) { |
60 case v8::Isolate::kUseAsm: | 60 case v8::Isolate::kUseAsm: |
61 UseCounter::count(callingExecutionContext(isolate), UseCounter::UseAsm); | 61 UseCounter::count(callingExecutionContext(isolate), UseCounter::UseAsm); |
62 break; | 62 break; |
63 case v8::Isolate::kBreakIterator: | 63 case v8::Isolate::kBreakIterator: |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 m_endOfScopeTasks.clear(); | 277 m_endOfScopeTasks.clear(); |
278 } | 278 } |
279 | 279 |
280 void V8PerIsolateData::setScriptDebugServer(PassOwnPtrWillBeRawPtr<ScriptDebugSe
rver> server) | 280 void V8PerIsolateData::setScriptDebugServer(PassOwnPtrWillBeRawPtr<ScriptDebugSe
rver> server) |
281 { | 281 { |
282 ASSERT(!m_debugServer); | 282 ASSERT(!m_debugServer); |
283 m_debugServer = server; | 283 m_debugServer = server; |
284 } | 284 } |
285 | 285 |
286 } // namespace blink | 286 } // namespace blink |
OLD | NEW |