| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 break; | 71 break; |
| 72 case v8::Isolate::kSloppyMode: | 72 case v8::Isolate::kSloppyMode: |
| 73 blinkFeature = UseCounter::V8SloppyMode; | 73 blinkFeature = UseCounter::V8SloppyMode; |
| 74 break; | 74 break; |
| 75 case v8::Isolate::kStrictMode: | 75 case v8::Isolate::kStrictMode: |
| 76 blinkFeature = UseCounter::V8StrictMode; | 76 blinkFeature = UseCounter::V8StrictMode; |
| 77 break; | 77 break; |
| 78 case v8::Isolate::kStrongMode: | 78 case v8::Isolate::kStrongMode: |
| 79 blinkFeature = UseCounter::V8StrongMode; | 79 blinkFeature = UseCounter::V8StrongMode; |
| 80 break; | 80 break; |
| 81 case v8::Isolate::kRegExpPrototypeStickyGetter: |
| 82 blinkFeature = UseCounter::V8RegExpPrototypeStickyGetter; |
| 83 break; |
| 84 case v8::Isolate::kRegExpPrototypeToString: |
| 85 blinkFeature = UseCounter::V8RegExpPrototypeToString; |
| 86 break; |
| 81 default: | 87 default: |
| 82 // This can happen if V8 has added counters that this version of Blink | 88 // This can happen if V8 has added counters that this version of Blink |
| 83 // does not know about. It's harmless. | 89 // does not know about. It's harmless. |
| 84 return; | 90 return; |
| 85 } | 91 } |
| 86 UseCounter::count(callingExecutionContext(isolate), blinkFeature); | 92 UseCounter::count(callingExecutionContext(isolate), blinkFeature); |
| 87 } | 93 } |
| 88 | 94 |
| 89 V8PerIsolateData::V8PerIsolateData() | 95 V8PerIsolateData::V8PerIsolateData() |
| 90 : m_destructionPending(false) | 96 : m_destructionPending(false) |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 287 m_endOfScopeTasks.clear(); | 293 m_endOfScopeTasks.clear(); |
| 288 } | 294 } |
| 289 | 295 |
| 290 void V8PerIsolateData::setScriptDebugger(PassOwnPtr<MainThreadDebugger> debugger
) | 296 void V8PerIsolateData::setScriptDebugger(PassOwnPtr<MainThreadDebugger> debugger
) |
| 291 { | 297 { |
| 292 ASSERT(!m_scriptDebugger); | 298 ASSERT(!m_scriptDebugger); |
| 293 m_scriptDebugger = std::move(debugger); | 299 m_scriptDebugger = std::move(debugger); |
| 294 } | 300 } |
| 295 | 301 |
| 296 } // namespace blink | 302 } // namespace blink |
| OLD | NEW |