| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 ffi_use_signatures_(zone), | 131 ffi_use_signatures_(zone), |
| 132 stdlib_types_(zone), | 132 stdlib_types_(zone), |
| 133 stdlib_math_types_(zone), | 133 stdlib_math_types_(zone), |
| 134 module_info_(VariableInfo::ForSpecialSymbol(zone_, kModule)), | 134 module_info_(VariableInfo::ForSpecialSymbol(zone_, kModule)), |
| 135 global_scope_(ZoneHashMap::PointersMatch, | 135 global_scope_(ZoneHashMap::kDefaultHashMapCapacity, |
| 136 ZoneHashMap::kDefaultHashMapCapacity, | |
| 137 ZoneAllocationPolicy(zone)), | 136 ZoneAllocationPolicy(zone)), |
| 138 local_scope_(ZoneHashMap::PointersMatch, | 137 local_scope_(ZoneHashMap::kDefaultHashMapCapacity, |
| 139 ZoneHashMap::kDefaultHashMapCapacity, | |
| 140 ZoneAllocationPolicy(zone)), | 138 ZoneAllocationPolicy(zone)), |
| 141 stack_limit_(isolate->stack_guard()->real_climit()), | 139 stack_limit_(isolate->stack_guard()->real_climit()), |
| 142 node_types_(zone_), | 140 node_types_(zone_), |
| 143 fround_type_(AsmType::FroundType(zone_)), | 141 fround_type_(AsmType::FroundType(zone_)), |
| 144 ffi_type_(AsmType::FFIType(zone_)) { | 142 ffi_type_(AsmType::FFIType(zone_)) { |
| 145 InitializeStdlib(); | 143 InitializeStdlib(); |
| 146 } | 144 } |
| 147 | 145 |
| 148 namespace { | 146 namespace { |
| 149 bool ValidAsmIdentifier(Handle<String> name) { | 147 bool ValidAsmIdentifier(Handle<String> name) { |
| (...skipping 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2785 return true; | 2783 return true; |
| 2786 } | 2784 } |
| 2787 | 2785 |
| 2788 *error_message = typer.error_message(); | 2786 *error_message = typer.error_message(); |
| 2789 return false; | 2787 return false; |
| 2790 } | 2788 } |
| 2791 | 2789 |
| 2792 } // namespace wasm | 2790 } // namespace wasm |
| 2793 } // namespace internal | 2791 } // namespace internal |
| 2794 } // namespace v8 | 2792 } // namespace v8 |
| OLD | NEW |