OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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_BUILTINS_H_ | 5 #ifndef V8_BUILTINS_H_ |
6 #define V8_BUILTINS_H_ | 6 #define V8_BUILTINS_H_ |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 | 10 |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 V(KeyedStoreIC_PreMonomorphic_Strict, KEYED_STORE_IC, PREMONOMORPHIC, \ | 102 V(KeyedStoreIC_PreMonomorphic_Strict, KEYED_STORE_IC, PREMONOMORPHIC, \ |
103 StoreIC::kStrictModeState) \ | 103 StoreIC::kStrictModeState) \ |
104 V(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, MEGAMORPHIC, \ | 104 V(KeyedStoreIC_Megamorphic_Strict, KEYED_STORE_IC, MEGAMORPHIC, \ |
105 StoreIC::kStrictModeState) \ | 105 StoreIC::kStrictModeState) \ |
106 V(KeyedStoreIC_SloppyArguments, KEYED_STORE_IC, MONOMORPHIC, \ | 106 V(KeyedStoreIC_SloppyArguments, KEYED_STORE_IC, MONOMORPHIC, \ |
107 kNoExtraICState) \ | 107 kNoExtraICState) \ |
108 \ | 108 \ |
109 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ | 109 /* Uses KeyedLoadIC_Initialize; must be after in list. */ \ |
110 V(FunctionCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 110 V(FunctionCall, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
111 V(FunctionApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 111 V(FunctionApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 112 V(ReflectApply, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 113 V(ReflectConstruct, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
112 \ | 114 \ |
113 V(InternalArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 115 V(InternalArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
114 V(ArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 116 V(ArrayCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
115 \ | 117 \ |
116 V(StringConstructCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 118 V(StringConstructCode, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
117 \ | 119 \ |
118 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 120 V(OnStackReplacement, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
119 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 121 V(InterruptCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
120 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 122 V(OsrAfterStackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
121 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 123 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 V(CALL_NON_FUNCTION_AS_CONSTRUCTOR, 0) \ | 188 V(CALL_NON_FUNCTION_AS_CONSTRUCTOR, 0) \ |
187 V(CALL_FUNCTION_PROXY, 1) \ | 189 V(CALL_FUNCTION_PROXY, 1) \ |
188 V(CALL_FUNCTION_PROXY_AS_CONSTRUCTOR, 1) \ | 190 V(CALL_FUNCTION_PROXY_AS_CONSTRUCTOR, 1) \ |
189 V(TO_OBJECT, 0) \ | 191 V(TO_OBJECT, 0) \ |
190 V(TO_NUMBER, 0) \ | 192 V(TO_NUMBER, 0) \ |
191 V(TO_STRING, 0) \ | 193 V(TO_STRING, 0) \ |
192 V(TO_NAME, 0) \ | 194 V(TO_NAME, 0) \ |
193 V(STRING_ADD_LEFT, 1) \ | 195 V(STRING_ADD_LEFT, 1) \ |
194 V(STRING_ADD_RIGHT, 1) \ | 196 V(STRING_ADD_RIGHT, 1) \ |
195 V(APPLY_PREPARE, 1) \ | 197 V(APPLY_PREPARE, 1) \ |
| 198 V(REFLECT_APPLY_PREPARE, 1) \ |
| 199 V(REFLECT_CONSTRUCT_PREPARE, 2) \ |
196 V(STACK_OVERFLOW, 1) | 200 V(STACK_OVERFLOW, 1) |
197 | 201 |
198 class BuiltinFunctionTable; | 202 class BuiltinFunctionTable; |
199 class ObjectVisitor; | 203 class ObjectVisitor; |
200 | 204 |
201 | 205 |
202 class Builtins { | 206 class Builtins { |
203 public: | 207 public: |
204 ~Builtins(); | 208 ~Builtins(); |
205 | 209 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); | 313 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); |
310 static void Generate_NotifyDeoptimized(MacroAssembler* masm); | 314 static void Generate_NotifyDeoptimized(MacroAssembler* masm); |
311 static void Generate_NotifySoftDeoptimized(MacroAssembler* masm); | 315 static void Generate_NotifySoftDeoptimized(MacroAssembler* masm); |
312 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); | 316 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); |
313 static void Generate_NotifyStubFailure(MacroAssembler* masm); | 317 static void Generate_NotifyStubFailure(MacroAssembler* masm); |
314 static void Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm); | 318 static void Generate_NotifyStubFailureSaveDoubles(MacroAssembler* masm); |
315 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); | 319 static void Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm); |
316 | 320 |
317 static void Generate_FunctionCall(MacroAssembler* masm); | 321 static void Generate_FunctionCall(MacroAssembler* masm); |
318 static void Generate_FunctionApply(MacroAssembler* masm); | 322 static void Generate_FunctionApply(MacroAssembler* masm); |
| 323 static void Generate_ReflectApply(MacroAssembler* masm); |
| 324 static void Generate_ReflectConstruct(MacroAssembler* masm); |
319 | 325 |
320 static void Generate_InternalArrayCode(MacroAssembler* masm); | 326 static void Generate_InternalArrayCode(MacroAssembler* masm); |
321 static void Generate_ArrayCode(MacroAssembler* masm); | 327 static void Generate_ArrayCode(MacroAssembler* masm); |
322 | 328 |
323 static void Generate_StringConstructCode(MacroAssembler* masm); | 329 static void Generate_StringConstructCode(MacroAssembler* masm); |
324 static void Generate_OnStackReplacement(MacroAssembler* masm); | 330 static void Generate_OnStackReplacement(MacroAssembler* masm); |
325 static void Generate_OsrAfterStackCheck(MacroAssembler* masm); | 331 static void Generate_OsrAfterStackCheck(MacroAssembler* masm); |
326 static void Generate_InterruptCheck(MacroAssembler* masm); | 332 static void Generate_InterruptCheck(MacroAssembler* masm); |
327 static void Generate_StackCheck(MacroAssembler* masm); | 333 static void Generate_StackCheck(MacroAssembler* masm); |
328 | 334 |
(...skipping 14 matching lines...) Expand all Loading... |
343 | 349 |
344 friend class BuiltinFunctionTable; | 350 friend class BuiltinFunctionTable; |
345 friend class Isolate; | 351 friend class Isolate; |
346 | 352 |
347 DISALLOW_COPY_AND_ASSIGN(Builtins); | 353 DISALLOW_COPY_AND_ASSIGN(Builtins); |
348 }; | 354 }; |
349 | 355 |
350 } } // namespace v8::internal | 356 } } // namespace v8::internal |
351 | 357 |
352 #endif // V8_BUILTINS_H_ | 358 #endif // V8_BUILTINS_H_ |
OLD | NEW |