| 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 730 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  741   compiler::Node* GetFixedAarrayAllocationSize(compiler::Node* element_count, |  741   compiler::Node* GetFixedAarrayAllocationSize(compiler::Node* element_count, | 
|  742                                                ElementsKind kind, |  742                                                ElementsKind kind, | 
|  743                                                ParameterMode mode) { |  743                                                ParameterMode mode) { | 
|  744     return ElementOffsetFromIndex(element_count, kind, mode, |  744     return ElementOffsetFromIndex(element_count, kind, mode, | 
|  745                                   FixedArray::kHeaderSize); |  745                                   FixedArray::kHeaderSize); | 
|  746   } |  746   } | 
|  747  |  747  | 
|  748  private: |  748  private: | 
|  749   enum ElementSupport { kOnlyProperties, kSupportElements }; |  749   enum ElementSupport { kOnlyProperties, kSupportElements }; | 
|  750  |  750  | 
 |  751   void DescriptorLookupLinear(compiler::Node* unique_name, | 
 |  752                               compiler::Node* descriptors, compiler::Node* nof, | 
 |  753                               Label* if_found, Variable* var_name_index, | 
 |  754                               Label* if_not_found); | 
 |  755  | 
|  751   void HandleLoadICHandlerCase( |  756   void HandleLoadICHandlerCase( | 
|  752       const LoadICParameters* p, compiler::Node* handler, Label* miss, |  757       const LoadICParameters* p, compiler::Node* handler, Label* miss, | 
|  753       ElementSupport support_elements = kOnlyProperties); |  758       ElementSupport support_elements = kOnlyProperties); | 
|  754   compiler::Node* TryToIntptr(compiler::Node* key, Label* miss); |  759   compiler::Node* TryToIntptr(compiler::Node* key, Label* miss); | 
|  755   void EmitFastElementsBoundsCheck(compiler::Node* object, |  760   void EmitFastElementsBoundsCheck(compiler::Node* object, | 
|  756                                    compiler::Node* elements, |  761                                    compiler::Node* elements, | 
|  757                                    compiler::Node* intptr_index, |  762                                    compiler::Node* intptr_index, | 
|  758                                    compiler::Node* is_jsarray_condition, |  763                                    compiler::Node* is_jsarray_condition, | 
|  759                                    Label* miss); |  764                                    Label* miss); | 
|  760   void EmitElementLoad(compiler::Node* object, compiler::Node* elements, |  765   void EmitElementLoad(compiler::Node* object, compiler::Node* elements, | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  797                                            Label* bailout); |  802                                            Label* bailout); | 
|  798  |  803  | 
|  799   static const int kElementLoopUnrollThreshold = 8; |  804   static const int kElementLoopUnrollThreshold = 8; | 
|  800 }; |  805 }; | 
|  801  |  806  | 
|  802 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |  807 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 
|  803  |  808  | 
|  804 }  // namespace internal |  809 }  // namespace internal | 
|  805 }  // namespace v8 |  810 }  // namespace v8 | 
|  806 #endif  // V8_CODE_STUB_ASSEMBLER_H_ |  811 #endif  // V8_CODE_STUB_ASSEMBLER_H_ | 
| OLD | NEW |