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

Side by Side Diff: Source/bindings/core/v8/V8PerIsolateData.cpp

Issue 621593003: Prepare to add a use counter for Intl.v8BreakIterator (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Break in switch case Created 6 years, 2 months 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
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
63 break;
61 } 64 }
62 } 65 }
63 66
64 V8PerIsolateData::V8PerIsolateData() 67 V8PerIsolateData::V8PerIsolateData()
65 : m_destructionPending(false) 68 : m_destructionPending(false)
66 , m_isolateHolder(adoptPtr(new gin::IsolateHolder())) 69 , m_isolateHolder(adoptPtr(new gin::IsolateHolder()))
67 , m_stringCache(adoptPtr(new StringCache(isolate()))) 70 , m_stringCache(adoptPtr(new StringCache(isolate())))
68 , m_hiddenValue(adoptPtr(new V8HiddenValue())) 71 , m_hiddenValue(adoptPtr(new V8HiddenValue()))
69 , m_constructorMode(ConstructorMode::CreateNewObject) 72 , m_constructorMode(ConstructorMode::CreateNewObject)
70 , m_recursionLevel(0) 73 , m_recursionLevel(0)
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 } 248 }
246 249
247 IDBPendingTransactionMonitor* V8PerIsolateData::ensureIDBPendingTransactionMonit or() 250 IDBPendingTransactionMonitor* V8PerIsolateData::ensureIDBPendingTransactionMonit or()
248 { 251 {
249 if (!m_idbPendingTransactionMonitor) 252 if (!m_idbPendingTransactionMonitor)
250 m_idbPendingTransactionMonitor = adoptPtr(new IDBPendingTransactionMonit or()); 253 m_idbPendingTransactionMonitor = adoptPtr(new IDBPendingTransactionMonit or());
251 return m_idbPendingTransactionMonitor.get(); 254 return m_idbPendingTransactionMonitor.get();
252 } 255 }
253 256
254 } // namespace blink 257 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698