OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \ | 59 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \ |
60 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ | 60 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ |
61 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) \ | 61 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) \ |
62 \ | 62 \ |
63 V(StrictModePoisonPill, NO_EXTRA_ARGUMENTS) | 63 V(StrictModePoisonPill, NO_EXTRA_ARGUMENTS) |
64 | 64 |
65 // Define list of builtins implemented in assembly. | 65 // Define list of builtins implemented in assembly. |
66 #define BUILTIN_LIST_A(V) \ | 66 #define BUILTIN_LIST_A(V) \ |
67 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, \ | 67 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, \ |
68 Code::kNoExtraICState) \ | 68 Code::kNoExtraICState) \ |
69 V(JSConstructCall, BUILTIN, UNINITIALIZED, \ | |
70 Code::kNoExtraICState) \ | |
71 V(JSConstructStubCountdown, BUILTIN, UNINITIALIZED, \ | 69 V(JSConstructStubCountdown, BUILTIN, UNINITIALIZED, \ |
72 Code::kNoExtraICState) \ | 70 Code::kNoExtraICState) \ |
73 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, \ | 71 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED, \ |
74 Code::kNoExtraICState) \ | 72 Code::kNoExtraICState) \ |
75 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, \ | 73 V(JSConstructStubApi, BUILTIN, UNINITIALIZED, \ |
76 Code::kNoExtraICState) \ | 74 Code::kNoExtraICState) \ |
77 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, \ | 75 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED, \ |
78 Code::kNoExtraICState) \ | 76 Code::kNoExtraICState) \ |
79 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, \ | 77 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED, \ |
80 Code::kNoExtraICState) \ | 78 Code::kNoExtraICState) \ |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 // IterateBuiltins() above which assumes Object**'s for the callback | 334 // IterateBuiltins() above which assumes Object**'s for the callback |
337 // function f, we use an Object* array here. | 335 // function f, we use an Object* array here. |
338 Object* builtins_[builtin_count]; | 336 Object* builtins_[builtin_count]; |
339 const char* names_[builtin_count]; | 337 const char* names_[builtin_count]; |
340 static const char* const javascript_names_[id_count]; | 338 static const char* const javascript_names_[id_count]; |
341 static int const javascript_argc_[id_count]; | 339 static int const javascript_argc_[id_count]; |
342 | 340 |
343 static void Generate_Adaptor(MacroAssembler* masm, | 341 static void Generate_Adaptor(MacroAssembler* masm, |
344 CFunctionId id, | 342 CFunctionId id, |
345 BuiltinExtraArguments extra_args); | 343 BuiltinExtraArguments extra_args); |
346 static void Generate_JSConstructCall(MacroAssembler* masm); | |
347 static void Generate_JSConstructStubCountdown(MacroAssembler* masm); | 344 static void Generate_JSConstructStubCountdown(MacroAssembler* masm); |
348 static void Generate_JSConstructStubGeneric(MacroAssembler* masm); | 345 static void Generate_JSConstructStubGeneric(MacroAssembler* masm); |
349 static void Generate_JSConstructStubApi(MacroAssembler* masm); | 346 static void Generate_JSConstructStubApi(MacroAssembler* masm); |
350 static void Generate_JSEntryTrampoline(MacroAssembler* masm); | 347 static void Generate_JSEntryTrampoline(MacroAssembler* masm); |
351 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); | 348 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); |
352 static void Generate_LazyCompile(MacroAssembler* masm); | 349 static void Generate_LazyCompile(MacroAssembler* masm); |
353 static void Generate_LazyRecompile(MacroAssembler* masm); | 350 static void Generate_LazyRecompile(MacroAssembler* masm); |
354 static void Generate_NotifyDeoptimized(MacroAssembler* masm); | 351 static void Generate_NotifyDeoptimized(MacroAssembler* masm); |
355 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); | 352 static void Generate_NotifyLazyDeoptimized(MacroAssembler* masm); |
356 static void Generate_NotifyOSR(MacroAssembler* masm); | 353 static void Generate_NotifyOSR(MacroAssembler* masm); |
(...skipping 14 matching lines...) Expand all Loading... |
371 | 368 |
372 friend class BuiltinFunctionTable; | 369 friend class BuiltinFunctionTable; |
373 friend class Isolate; | 370 friend class Isolate; |
374 | 371 |
375 DISALLOW_COPY_AND_ASSIGN(Builtins); | 372 DISALLOW_COPY_AND_ASSIGN(Builtins); |
376 }; | 373 }; |
377 | 374 |
378 } } // namespace v8::internal | 375 } } // namespace v8::internal |
379 | 376 |
380 #endif // V8_BUILTINS_H_ | 377 #endif // V8_BUILTINS_H_ |
OLD | NEW |