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

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

Issue 1321223002: [turbofan] Remove obsolete unique.h includes in TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-includes-isolate-2
Patch Set: Rebased. Created 5 years, 3 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/js-operator.h ('k') | src/compiler/js-type-feedback-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/js-operator.h" 5 #include "src/compiler/js-operator.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "src/base/lazy-instance.h" 9 #include "src/base/lazy-instance.h"
10 #include "src/compiler/opcodes.h" 10 #include "src/compiler/opcodes.h"
11 #include "src/compiler/operator.h" 11 #include "src/compiler/operator.h"
12 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker!
13 #include "src/type-feedback-vector-inl.h"
12 14
13 namespace v8 { 15 namespace v8 {
14 namespace internal { 16 namespace internal {
15 namespace compiler { 17 namespace compiler {
16 18
19 VectorSlotPair::VectorSlotPair() : slot_(FeedbackVectorICSlot::Invalid()) {}
20
21
22 int VectorSlotPair::index() const {
23 return vector_.is_null() ? -1 : vector_->GetIndex(slot_);
24 }
25
26
17 bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs) { 27 bool operator==(VectorSlotPair const& lhs, VectorSlotPair const& rhs) {
18 return lhs.slot() == rhs.slot() && 28 return lhs.slot() == rhs.slot() &&
19 lhs.vector().location() == rhs.vector().location(); 29 lhs.vector().location() == rhs.vector().location();
20 } 30 }
21 31
22 32
23 bool operator!=(VectorSlotPair const& lhs, VectorSlotPair const& rhs) { 33 bool operator!=(VectorSlotPair const& lhs, VectorSlotPair const& rhs) {
24 return !(lhs == rhs); 34 return !(lhs == rhs);
25 } 35 }
26 36
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 Handle<String>::hash>( // -- 740 Handle<String>::hash>( // --
731 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode 741 IrOpcode::kJSCreateCatchContext, Operator::kNoProperties, // opcode
732 "JSCreateCatchContext", // name 742 "JSCreateCatchContext", // name
733 2, 1, 1, 1, 1, 2, // counts 743 2, 1, 1, 1, 1, 2, // counts
734 name); // parameter 744 name); // parameter
735 } 745 }
736 746
737 } // namespace compiler 747 } // namespace compiler
738 } // namespace internal 748 } // namespace internal
739 } // namespace v8 749 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-type-feedback-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698