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

Side by Side Diff: src/interpreter/constant-array-builder.cc

Issue 2369963002: [base] Remove PointersMatch, making a separate std::equals hashmap (Closed)
Patch Set: Fix the other simulators 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 | « src/heap/spaces.cc ('k') | src/isolate.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/interpreter/constant-array-builder.h" 5 #include "src/interpreter/constant-array-builder.h"
6 6
7 #include <functional> 7 #include <functional>
8 #include <set> 8 #include <set>
9 9
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 STATIC_CONST_MEMBER_DEFINITION const size_t ConstantArrayBuilder::k8BitCapacity; 68 STATIC_CONST_MEMBER_DEFINITION const size_t ConstantArrayBuilder::k8BitCapacity;
69 STATIC_CONST_MEMBER_DEFINITION const size_t 69 STATIC_CONST_MEMBER_DEFINITION const size_t
70 ConstantArrayBuilder::k16BitCapacity; 70 ConstantArrayBuilder::k16BitCapacity;
71 STATIC_CONST_MEMBER_DEFINITION const size_t 71 STATIC_CONST_MEMBER_DEFINITION const size_t
72 ConstantArrayBuilder::k32BitCapacity; 72 ConstantArrayBuilder::k32BitCapacity;
73 73
74 ConstantArrayBuilder::ConstantArrayBuilder(Zone* zone, 74 ConstantArrayBuilder::ConstantArrayBuilder(Zone* zone,
75 Handle<Object> the_hole_value) 75 Handle<Object> the_hole_value)
76 : constants_map_(std::equal_to<Address>(), 16, ZoneAllocationPolicy(zone)), 76 : constants_map_(16, std::equal_to<Address>(), ZoneAllocationPolicy(zone)),
77 smi_map_(zone), 77 smi_map_(zone),
78 smi_pairs_(zone), 78 smi_pairs_(zone),
79 zone_(zone), 79 zone_(zone),
80 the_hole_value_(the_hole_value) { 80 the_hole_value_(the_hole_value) {
81 idx_slice_[0] = 81 idx_slice_[0] =
82 new (zone) ConstantArraySlice(zone, 0, k8BitCapacity, OperandSize::kByte); 82 new (zone) ConstantArraySlice(zone, 0, k8BitCapacity, OperandSize::kByte);
83 idx_slice_[1] = new (zone) ConstantArraySlice( 83 idx_slice_[1] = new (zone) ConstantArraySlice(
84 zone, k8BitCapacity, k16BitCapacity, OperandSize::kShort); 84 zone, k8BitCapacity, k16BitCapacity, OperandSize::kShort);
85 idx_slice_[2] = new (zone) ConstantArraySlice( 85 idx_slice_[2] = new (zone) ConstantArraySlice(
86 zone, k8BitCapacity + k16BitCapacity, k32BitCapacity, OperandSize::kQuad); 86 zone, k8BitCapacity + k16BitCapacity, k32BitCapacity, OperandSize::kQuad);
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 return index; 245 return index;
246 } 246 }
247 247
248 void ConstantArrayBuilder::DiscardReservedEntry(OperandSize operand_size) { 248 void ConstantArrayBuilder::DiscardReservedEntry(OperandSize operand_size) {
249 OperandSizeToSlice(operand_size)->Unreserve(); 249 OperandSizeToSlice(operand_size)->Unreserve();
250 } 250 }
251 251
252 } // namespace interpreter 252 } // namespace interpreter
253 } // namespace internal 253 } // namespace internal
254 } // namespace v8 254 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/spaces.cc ('k') | src/isolate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698