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/ic/ic-state.cc

Issue 1436493002: [builtins] Introduce specialized Call/CallFunction builtins. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/mips/builtins-mips.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/ic/ic-state.h" 5 #include "src/ic/ic-state.h"
6 6
7 #include "src/ic/ic.h" 7 #include "src/ic/ic.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
11 11
12 // static 12 // static
13 void ICUtility::Clear(Isolate* isolate, Address address, 13 void ICUtility::Clear(Isolate* isolate, Address address,
14 Address constant_pool) { 14 Address constant_pool) {
15 IC::Clear(isolate, address, constant_pool); 15 IC::Clear(isolate, address, constant_pool);
16 } 16 }
17 17
18 18
19 ExtraICState CallICState::GetExtraICState() const {
20 ExtraICState extra_ic_state = ArgcBits::encode(argc_);
21 return extra_ic_state;
22 }
23
24
25 std::ostream& operator<<(std::ostream& os, const CallICState& s) { 19 std::ostream& operator<<(std::ostream& os, const CallICState& s) {
26 return os << "(args(" << s.arg_count() << "), " 20 return os << "(args(" << s.argc() << "), " << s.convert_mode() << ", ";
27 << ", ";
28 } 21 }
29 22
30 23
31 // static 24 // static
32 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::FIRST_TOKEN; 25 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::FIRST_TOKEN;
33 26
34 27
35 // static 28 // static
36 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::LAST_TOKEN; 29 STATIC_CONST_MEMBER_DEFINITION const int BinaryOpICState::LAST_TOKEN;
37 30
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 case OBJECT: 501 case OBJECT:
509 case GENERIC: 502 case GENERIC:
510 return GENERIC; 503 return GENERIC;
511 } 504 }
512 UNREACHABLE(); 505 UNREACHABLE();
513 return GENERIC; // Make the compiler happy. 506 return GENERIC; // Make the compiler happy.
514 } 507 }
515 508
516 } // namespace internal 509 } // namespace internal
517 } // namespace v8 510 } // namespace v8
OLDNEW
« no previous file with comments | « src/ic/ic-state.h ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698