OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/debug/liveedit.h" | 5 #include "src/debug/liveedit.h" |
6 | 6 |
7 #include "src/ast/scopeinfo.h" | 7 #include "src/ast/scopeinfo.h" |
8 #include "src/ast/scopes.h" | 8 #include "src/ast/scopes.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/compilation-cache.h" | 10 #include "src/compilation-cache.h" |
(...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1850 HeapObject* obj = NULL; | 1850 HeapObject* obj = NULL; |
1851 while ((obj = iterator.next()) != NULL) { | 1851 while ((obj = iterator.next()) != NULL) { |
1852 if (!obj->IsJSGeneratorObject()) continue; | 1852 if (!obj->IsJSGeneratorObject()) continue; |
1853 | 1853 |
1854 JSGeneratorObject* gen = JSGeneratorObject::cast(obj); | 1854 JSGeneratorObject* gen = JSGeneratorObject::cast(obj); |
1855 if (gen->is_closed()) continue; | 1855 if (gen->is_closed()) continue; |
1856 | 1856 |
1857 HandleScope scope(isolate); | 1857 HandleScope scope(isolate); |
1858 | 1858 |
1859 for (int i = 0; i < len; i++) { | 1859 for (int i = 0; i < len; i++) { |
1860 Handle<JSValue> jsvalue = | 1860 Handle<JSValue> jsvalue = Handle<JSValue>::cast( |
1861 Handle<JSValue>::cast(FixedArray::get(shared_info_array, i)); | 1861 FixedArray::get(*shared_info_array, i, isolate)); |
1862 Handle<SharedFunctionInfo> shared = | 1862 Handle<SharedFunctionInfo> shared = |
1863 UnwrapSharedFunctionInfoFromJSValue(jsvalue); | 1863 UnwrapSharedFunctionInfoFromJSValue(jsvalue); |
1864 | 1864 |
1865 if (gen->function()->shared() == *shared) { | 1865 if (gen->function()->shared() == *shared) { |
1866 result->set(i, Smi::FromInt(active)); | 1866 result->set(i, Smi::FromInt(active)); |
1867 found_suspended_activations = true; | 1867 found_suspended_activations = true; |
1868 } | 1868 } |
1869 } | 1869 } |
1870 } | 1870 } |
1871 | 1871 |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2037 isolate_->active_function_info_listener()->FunctionCode(code); | 2037 isolate_->active_function_info_listener()->FunctionCode(code); |
2038 } | 2038 } |
2039 | 2039 |
2040 | 2040 |
2041 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { | 2041 bool LiveEditFunctionTracker::IsActive(Isolate* isolate) { |
2042 return isolate->active_function_info_listener() != NULL; | 2042 return isolate->active_function_info_listener() != NULL; |
2043 } | 2043 } |
2044 | 2044 |
2045 } // namespace internal | 2045 } // namespace internal |
2046 } // namespace v8 | 2046 } // namespace v8 |
OLD | NEW |