| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |