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

Side by Side Diff: src/compiler/machine-operator.cc

Issue 1943323002: Reland of [turbofan] Restore basic write barrier elimination. (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/machine-operator.h ('k') | src/compiler/simplified-lowering.cc » ('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/machine-operator.h" 5 #include "src/compiler/machine-operator.h"
6 6
7 #include "src/base/lazy-instance.h" 7 #include "src/base/lazy-instance.h"
8 #include "src/compiler/opcodes.h" 8 #include "src/compiler/opcodes.h"
9 #include "src/compiler/operator.h" 9 #include "src/compiler/operator.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 std::ostream& operator<<(std::ostream& os, WriteBarrierKind kind) {
16 switch (kind) {
17 case kNoWriteBarrier:
18 return os << "NoWriteBarrier";
19 case kMapWriteBarrier:
20 return os << "MapWriteBarrier";
21 case kPointerWriteBarrier:
22 return os << "PointerWriteBarrier";
23 case kFullWriteBarrier:
24 return os << "FullWriteBarrier";
25 }
26 UNREACHABLE();
27 return os;
28 }
29
30
31 bool operator==(StoreRepresentation lhs, StoreRepresentation rhs) { 15 bool operator==(StoreRepresentation lhs, StoreRepresentation rhs) {
32 return lhs.representation() == rhs.representation() && 16 return lhs.representation() == rhs.representation() &&
33 lhs.write_barrier_kind() == rhs.write_barrier_kind(); 17 lhs.write_barrier_kind() == rhs.write_barrier_kind();
34 } 18 }
35 19
36 20
37 bool operator!=(StoreRepresentation lhs, StoreRepresentation rhs) { 21 bool operator!=(StoreRepresentation lhs, StoreRepresentation rhs) {
38 return !(lhs == rhs); 22 return !(lhs == rhs);
39 } 23 }
40 24
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 } 631 }
648 ATOMIC_TYPE_LIST(LOAD) 632 ATOMIC_TYPE_LIST(LOAD)
649 #undef LOAD 633 #undef LOAD
650 UNREACHABLE(); 634 UNREACHABLE();
651 return nullptr; 635 return nullptr;
652 } 636 }
653 637
654 } // namespace compiler 638 } // namespace compiler
655 } // namespace internal 639 } // namespace internal
656 } // namespace v8 640 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698