| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 , m_applicationSnapshot() | 50 , m_applicationSnapshot() |
| 51 , m_reachableWeakHandle(0) | 51 , m_reachableWeakHandle(0) |
| 52 , m_objectMap() | 52 , m_objectMap() |
| 53 , m_messagePortMap() | 53 , m_messagePortMap() |
| 54 , m_isolateDestructionObservers() | 54 , m_isolateDestructionObservers() |
| 55 , m_classHandleCache() | 55 , m_classHandleCache() |
| 56 , m_libraryHandleCache() | 56 , m_libraryHandleCache() |
| 57 , m_functionType(0) | 57 , m_functionType(0) |
| 58 , m_currentException(0) | 58 , m_currentException(0) |
| 59 , m_rootScriptState(0) | 59 , m_rootScriptState(0) |
| 60 , m_weakReferenceSetForRootMap(0) | |
| 61 , m_documentWeakReferenceSet(0) | |
| 62 , m_weakReferenceSetBuilder(0) | |
| 63 { | 60 { |
| 64 } | 61 } |
| 65 | 62 |
| 66 DartDOMData::~DartDOMData() | 63 DartDOMData::~DartDOMData() |
| 67 { | 64 { |
| 68 ASSERT(m_objectMap.isEmpty()); | 65 ASSERT(m_objectMap.isEmpty()); |
| 69 ASSERT(m_messagePortMap.isEmpty()); | 66 ASSERT(m_messagePortMap.isEmpty()); |
| 70 | 67 |
| 71 free(m_scriptURL); | 68 free(m_scriptURL); |
| 72 setApplicationLoader(nullptr); | 69 setApplicationLoader(nullptr); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 Dart_PersistentHandle DartDOMData::getLibrary(int libraryId, const char* name) | 104 Dart_PersistentHandle DartDOMData::getLibrary(int libraryId, const char* name) |
| 108 { | 105 { |
| 109 Dart_Handle lib = Dart_LookupLibrary(Dart_NewStringFromCString(name)); | 106 Dart_Handle lib = Dart_LookupLibrary(Dart_NewStringFromCString(name)); |
| 110 ASSERT(!Dart_IsError(lib)); | 107 ASSERT(!Dart_IsError(lib)); |
| 111 Dart_PersistentHandle persistentLib = Dart_NewPersistentHandle(lib); | 108 Dart_PersistentHandle persistentLib = Dart_NewPersistentHandle(lib); |
| 112 m_libraryHandleCache[libraryId] = persistentLib; | 109 m_libraryHandleCache[libraryId] = persistentLib; |
| 113 return persistentLib; | 110 return persistentLib; |
| 114 } | 111 } |
| 115 | 112 |
| 116 } | 113 } |
| OLD | NEW |