OLD | NEW |
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 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1226 // and for elements it uses {lookup_element_in_holder}. | 1226 // and for elements it uses {lookup_element_in_holder}. |
1227 // Upon reaching the end of prototype chain the control goes to {if_end}. | 1227 // Upon reaching the end of prototype chain the control goes to {if_end}. |
1228 // If it can't handle the case {receiver}/{key} case then the control goes | 1228 // If it can't handle the case {receiver}/{key} case then the control goes |
1229 // to {if_bailout}. | 1229 // to {if_bailout}. |
1230 void TryPrototypeChainLookup(Node* receiver, Node* key, | 1230 void TryPrototypeChainLookup(Node* receiver, Node* key, |
1231 const LookupInHolder& lookup_property_in_holder, | 1231 const LookupInHolder& lookup_property_in_holder, |
1232 const LookupInHolder& lookup_element_in_holder, | 1232 const LookupInHolder& lookup_element_in_holder, |
1233 Label* if_end, Label* if_bailout); | 1233 Label* if_end, Label* if_bailout); |
1234 | 1234 |
1235 // Instanceof helpers. | 1235 // Instanceof helpers. |
| 1236 // Returns true if {object} has {prototype} somewhere in it's prototype |
| 1237 // chain, otherwise false is returned. Might cause arbitrary side effects |
| 1238 // due to [[GetPrototypeOf]] invocations. |
| 1239 Node* HasInPrototypeChain(Node* context, Node* object, Node* prototype); |
1236 // ES6 section 7.3.19 OrdinaryHasInstance (C, O) | 1240 // ES6 section 7.3.19 OrdinaryHasInstance (C, O) |
1237 Node* OrdinaryHasInstance(Node* context, Node* callable, Node* object); | 1241 Node* OrdinaryHasInstance(Node* context, Node* callable, Node* object); |
1238 | 1242 |
1239 // Load type feedback vector from the stub caller's frame. | 1243 // Load type feedback vector from the stub caller's frame. |
1240 Node* LoadFeedbackVectorForStub(); | 1244 Node* LoadFeedbackVectorForStub(); |
1241 | 1245 |
1242 // Update the type feedback vector. | 1246 // Update the type feedback vector. |
1243 void UpdateFeedback(Node* feedback, Node* feedback_vector, Node* slot_id); | 1247 void UpdateFeedback(Node* feedback, Node* feedback_vector, Node* slot_id); |
1244 | 1248 |
1245 // Combine the new feedback with the existing_feedback. | 1249 // Combine the new feedback with the existing_feedback. |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 } | 1677 } |
1674 #else | 1678 #else |
1675 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1679 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1676 #endif | 1680 #endif |
1677 | 1681 |
1678 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1682 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1679 | 1683 |
1680 } // namespace internal | 1684 } // namespace internal |
1681 } // namespace v8 | 1685 } // namespace v8 |
1682 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1686 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |