Chromium Code Reviews| 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 #include "src/handles.h" | 8 #include "src/handles.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ | 79 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ |
| 80 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) \ | 80 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) \ |
| 81 \ | 81 \ |
| 82 V(RestrictedFunctionPropertiesThrower, NO_EXTRA_ARGUMENTS) \ | 82 V(RestrictedFunctionPropertiesThrower, NO_EXTRA_ARGUMENTS) \ |
| 83 V(RestrictedStrictArgumentsPropertiesThrower, NO_EXTRA_ARGUMENTS) | 83 V(RestrictedStrictArgumentsPropertiesThrower, NO_EXTRA_ARGUMENTS) |
| 84 | 84 |
| 85 // Define list of builtins implemented in assembly. | 85 // Define list of builtins implemented in assembly. |
| 86 #define BUILTIN_LIST_A(V) \ | 86 #define BUILTIN_LIST_A(V) \ |
| 87 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 87 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 88 \ | 88 \ |
| 89 V(ConstructedNonConstructable, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | |
|
Igor Sheludko
2015/11/23 08:48:56
Please update the CL description.
| |
| 90 \ | |
| 89 V(CallFunction_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, \ | 91 V(CallFunction_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, \ |
| 90 kNoExtraICState) \ | 92 kNoExtraICState) \ |
| 91 V(CallFunction_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ | 93 V(CallFunction_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ |
| 92 kNoExtraICState) \ | 94 kNoExtraICState) \ |
| 93 V(CallFunction_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 95 V(CallFunction_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 94 V(Call_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 96 V(Call_ReceiverIsNullOrUndefined, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 95 V(Call_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ | 97 V(Call_ReceiverIsNotNullOrUndefined, BUILTIN, UNINITIALIZED, \ |
| 96 kNoExtraICState) \ | 98 kNoExtraICState) \ |
| 97 V(Call_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 99 V(Call_ReceiverIsAny, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
| 98 \ | 100 \ |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 274 | 276 |
| 275 // Note: These are always Code objects, but to conform with | 277 // Note: These are always Code objects, but to conform with |
| 276 // IterateBuiltins() above which assumes Object**'s for the callback | 278 // IterateBuiltins() above which assumes Object**'s for the callback |
| 277 // function f, we use an Object* array here. | 279 // function f, we use an Object* array here. |
| 278 Object* builtins_[builtin_count]; | 280 Object* builtins_[builtin_count]; |
| 279 const char* names_[builtin_count]; | 281 const char* names_[builtin_count]; |
| 280 | 282 |
| 281 static void Generate_Adaptor(MacroAssembler* masm, | 283 static void Generate_Adaptor(MacroAssembler* masm, |
| 282 CFunctionId id, | 284 CFunctionId id, |
| 283 BuiltinExtraArguments extra_args); | 285 BuiltinExtraArguments extra_args); |
| 286 static void Generate_ConstructedNonConstructable(MacroAssembler* masm); | |
| 284 static void Generate_CompileLazy(MacroAssembler* masm); | 287 static void Generate_CompileLazy(MacroAssembler* masm); |
| 285 static void Generate_InOptimizationQueue(MacroAssembler* masm); | 288 static void Generate_InOptimizationQueue(MacroAssembler* masm); |
| 286 static void Generate_CompileOptimized(MacroAssembler* masm); | 289 static void Generate_CompileOptimized(MacroAssembler* masm); |
| 287 static void Generate_CompileOptimizedConcurrent(MacroAssembler* masm); | 290 static void Generate_CompileOptimizedConcurrent(MacroAssembler* masm); |
| 288 static void Generate_JSConstructStubGeneric(MacroAssembler* masm); | 291 static void Generate_JSConstructStubGeneric(MacroAssembler* masm); |
| 289 static void Generate_JSBuiltinsConstructStub(MacroAssembler* masm); | 292 static void Generate_JSBuiltinsConstructStub(MacroAssembler* masm); |
| 290 static void Generate_JSConstructStubApi(MacroAssembler* masm); | 293 static void Generate_JSConstructStubApi(MacroAssembler* masm); |
| 291 static void Generate_JSEntryTrampoline(MacroAssembler* masm); | 294 static void Generate_JSEntryTrampoline(MacroAssembler* masm); |
| 292 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); | 295 static void Generate_JSConstructEntryTrampoline(MacroAssembler* masm); |
| 293 static void Generate_NotifyDeoptimized(MacroAssembler* masm); | 296 static void Generate_NotifyDeoptimized(MacroAssembler* masm); |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 369 friend class BuiltinFunctionTable; | 372 friend class BuiltinFunctionTable; |
| 370 friend class Isolate; | 373 friend class Isolate; |
| 371 | 374 |
| 372 DISALLOW_COPY_AND_ASSIGN(Builtins); | 375 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 373 }; | 376 }; |
| 374 | 377 |
| 375 } // namespace internal | 378 } // namespace internal |
| 376 } // namespace v8 | 379 } // namespace v8 |
| 377 | 380 |
| 378 #endif // V8_BUILTINS_H_ | 381 #endif // V8_BUILTINS_H_ |
| OLD | NEW |