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

Side by Side Diff: src/code-stub-assembler.h

Issue 2435283002: [stubs] Add IsCallableMap predicate to CSA (Closed)
Patch Set: Remove unused variable Created 4 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/builtins/builtins-regexp.cc ('k') | src/code-stub-assembler.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #ifndef V8_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 // instance type. Returns {value}'s map. 588 // instance type. Returns {value}'s map.
589 compiler::Node* ThrowIfNotInstanceType(compiler::Node* context, 589 compiler::Node* ThrowIfNotInstanceType(compiler::Node* context,
590 compiler::Node* value, 590 compiler::Node* value,
591 InstanceType instance_type, 591 InstanceType instance_type,
592 char const* method_name); 592 char const* method_name);
593 593
594 // Type checks. 594 // Type checks.
595 compiler::Node* IsStringInstanceType(compiler::Node* instance_type); 595 compiler::Node* IsStringInstanceType(compiler::Node* instance_type);
596 compiler::Node* IsJSReceiverInstanceType(compiler::Node* instance_type); 596 compiler::Node* IsJSReceiverInstanceType(compiler::Node* instance_type);
597 597
598 compiler::Node* IsCallableMap(compiler::Node* map);
599
598 // String helpers. 600 // String helpers.
599 // Load a character from a String (might flatten a ConsString). 601 // Load a character from a String (might flatten a ConsString).
600 compiler::Node* StringCharCodeAt(compiler::Node* string, 602 compiler::Node* StringCharCodeAt(compiler::Node* string,
601 compiler::Node* smi_index); 603 compiler::Node* smi_index);
602 // Return the single character string with only {code}. 604 // Return the single character string with only {code}.
603 compiler::Node* StringFromCharCode(compiler::Node* code); 605 compiler::Node* StringFromCharCode(compiler::Node* code);
604 // Return a new string object which holds a substring containing the range 606 // Return a new string object which holds a substring containing the range
605 // [from,to[ of string. |from| and |to| are expected to be tagged. 607 // [from,to[ of string. |from| and |to| are expected to be tagged.
606 compiler::Node* SubString(compiler::Node* context, compiler::Node* string, 608 compiler::Node* SubString(compiler::Node* context, compiler::Node* string,
607 compiler::Node* from, compiler::Node* to); 609 compiler::Node* from, compiler::Node* to);
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 static const int kElementLoopUnrollThreshold = 8; 1125 static const int kElementLoopUnrollThreshold = 8;
1124 }; 1126 };
1125 1127
1126 #define CSA_ASSERT(x) Assert((x), #x, __FILE__, __LINE__) 1128 #define CSA_ASSERT(x) Assert((x), #x, __FILE__, __LINE__)
1127 1129
1128 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); 1130 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags);
1129 1131
1130 } // namespace internal 1132 } // namespace internal
1131 } // namespace v8 1133 } // namespace v8
1132 #endif // V8_CODE_STUB_ASSEMBLER_H_ 1134 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-regexp.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698