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

Side by Side Diff: src/compiler/common-node-cache.cc

Issue 1925073002: Revert of [turbofan] Run everything after representation selection concurrently. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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/compiler/change-lowering.cc ('k') | src/compiler/instruction.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/common-node-cache.h" 5 #include "src/compiler/common-node-cache.h"
6 6
7 #include "src/assembler.h" 7 #include "src/assembler.h"
8 #include "src/compiler/node.h" 8 #include "src/compiler/node.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 namespace compiler { 12 namespace compiler {
13 13
14 Node** CommonNodeCache::FindExternalConstant(ExternalReference value) { 14 Node** CommonNodeCache::FindExternalConstant(ExternalReference value) {
15 return external_constants_.Find(zone(), bit_cast<intptr_t>(value.address())); 15 return external_constants_.Find(zone(), bit_cast<intptr_t>(value.address()));
16 } 16 }
17 17
18 18
19 Node** CommonNodeCache::FindHeapConstant(Handle<HeapObject> value) { 19 Node** CommonNodeCache::FindHeapConstant(Handle<HeapObject> value) {
20 return heap_constants_.Find(zone(), bit_cast<intptr_t>(value.address())); 20 return heap_constants_.Find(zone(), bit_cast<intptr_t>(value.location()));
21 } 21 }
22 22
23 23
24 void CommonNodeCache::GetCachedNodes(ZoneVector<Node*>* nodes) { 24 void CommonNodeCache::GetCachedNodes(ZoneVector<Node*>* nodes) {
25 int32_constants_.GetCachedNodes(nodes); 25 int32_constants_.GetCachedNodes(nodes);
26 int64_constants_.GetCachedNodes(nodes); 26 int64_constants_.GetCachedNodes(nodes);
27 float32_constants_.GetCachedNodes(nodes); 27 float32_constants_.GetCachedNodes(nodes);
28 float64_constants_.GetCachedNodes(nodes); 28 float64_constants_.GetCachedNodes(nodes);
29 external_constants_.GetCachedNodes(nodes); 29 external_constants_.GetCachedNodes(nodes);
30 number_constants_.GetCachedNodes(nodes); 30 number_constants_.GetCachedNodes(nodes);
31 heap_constants_.GetCachedNodes(nodes); 31 heap_constants_.GetCachedNodes(nodes);
32 relocatable_int32_constants_.GetCachedNodes(nodes); 32 relocatable_int32_constants_.GetCachedNodes(nodes);
33 relocatable_int64_constants_.GetCachedNodes(nodes); 33 relocatable_int64_constants_.GetCachedNodes(nodes);
34 } 34 }
35 35
36 } // namespace compiler 36 } // namespace compiler
37 } // namespace internal 37 } // namespace internal
38 } // namespace v8 38 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/change-lowering.cc ('k') | src/compiler/instruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698