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

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

Issue 1938993002: [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
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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 } 459 }
476 ATOMIC_TYPE_LIST(LOAD) 460 ATOMIC_TYPE_LIST(LOAD)
477 #undef LOAD 461 #undef LOAD
478 UNREACHABLE(); 462 UNREACHABLE();
479 return nullptr; 463 return nullptr;
480 } 464 }
481 465
482 } // namespace compiler 466 } // namespace compiler
483 } // namespace internal 467 } // namespace internal
484 } // namespace v8 468 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698