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

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

Issue 2301423002: includes: Make ast.h not need isolate.h any more. (Closed)
Patch Set: rebased Created 4 years, 3 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/typing.cc ('k') | src/parsing/rewriter.cc » ('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/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/compilation-cache.h" 9 #include "src/compilation-cache.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
11 #include "src/debug/debug.h" 11 #include "src/debug/debug.h"
12 #include "src/deoptimizer.h" 12 #include "src/deoptimizer.h"
13 #include "src/execution.h"
13 #include "src/frames-inl.h" 14 #include "src/frames-inl.h"
14 #include "src/global-handles.h" 15 #include "src/global-handles.h"
15 #include "src/isolate-inl.h" 16 #include "src/isolate-inl.h"
17 #include "src/isolate.h"
16 #include "src/messages.h" 18 #include "src/messages.h"
17 #include "src/source-position-table.h" 19 #include "src/source-position-table.h"
18 #include "src/v8.h" 20 #include "src/v8.h"
19 #include "src/v8memory.h" 21 #include "src/v8memory.h"
20 22
21 namespace v8 { 23 namespace v8 {
22 namespace internal { 24 namespace internal {
23 25
24 void SetElementSloppy(Handle<JSObject> object, 26 void SetElementSloppy(Handle<JSObject> object,
25 uint32_t index, 27 uint32_t index,
(...skipping 1806 matching lines...) Expand 10 before | Expand all | Expand 10 after
1832 Handle<JSArray> LiveEditFunctionTracker::Collect(FunctionLiteral* node, 1834 Handle<JSArray> LiveEditFunctionTracker::Collect(FunctionLiteral* node,
1833 Handle<Script> script, 1835 Handle<Script> script,
1834 Zone* zone, Isolate* isolate) { 1836 Zone* zone, Isolate* isolate) {
1835 LiveEditFunctionTracker visitor(script, zone, isolate); 1837 LiveEditFunctionTracker visitor(script, zone, isolate);
1836 visitor.VisitFunctionLiteral(node); 1838 visitor.VisitFunctionLiteral(node);
1837 return visitor.result_; 1839 return visitor.result_;
1838 } 1840 }
1839 1841
1840 LiveEditFunctionTracker::LiveEditFunctionTracker(Handle<Script> script, 1842 LiveEditFunctionTracker::LiveEditFunctionTracker(Handle<Script> script,
1841 Zone* zone, Isolate* isolate) 1843 Zone* zone, Isolate* isolate)
1842 : AstTraversalVisitor<LiveEditFunctionTracker>(isolate) { 1844 : AstTraversalVisitor<LiveEditFunctionTracker>(
1845 isolate->stack_guard()->climit()) {
1843 current_parent_index_ = -1; 1846 current_parent_index_ = -1;
1844 isolate_ = isolate; 1847 isolate_ = isolate;
1845 len_ = 0; 1848 len_ = 0;
1846 result_ = isolate->factory()->NewJSArray(10); 1849 result_ = isolate->factory()->NewJSArray(10);
1847 script_ = script; 1850 script_ = script;
1848 zone_ = zone; 1851 zone_ = zone;
1849 } 1852 }
1850 1853
1851 void LiveEditFunctionTracker::VisitFunctionLiteral(FunctionLiteral* node) { 1854 void LiveEditFunctionTracker::VisitFunctionLiteral(FunctionLiteral* node) {
1852 // FunctionStarted is called in pre-order. 1855 // FunctionStarted is called in pre-order.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1915 scope_info_length++; 1918 scope_info_length++;
1916 1919
1917 current_scope = current_scope->outer_scope(); 1920 current_scope = current_scope->outer_scope();
1918 } 1921 }
1919 1922
1920 return scope_info_list; 1923 return scope_info_list;
1921 } 1924 }
1922 1925
1923 } // namespace internal 1926 } // namespace internal
1924 } // namespace v8 1927 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/typing.cc ('k') | src/parsing/rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698