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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 } | 50 } |
51 #endif | 51 #endif |
52 | 52 |
53 static void useCounterCallback(v8::Isolate* isolate, v8::Isolate::UseCounterFeat ure feature) | 53 static void useCounterCallback(v8::Isolate* isolate, v8::Isolate::UseCounterFeat ure feature) |
54 { | 54 { |
55 switch (feature) { | 55 switch (feature) { |
56 case v8::Isolate::kUseAsm: | 56 case v8::Isolate::kUseAsm: |
57 UseCounter::count(currentExecutionContext(isolate), UseCounter::UseAsm); | 57 UseCounter::count(currentExecutionContext(isolate), UseCounter::UseAsm); |
58 break; | 58 break; |
59 default: | 59 default: |
60 ASSERT_NOT_REACHED(); | 60 // V8 may be a newer version that has some use counters we don't know |
61 // about yet. FIXME: Add support for v8::Isolate::kBreakIterator and | |
62 // UseCounter::BreakIterator. | |
Mike West
2014/10/01 13:41:54
Nit: Can you explicitly return here? Falling out o
Erik Corry
2014/10/01 13:43:57
Done.
| |
61 } | 63 } |
62 } | 64 } |
63 | 65 |
64 V8PerIsolateData::V8PerIsolateData() | 66 V8PerIsolateData::V8PerIsolateData() |
65 : m_destructionPending(false) | 67 : m_destructionPending(false) |
66 , m_isolateHolder(adoptPtr(new gin::IsolateHolder())) | 68 , m_isolateHolder(adoptPtr(new gin::IsolateHolder())) |
67 , m_stringCache(adoptPtr(new StringCache(isolate()))) | 69 , m_stringCache(adoptPtr(new StringCache(isolate()))) |
68 , m_hiddenValue(adoptPtr(new V8HiddenValue())) | 70 , m_hiddenValue(adoptPtr(new V8HiddenValue())) |
69 , m_constructorMode(ConstructorMode::CreateNewObject) | 71 , m_constructorMode(ConstructorMode::CreateNewObject) |
70 , m_recursionLevel(0) | 72 , m_recursionLevel(0) |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
245 } | 247 } |
246 | 248 |
247 IDBPendingTransactionMonitor* V8PerIsolateData::ensureIDBPendingTransactionMonit or() | 249 IDBPendingTransactionMonitor* V8PerIsolateData::ensureIDBPendingTransactionMonit or() |
248 { | 250 { |
249 if (!m_idbPendingTransactionMonitor) | 251 if (!m_idbPendingTransactionMonitor) |
250 m_idbPendingTransactionMonitor = adoptPtr(new IDBPendingTransactionMonit or()); | 252 m_idbPendingTransactionMonitor = adoptPtr(new IDBPendingTransactionMonit or()); |
251 return m_idbPendingTransactionMonitor.get(); | 253 return m_idbPendingTransactionMonitor.get(); |
252 } | 254 } |
253 | 255 |
254 } // namespace blink | 256 } // namespace blink |
OLD | NEW |