OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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/asmjs/asm-typer.h" | 5 #include "src/asmjs/asm-typer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 AsmTyper::AsmTyper(Isolate* isolate, Zone* zone, Script* script, | 124 AsmTyper::AsmTyper(Isolate* isolate, Zone* zone, Script* script, |
125 FunctionLiteral* root) | 125 FunctionLiteral* root) |
126 : isolate_(isolate), | 126 : isolate_(isolate), |
127 zone_(zone), | 127 zone_(zone), |
128 script_(script), | 128 script_(script), |
129 root_(root), | 129 root_(root), |
130 forward_definitions_(zone), | 130 forward_definitions_(zone), |
131 stdlib_types_(zone), | 131 stdlib_types_(zone), |
132 stdlib_math_types_(zone), | 132 stdlib_math_types_(zone), |
133 module_info_(VariableInfo::ForSpecialSymbol(zone_, kModule)), | 133 module_info_(VariableInfo::ForSpecialSymbol(zone_, kModule)), |
134 global_scope_(ZoneHashMap::PointersMatch, | 134 global_scope_(ZoneHashMap::kDefaultHashMapCapacity, |
135 ZoneHashMap::kDefaultHashMapCapacity, | |
136 ZoneAllocationPolicy(zone)), | 135 ZoneAllocationPolicy(zone)), |
137 local_scope_(ZoneHashMap::PointersMatch, | 136 local_scope_(ZoneHashMap::kDefaultHashMapCapacity, |
138 ZoneHashMap::kDefaultHashMapCapacity, | |
139 ZoneAllocationPolicy(zone)), | 137 ZoneAllocationPolicy(zone)), |
140 stack_limit_(isolate->stack_guard()->real_climit()), | 138 stack_limit_(isolate->stack_guard()->real_climit()), |
141 node_types_(zone_), | 139 node_types_(zone_), |
142 fround_type_(AsmType::FroundType(zone_)), | 140 fround_type_(AsmType::FroundType(zone_)), |
143 ffi_type_(AsmType::FFIType(zone_)) { | 141 ffi_type_(AsmType::FFIType(zone_)) { |
144 InitializeStdlib(); | 142 InitializeStdlib(); |
145 } | 143 } |
146 | 144 |
147 namespace { | 145 namespace { |
148 bool ValidAsmIdentifier(Handle<String> name) { | 146 bool ValidAsmIdentifier(Handle<String> name) { |
(...skipping 2616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2765 return true; | 2763 return true; |
2766 } | 2764 } |
2767 | 2765 |
2768 *error_message = typer.error_message(); | 2766 *error_message = typer.error_message(); |
2769 return false; | 2767 return false; |
2770 } | 2768 } |
2771 | 2769 |
2772 } // namespace wasm | 2770 } // namespace wasm |
2773 } // namespace internal | 2771 } // namespace internal |
2774 } // namespace v8 | 2772 } // namespace v8 |
OLD | NEW |