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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value); | 58 static Callable CompareNilIC(Isolate* isolate, NilValue nil_value); |
59 | 59 |
60 static Callable BinaryOpIC(Isolate* isolate, Token::Value op); | 60 static Callable BinaryOpIC(Isolate* isolate, Token::Value op); |
61 | 61 |
62 static Callable ApiGetter(Isolate* isolate); | 62 static Callable ApiGetter(Isolate* isolate); |
63 | 63 |
64 // Code stubs. Add methods here as needed to reduce dependency on | 64 // Code stubs. Add methods here as needed to reduce dependency on |
65 // code-stubs.h. | 65 // code-stubs.h. |
66 static Callable InstanceOf(Isolate* isolate); | 66 static Callable InstanceOf(Isolate* isolate); |
67 | 67 |
| 68 static Callable GetProperty(Isolate* isolate); |
| 69 |
68 static Callable ToBoolean(Isolate* isolate); | 70 static Callable ToBoolean(Isolate* isolate); |
69 | 71 |
70 static Callable ToNumber(Isolate* isolate); | 72 static Callable ToNumber(Isolate* isolate); |
71 static Callable NonNumberToNumber(Isolate* isolate); | 73 static Callable NonNumberToNumber(Isolate* isolate); |
72 static Callable StringToNumber(Isolate* isolate); | 74 static Callable StringToNumber(Isolate* isolate); |
73 static Callable ToString(Isolate* isolate); | 75 static Callable ToString(Isolate* isolate); |
74 static Callable ToName(Isolate* isolate); | 76 static Callable ToName(Isolate* isolate); |
75 static Callable ToInteger(Isolate* isolate); | 77 static Callable ToInteger(Isolate* isolate); |
76 static Callable ToLength(Isolate* isolate); | 78 static Callable ToLength(Isolate* isolate); |
77 static Callable ToObject(Isolate* isolate); | 79 static Callable ToObject(Isolate* isolate); |
| 80 static Callable NonPrimitiveToPrimitive( |
| 81 Isolate* isolate, ToPrimitiveHint hint = ToPrimitiveHint::kDefault); |
| 82 static Callable OrdinaryToPrimitive(Isolate* isolate, |
| 83 OrdinaryToPrimitiveHint hint); |
78 static Callable NumberToString(Isolate* isolate); | 84 static Callable NumberToString(Isolate* isolate); |
79 | 85 |
80 static Callable RegExpConstructResult(Isolate* isolate); | 86 static Callable RegExpConstructResult(Isolate* isolate); |
81 static Callable RegExpExec(Isolate* isolate); | 87 static Callable RegExpExec(Isolate* isolate); |
82 | 88 |
83 static Callable Add(Isolate* isolate); | 89 static Callable Add(Isolate* isolate); |
84 static Callable Subtract(Isolate* isolate); | 90 static Callable Subtract(Isolate* isolate); |
85 static Callable Multiply(Isolate* isolate); | 91 static Callable Multiply(Isolate* isolate); |
86 static Callable Divide(Isolate* isolate); | 92 static Callable Divide(Isolate* isolate); |
87 static Callable Modulus(Isolate* isolate); | 93 static Callable Modulus(Isolate* isolate); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 Isolate* isolate, TailCallMode tail_call_mode, | 155 Isolate* isolate, TailCallMode tail_call_mode, |
150 CallableType function_type = CallableType::kAny); | 156 CallableType function_type = CallableType::kAny); |
151 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); | 157 static Callable InterpreterPushArgsAndConstruct(Isolate* isolate); |
152 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); | 158 static Callable InterpreterCEntry(Isolate* isolate, int result_size = 1); |
153 }; | 159 }; |
154 | 160 |
155 } // namespace internal | 161 } // namespace internal |
156 } // namespace v8 | 162 } // namespace v8 |
157 | 163 |
158 #endif // V8_CODE_FACTORY_H_ | 164 #endif // V8_CODE_FACTORY_H_ |
OLD | NEW |