| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_FACTORY_H_ | 5 #ifndef V8_CODE_FACTORY_H_ |
| 6 #define V8_CODE_FACTORY_H_ | 6 #define V8_CODE_FACTORY_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 87 |
| 88 static Callable Typeof(Isolate* isolate); | 88 static Callable Typeof(Isolate* isolate); |
| 89 | 89 |
| 90 static Callable FastCloneRegExp(Isolate* isolate); | 90 static Callable FastCloneRegExp(Isolate* isolate); |
| 91 static Callable FastCloneShallowArray(Isolate* isolate); | 91 static Callable FastCloneShallowArray(Isolate* isolate); |
| 92 static Callable FastCloneShallowObject(Isolate* isolate, int length); | 92 static Callable FastCloneShallowObject(Isolate* isolate, int length); |
| 93 | 93 |
| 94 static Callable FastNewContext(Isolate* isolate, int slot_count); | 94 static Callable FastNewContext(Isolate* isolate, int slot_count); |
| 95 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode, | 95 static Callable FastNewClosure(Isolate* isolate, LanguageMode language_mode, |
| 96 FunctionKind kind); | 96 FunctionKind kind); |
| 97 static Callable FastNewRestParameter(Isolate* isolate); |
| 97 | 98 |
| 98 static Callable ArgumentsAccess(Isolate* isolate, bool is_unmapped_arguments, | 99 static Callable ArgumentsAccess(Isolate* isolate, bool is_unmapped_arguments, |
| 99 bool has_duplicate_parameters); | 100 bool has_duplicate_parameters); |
| 100 static Callable RestArgumentsAccess(Isolate* isolate); | |
| 101 | 101 |
| 102 static Callable AllocateHeapNumber(Isolate* isolate); | 102 static Callable AllocateHeapNumber(Isolate* isolate); |
| 103 static Callable AllocateMutableHeapNumber(Isolate* isolate); | 103 static Callable AllocateMutableHeapNumber(Isolate* isolate); |
| 104 static Callable AllocateInNewSpace(Isolate* isolate); | 104 static Callable AllocateInNewSpace(Isolate* isolate); |
| 105 | 105 |
| 106 static Callable ArgumentAdaptor(Isolate* isolate); | 106 static Callable ArgumentAdaptor(Isolate* isolate); |
| 107 static Callable Call(Isolate* isolate, | 107 static Callable Call(Isolate* isolate, |
| 108 ConvertReceiverMode mode = ConvertReceiverMode::kAny); | 108 ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
| 109 static Callable CallFunction( | 109 static Callable CallFunction( |
| 110 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); | 110 Isolate* isolate, ConvertReceiverMode mode = ConvertReceiverMode::kAny); |
| 111 static Callable Construct(Isolate* isolate); | 111 static Callable Construct(Isolate* isolate); |
| 112 static Callable ConstructFunction(Isolate* isolate); | 112 static Callable ConstructFunction(Isolate* isolate); |
| 113 | 113 |
| 114 static Callable InterpreterPushArgsAndCall(Isolate* isolate); | 114 static Callable InterpreterPushArgsAndCall(Isolate* isolate); |
| 115 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 115 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
| 116 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 116 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace internal | 119 } // namespace internal |
| 120 } // namespace v8 | 120 } // namespace v8 |
| 121 | 121 |
| 122 #endif // V8_CODE_FACTORY_H_ | 122 #endif // V8_CODE_FACTORY_H_ |
| OLD | NEW |