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

Side by Side Diff: src/asmjs/asm-typer.cc

Issue 2369963002: [base] Remove PointersMatch, making a separate std::equals hashmap (Closed)
Patch Set: Created 4 years, 2 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/asmjs/asm-wasm-builder.cc » ('j') | src/profiler/heap-snapshot-generator.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/asmjs/asm-wasm-builder.cc » ('j') | src/profiler/heap-snapshot-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698