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

Side by Side Diff: src/debug/liveedit.cc

Issue 1612323003: Introduce {FAST,SLOW}_STRING_WRAPPER_ELEMENTS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: one more DCHECK fix Created 4 years, 10 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 | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/elements.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 // 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
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
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
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | src/elements.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698