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

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

Issue 754303003: Flesh out vector ic state query and set mechanisms. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Created 6 years 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-state.h ('k') | src/ic/x64/ic-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 {
11 namespace internal { 11 namespace internal {
12 12
13 // static 13 // static
14 void ICUtility::Clear(Isolate* isolate, Address address, 14 void ICUtility::Clear(Isolate* isolate, Address address,
15 ConstantPoolArray* constant_pool) { 15 ConstantPoolArray* constant_pool) {
16 IC::Clear(isolate, address, constant_pool); 16 IC::Clear(isolate, address, constant_pool);
17 } 17 }
18 18
19 19
20 // static
21 template <class Nexus>
22 void ICUtility::Clear(Isolate* isolate, Code::Kind kind, Code* host,
23 Nexus* nexus) {
24 IC::Clear<Nexus>(isolate, kind, host, nexus);
25 }
26
27
28 // Force instantiation of template instances for vector-based IC clearing.
29 template void ICUtility::Clear<CallICNexus>(Isolate*, Code::Kind, Code*,
30 CallICNexus*);
31
32
33 CallICState::CallICState(ExtraICState extra_ic_state) 20 CallICState::CallICState(ExtraICState extra_ic_state)
34 : argc_(ArgcBits::decode(extra_ic_state)), 21 : argc_(ArgcBits::decode(extra_ic_state)),
35 call_type_(CallTypeBits::decode(extra_ic_state)) {} 22 call_type_(CallTypeBits::decode(extra_ic_state)) {}
36 23
37 24
38 ExtraICState CallICState::GetExtraICState() const { 25 ExtraICState CallICState::GetExtraICState() const {
39 ExtraICState extra_ic_state = 26 ExtraICState extra_ic_state =
40 ArgcBits::encode(argc_) | CallTypeBits::encode(call_type_); 27 ArgcBits::encode(argc_) | CallTypeBits::encode(call_type_);
41 return extra_ic_state; 28 return extra_ic_state;
42 } 29 }
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 case UNIQUE_NAME: 606 case UNIQUE_NAME:
620 case OBJECT: 607 case OBJECT:
621 case GENERIC: 608 case GENERIC:
622 return GENERIC; 609 return GENERIC;
623 } 610 }
624 UNREACHABLE(); 611 UNREACHABLE();
625 return GENERIC; // Make the compiler happy. 612 return GENERIC; // Make the compiler happy.
626 } 613 }
627 } 614 }
628 } // namespace v8::internal 615 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic/ic-state.h ('k') | src/ic/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698