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

Side by Side Diff: src/compiler/memory-optimizer.cc

Issue 2203693002: [turbofan] Introduce initial support for TypedArrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@5254
Patch Set: Fix Retain Created 4 years, 4 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/machine-operator.cc ('k') | src/compiler/opcodes.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 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/compiler/memory-optimizer.h" 5 #include "src/compiler/memory-optimizer.h"
6 6
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 return VisitStoreElement(node, state); 85 return VisitStoreElement(node, state);
86 case IrOpcode::kStoreField: 86 case IrOpcode::kStoreField:
87 return VisitStoreField(node, state); 87 return VisitStoreField(node, state);
88 case IrOpcode::kCheckedLoad: 88 case IrOpcode::kCheckedLoad:
89 case IrOpcode::kCheckedStore: 89 case IrOpcode::kCheckedStore:
90 case IrOpcode::kDeoptimizeIf: 90 case IrOpcode::kDeoptimizeIf:
91 case IrOpcode::kDeoptimizeUnless: 91 case IrOpcode::kDeoptimizeUnless:
92 case IrOpcode::kIfException: 92 case IrOpcode::kIfException:
93 case IrOpcode::kLoad: 93 case IrOpcode::kLoad:
94 case IrOpcode::kStore: 94 case IrOpcode::kStore:
95 case IrOpcode::kRetain:
96 case IrOpcode::kUnsafePointerAdd:
95 return VisitOtherEffect(node, state); 97 return VisitOtherEffect(node, state);
96 default: 98 default:
97 break; 99 break;
98 } 100 }
99 DCHECK_EQ(0, node->op()->EffectOutputCount()); 101 DCHECK_EQ(0, node->op()->EffectOutputCount());
100 } 102 }
101 103
102 void MemoryOptimizer::VisitAllocate(Node* node, AllocationState const* state) { 104 void MemoryOptimizer::VisitAllocate(Node* node, AllocationState const* state) {
103 DCHECK_EQ(IrOpcode::kAllocate, node->opcode()); 105 DCHECK_EQ(IrOpcode::kAllocate, node->opcode());
104 Node* value; 106 Node* value;
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 return jsgraph()->common(); 494 return jsgraph()->common();
493 } 495 }
494 496
495 MachineOperatorBuilder* MemoryOptimizer::machine() const { 497 MachineOperatorBuilder* MemoryOptimizer::machine() const {
496 return jsgraph()->machine(); 498 return jsgraph()->machine();
497 } 499 }
498 500
499 } // namespace compiler 501 } // namespace compiler
500 } // namespace internal 502 } // namespace internal
501 } // namespace v8 503 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.cc ('k') | src/compiler/opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698