| 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 21 matching lines...) Expand all Loading... |
| 32 V(FixedCOWArrayMap, FixedCOWArrayMap) \ | 32 V(FixedCOWArrayMap, FixedCOWArrayMap) \ |
| 33 V(FixedDoubleArrayMap, FixedDoubleArrayMap) \ | 33 V(FixedDoubleArrayMap, FixedDoubleArrayMap) \ |
| 34 V(FunctionTemplateInfoMap, FunctionTemplateInfoMap) \ | 34 V(FunctionTemplateInfoMap, FunctionTemplateInfoMap) \ |
| 35 V(HeapNumberMap, HeapNumberMap) \ | 35 V(HeapNumberMap, HeapNumberMap) \ |
| 36 V(MinusZeroValue, MinusZero) \ | 36 V(MinusZeroValue, MinusZero) \ |
| 37 V(NanValue, Nan) \ | 37 V(NanValue, Nan) \ |
| 38 V(NullValue, Null) \ | 38 V(NullValue, Null) \ |
| 39 V(SymbolMap, SymbolMap) \ | 39 V(SymbolMap, SymbolMap) \ |
| 40 V(TheHoleValue, TheHole) \ | 40 V(TheHoleValue, TheHole) \ |
| 41 V(TrueValue, True) \ | 41 V(TrueValue, True) \ |
| 42 V(Tuple2Map, Tuple2Map) \ |
| 43 V(Tuple3Map, Tuple3Map) \ |
| 42 V(UndefinedValue, Undefined) | 44 V(UndefinedValue, Undefined) |
| 43 | 45 |
| 44 // Provides JavaScript-specific "macro-assembler" functionality on top of the | 46 // Provides JavaScript-specific "macro-assembler" functionality on top of the |
| 45 // CodeAssembler. By factoring the JavaScript-isms out of the CodeAssembler, | 47 // CodeAssembler. By factoring the JavaScript-isms out of the CodeAssembler, |
| 46 // it's possible to add JavaScript-specific useful CodeAssembler "macros" | 48 // it's possible to add JavaScript-specific useful CodeAssembler "macros" |
| 47 // without modifying files in the compiler directory (and requiring a review | 49 // without modifying files in the compiler directory (and requiring a review |
| 48 // from a compiler directory OWNER). | 50 // from a compiler directory OWNER). |
| 49 class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler { | 51 class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler { |
| 50 public: | 52 public: |
| 51 typedef compiler::Node Node; | 53 typedef compiler::Node Node; |
| (...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1109 } | 1111 } |
| 1110 #else | 1112 #else |
| 1111 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1113 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
| 1112 #endif | 1114 #endif |
| 1113 | 1115 |
| 1114 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1116 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 1115 | 1117 |
| 1116 } // namespace internal | 1118 } // namespace internal |
| 1117 } // namespace v8 | 1119 } // namespace v8 |
| 1118 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1120 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |