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

Side by Side Diff: src/crankshaft/hydrogen.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/compiler/ast-loop-assignment-analyzer.cc ('k') | src/crankshaft/typing.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/crankshaft/hydrogen.h" 5 #include "src/crankshaft/hydrogen.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 23 matching lines...) Expand all
34 #include "src/crankshaft/hydrogen-store-elimination.h" 34 #include "src/crankshaft/hydrogen-store-elimination.h"
35 #include "src/crankshaft/hydrogen-uint32-analysis.h" 35 #include "src/crankshaft/hydrogen-uint32-analysis.h"
36 #include "src/crankshaft/lithium-allocator.h" 36 #include "src/crankshaft/lithium-allocator.h"
37 #include "src/crankshaft/typing.h" 37 #include "src/crankshaft/typing.h"
38 #include "src/field-type.h" 38 #include "src/field-type.h"
39 #include "src/full-codegen/full-codegen.h" 39 #include "src/full-codegen/full-codegen.h"
40 #include "src/globals.h" 40 #include "src/globals.h"
41 #include "src/ic/call-optimization.h" 41 #include "src/ic/call-optimization.h"
42 #include "src/ic/ic.h" 42 #include "src/ic/ic.h"
43 // GetRootConstructor 43 // GetRootConstructor
44 #include "src/execution.h"
44 #include "src/ic/ic-inl.h" 45 #include "src/ic/ic-inl.h"
45 #include "src/isolate-inl.h" 46 #include "src/isolate-inl.h"
47 #include "src/isolate.h"
46 #include "src/runtime/runtime.h" 48 #include "src/runtime/runtime.h"
47 49
48 #if V8_TARGET_ARCH_IA32 50 #if V8_TARGET_ARCH_IA32
49 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" // NOLINT 51 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" // NOLINT
50 #elif V8_TARGET_ARCH_X64 52 #elif V8_TARGET_ARCH_X64
51 #include "src/crankshaft/x64/lithium-codegen-x64.h" // NOLINT 53 #include "src/crankshaft/x64/lithium-codegen-x64.h" // NOLINT
52 #elif V8_TARGET_ARCH_ARM64 54 #elif V8_TARGET_ARCH_ARM64
53 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" // NOLINT 55 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" // NOLINT
54 #elif V8_TARGET_ARCH_ARM 56 #elif V8_TARGET_ARCH_ARM
55 #include "src/crankshaft/arm/lithium-codegen-arm.h" // NOLINT 57 #include "src/crankshaft/arm/lithium-codegen-arm.h" // NOLINT
(...skipping 3455 matching lines...) Expand 10 before | Expand all | Expand 10 after
3511 ast_context_(NULL), 3513 ast_context_(NULL),
3512 break_scope_(NULL), 3514 break_scope_(NULL),
3513 inlined_count_(0), 3515 inlined_count_(0),
3514 globals_(10, info->zone()), 3516 globals_(10, info->zone()),
3515 osr_(new (info->zone()) HOsrBuilder(this)), 3517 osr_(new (info->zone()) HOsrBuilder(this)),
3516 bounds_(info->zone()) { 3518 bounds_(info->zone()) {
3517 // This is not initialized in the initializer list because the 3519 // This is not initialized in the initializer list because the
3518 // constructor for the initial state relies on function_state_ == NULL 3520 // constructor for the initial state relies on function_state_ == NULL
3519 // to know it's the initial state. 3521 // to know it's the initial state.
3520 function_state_ = &initial_function_state_; 3522 function_state_ = &initial_function_state_;
3521 InitializeAstVisitor(info->isolate()); 3523 InitializeAstVisitor(info->isolate()->stack_guard()->real_climit());
3522 if (top_info()->is_tracking_positions()) { 3524 if (top_info()->is_tracking_positions()) {
3523 SetSourcePosition(info->shared_info()->start_position()); 3525 SetSourcePosition(info->shared_info()->start_position());
3524 } 3526 }
3525 } 3527 }
3526 3528
3527 3529
3528 HBasicBlock* HOptimizedGraphBuilder::CreateJoin(HBasicBlock* first, 3530 HBasicBlock* HOptimizedGraphBuilder::CreateJoin(HBasicBlock* first,
3529 HBasicBlock* second, 3531 HBasicBlock* second,
3530 BailoutId join_id) { 3532 BailoutId join_id) {
3531 if (first == NULL) { 3533 if (first == NULL) {
(...skipping 9862 matching lines...) Expand 10 before | Expand all | Expand 10 after
13394 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13396 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13395 } 13397 }
13396 13398
13397 #ifdef DEBUG 13399 #ifdef DEBUG
13398 graph_->Verify(false); // No full verify. 13400 graph_->Verify(false); // No full verify.
13399 #endif 13401 #endif
13400 } 13402 }
13401 13403
13402 } // namespace internal 13404 } // namespace internal
13403 } // namespace v8 13405 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ast-loop-assignment-analyzer.cc ('k') | src/crankshaft/typing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698