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

Side by Side Diff: src/asmjs/asm-wasm-builder.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 | « no previous file | src/ast/ast.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/v8.h" 5 #include "src/v8.h"
6 6
7 // Required to get M_E etc. in MSVC. 7 // Required to get M_E etc. in MSVC.
8 #if defined(_WIN32) 8 #if defined(_WIN32)
9 #define _USE_MATH_DEFINES 9 #define _USE_MATH_DEFINES
10 #endif 10 #endif
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 typer_(typer), 61 typer_(typer),
62 breakable_blocks_(zone), 62 breakable_blocks_(zone),
63 foreign_variables_(zone), 63 foreign_variables_(zone),
64 init_function_index_(0), 64 init_function_index_(0),
65 foreign_init_function_index_(0), 65 foreign_init_function_index_(0),
66 next_table_index_(0), 66 next_table_index_(0),
67 function_tables_(base::HashMap::PointersMatch, 67 function_tables_(base::HashMap::PointersMatch,
68 ZoneHashMap::kDefaultHashMapCapacity, 68 ZoneHashMap::kDefaultHashMapCapacity,
69 ZoneAllocationPolicy(zone)), 69 ZoneAllocationPolicy(zone)),
70 imported_function_table_(this) { 70 imported_function_table_(this) {
71 InitializeAstVisitor(isolate); 71 InitializeAstVisitor(isolate->stack_guard()->real_climit());
72 } 72 }
73 73
74 void InitializeInitFunction() { 74 void InitializeInitFunction() {
75 init_function_index_ = builder_->AddFunction(); 75 init_function_index_ = builder_->AddFunction();
76 FunctionSig::Builder b(zone(), 0, 0); 76 FunctionSig::Builder b(zone(), 0, 0);
77 current_function_builder_ = builder_->FunctionAt(init_function_index_); 77 current_function_builder_ = builder_->FunctionAt(init_function_index_);
78 current_function_builder_->SetSignature(b.Build()); 78 current_function_builder_->SetSignature(b.Build());
79 builder_->MarkStartFunction(init_function_index_); 79 builder_->MarkStartFunction(init_function_index_);
80 current_function_builder_ = nullptr; 80 current_function_builder_ = nullptr;
81 } 81 }
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after
1788 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, typer_); 1788 AsmWasmBuilderImpl impl(isolate_, zone_, literal_, typer_);
1789 impl.Build(); 1789 impl.Build();
1790 *foreign_args = impl.GetForeignArgs(); 1790 *foreign_args = impl.GetForeignArgs();
1791 ZoneBuffer* buffer = new (zone_) ZoneBuffer(zone_); 1791 ZoneBuffer* buffer = new (zone_) ZoneBuffer(zone_);
1792 impl.builder_->WriteTo(*buffer); 1792 impl.builder_->WriteTo(*buffer);
1793 return buffer; 1793 return buffer;
1794 } 1794 }
1795 } // namespace wasm 1795 } // namespace wasm
1796 } // namespace internal 1796 } // namespace internal
1797 } // namespace v8 1797 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/ast/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698