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

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

Issue 1135753002: Add support for new-ish V8 use counters (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix merge Created 5 years, 7 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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:
64 UseCounter::count(callingExecutionContext(isolate), UseCounter::BreakIte rator); 64 UseCounter::count(callingExecutionContext(isolate), UseCounter::BreakIte rator);
65 break; 65 break;
66 case v8::Isolate::kLegacyConst: 66 case v8::Isolate::kLegacyConst:
67 UseCounter::count(callingExecutionContext(isolate), UseCounter::LegacyCo nst); 67 UseCounter::count(callingExecutionContext(isolate), UseCounter::LegacyCo nst);
68 break; 68 break;
69 case v8::Isolate::kMarkDequeOverflow:
70 UseCounter::count(callingExecutionContext(isolate), UseCounter::MarkDequ eOverflow);
71 break;
72 case v8::Isolate::kStoreBufferOverflow:
73 UseCounter::count(callingExecutionContext(isolate), UseCounter::StoreBuf ferOverflow);
74 break;
75 case v8::Isolate::kSlotsBufferOverflow:
76 UseCounter::count(callingExecutionContext(isolate), UseCounter::SlotsBuf ferOverflow);
77 break;
78 case v8::Isolate::kObjectObserve:
79 UseCounter::count(callingExecutionContext(isolate), UseCounter::ObjectOb serve);
80 break;
69 default: 81 default:
70 // This can happen if V8 has added counters that this version of Blink 82 // This can happen if V8 has added counters that this version of Blink
71 // does not know about. It's harmless. 83 // does not know about. It's harmless.
72 break; 84 break;
73 } 85 }
74 } 86 }
75 87
76 V8PerIsolateData::V8PerIsolateData() 88 V8PerIsolateData::V8PerIsolateData()
77 : m_destructionPending(false) 89 : m_destructionPending(false)
78 , m_isolateHolder(adoptPtr(new gin::IsolateHolder())) 90 , m_isolateHolder(adoptPtr(new gin::IsolateHolder()))
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 m_endOfScopeTasks.clear(); 289 m_endOfScopeTasks.clear();
278 } 290 }
279 291
280 void V8PerIsolateData::setScriptDebugServer(PassOwnPtrWillBeRawPtr<ScriptDebugSe rver> server) 292 void V8PerIsolateData::setScriptDebugServer(PassOwnPtrWillBeRawPtr<ScriptDebugSe rver> server)
281 { 293 {
282 ASSERT(!m_debugServer); 294 ASSERT(!m_debugServer);
283 m_debugServer = server; 295 m_debugServer = server;
284 } 296 }
285 297
286 } // namespace blink 298 } // 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