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

Side by Side Diff: src/compiler/osr.cc

Issue 2324783002: Include only stuff you need, part 9: variables.h (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/ast/variables.cc ('k') | src/crankshaft/typing.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/osr.h" 5 #include "src/compiler/osr.h"
6 #include "src/ast/scopes.h" 6 #include "src/ast/scopes.h"
7 #include "src/compilation-info.h" 7 #include "src/compilation-info.h"
8 #include "src/compiler/all-nodes.h" 8 #include "src/compiler/all-nodes.h"
9 #include "src/compiler/common-operator-reducer.h" 9 #include "src/compiler/common-operator-reducer.h"
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
11 #include "src/compiler/dead-code-elimination.h" 11 #include "src/compiler/dead-code-elimination.h"
12 #include "src/compiler/frame.h" 12 #include "src/compiler/frame.h"
13 #include "src/compiler/graph-reducer.h" 13 #include "src/compiler/graph-reducer.h"
14 #include "src/compiler/graph-trimmer.h" 14 #include "src/compiler/graph-trimmer.h"
15 #include "src/compiler/graph-visualizer.h" 15 #include "src/compiler/graph-visualizer.h"
16 #include "src/compiler/graph.h" 16 #include "src/compiler/graph.h"
17 #include "src/compiler/js-graph.h" 17 #include "src/compiler/js-graph.h"
18 #include "src/compiler/loop-analysis.h" 18 #include "src/compiler/loop-analysis.h"
19 #include "src/compiler/node-marker.h" 19 #include "src/compiler/node-marker.h"
20 #include "src/compiler/node.h" 20 #include "src/compiler/node.h"
21 #include "src/objects-inl.h"
21 22
22 namespace v8 { 23 namespace v8 {
23 namespace internal { 24 namespace internal {
24 namespace compiler { 25 namespace compiler {
25 26
26 OsrHelper::OsrHelper(CompilationInfo* info) 27 OsrHelper::OsrHelper(CompilationInfo* info)
27 : parameter_count_( 28 : parameter_count_(
28 info->is_optimizing_from_bytecode() 29 info->is_optimizing_from_bytecode()
29 ? info->shared_info()->bytecode_array()->parameter_count() 30 ? info->shared_info()->bytecode_array()->parameter_count()
30 : info->scope()->num_parameters()), 31 : info->scope()->num_parameters()),
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 335
335 void OsrHelper::SetupFrame(Frame* frame) { 336 void OsrHelper::SetupFrame(Frame* frame) {
336 // The optimized frame will subsume the unoptimized frame. Do so by reserving 337 // The optimized frame will subsume the unoptimized frame. Do so by reserving
337 // the first spill slots. 338 // the first spill slots.
338 frame->ReserveSpillSlots(UnoptimizedFrameSlots()); 339 frame->ReserveSpillSlots(UnoptimizedFrameSlots());
339 } 340 }
340 341
341 } // namespace compiler 342 } // namespace compiler
342 } // namespace internal 343 } // namespace internal
343 } // namespace v8 344 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/variables.cc ('k') | src/crankshaft/typing.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698