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

Side by Side Diff: src/ic/ic-state.cc

Issue 877753007: Reland "Initial switch to Chromium-style CHECK_* and DCHECK_* macros.". (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: VS201x now happy? Created 5 years, 10 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/ic/ic.cc ('k') | src/ic/x64/stub-cache-x64.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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/ic/ic.h" 7 #include "src/ic/ic.h"
8 #include "src/ic/ic-state.h" 8 #include "src/ic/ic-state.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 31
32 std::ostream& operator<<(std::ostream& os, const CallICState& s) { 32 std::ostream& operator<<(std::ostream& os, const CallICState& s) {
33 return os << "(args(" << s.arg_count() << "), " 33 return os << "(args(" << s.arg_count() << "), "
34 << (s.call_type() == CallICState::METHOD ? "METHOD" : "FUNCTION") 34 << (s.call_type() == CallICState::METHOD ? "METHOD" : "FUNCTION")
35 << ", "; 35 << ", ";
36 } 36 }
37 37
38 38
39 // static
40 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::FIRST_TOKEN;
41
42
43 // static
44 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::LAST_TOKEN;
45
46
39 BinaryOpICState::BinaryOpICState(Isolate* isolate, ExtraICState extra_ic_state) 47 BinaryOpICState::BinaryOpICState(Isolate* isolate, ExtraICState extra_ic_state)
40 : isolate_(isolate) { 48 : isolate_(isolate) {
41 op_ = 49 op_ =
42 static_cast<Token::Value>(FIRST_TOKEN + OpField::decode(extra_ic_state)); 50 static_cast<Token::Value>(FIRST_TOKEN + OpField::decode(extra_ic_state));
43 mode_ = OverwriteModeField::decode(extra_ic_state); 51 mode_ = OverwriteModeField::decode(extra_ic_state);
44 fixed_right_arg_ = 52 fixed_right_arg_ =
45 Maybe<int>(HasFixedRightArgField::decode(extra_ic_state), 53 Maybe<int>(HasFixedRightArgField::decode(extra_ic_state),
46 1 << FixedRightArgValueField::decode(extra_ic_state)); 54 1 << FixedRightArgValueField::decode(extra_ic_state));
47 left_kind_ = LeftKindField::decode(extra_ic_state); 55 left_kind_ = LeftKindField::decode(extra_ic_state);
48 if (fixed_right_arg_.has_value) { 56 if (fixed_right_arg_.has_value) {
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 case UNIQUE_NAME: 614 case UNIQUE_NAME:
607 case OBJECT: 615 case OBJECT:
608 case GENERIC: 616 case GENERIC:
609 return GENERIC; 617 return GENERIC;
610 } 618 }
611 UNREACHABLE(); 619 UNREACHABLE();
612 return GENERIC; // Make the compiler happy. 620 return GENERIC; // Make the compiler happy.
613 } 621 }
614 } 622 }
615 } // namespace v8::internal 623 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/ic/x64/stub-cache-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698