| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 30 matching lines...) Expand all Loading... |
| 41 // Define list of builtins implemented in C++. | 41 // Define list of builtins implemented in C++. |
| 42 #define BUILTIN_LIST_C(V) \ | 42 #define BUILTIN_LIST_C(V) \ |
| 43 V(Illegal, NO_EXTRA_ARGUMENTS) \ | 43 V(Illegal, NO_EXTRA_ARGUMENTS) \ |
| 44 \ | 44 \ |
| 45 V(EmptyFunction, NO_EXTRA_ARGUMENTS) \ | 45 V(EmptyFunction, NO_EXTRA_ARGUMENTS) \ |
| 46 \ | 46 \ |
| 47 V(ArrayCodeGeneric, NO_EXTRA_ARGUMENTS) \ | 47 V(ArrayCodeGeneric, NO_EXTRA_ARGUMENTS) \ |
| 48 \ | 48 \ |
| 49 V(ArrayPush, NO_EXTRA_ARGUMENTS) \ | 49 V(ArrayPush, NO_EXTRA_ARGUMENTS) \ |
| 50 V(ArrayPop, NO_EXTRA_ARGUMENTS) \ | 50 V(ArrayPop, NO_EXTRA_ARGUMENTS) \ |
| 51 V(ArrayShift, NO_EXTRA_ARGUMENTS) \ |
| 52 V(ArrayUnshift, NO_EXTRA_ARGUMENTS) \ |
| 53 V(ArraySlice, NO_EXTRA_ARGUMENTS) \ |
| 54 V(ArraySplice, NO_EXTRA_ARGUMENTS) \ |
| 51 \ | 55 \ |
| 52 V(HandleApiCall, NEEDS_CALLED_FUNCTION) \ | 56 V(HandleApiCall, NEEDS_CALLED_FUNCTION) \ |
| 57 V(FastHandleApiCall, NO_EXTRA_ARGUMENTS) \ |
| 53 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \ | 58 V(HandleApiCallConstruct, NEEDS_CALLED_FUNCTION) \ |
| 54 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ | 59 V(HandleApiCallAsFunction, NO_EXTRA_ARGUMENTS) \ |
| 55 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) | 60 V(HandleApiCallAsConstructor, NO_EXTRA_ARGUMENTS) |
| 56 | 61 |
| 57 | 62 |
| 58 // Define list of builtins implemented in assembly. | 63 // Define list of builtins implemented in assembly. |
| 59 #define BUILTIN_LIST_A(V) \ | 64 #define BUILTIN_LIST_A(V) \ |
| 60 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED) \ | 65 V(ArgumentsAdaptorTrampoline, BUILTIN, UNINITIALIZED) \ |
| 61 V(JSConstructCall, BUILTIN, UNINITIALIZED) \ | 66 V(JSConstructCall, BUILTIN, UNINITIALIZED) \ |
| 62 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED) \ | 67 V(JSConstructStubGeneric, BUILTIN, UNINITIALIZED) \ |
| 63 V(JSConstructStubApi, BUILTIN, UNINITIALIZED) \ | 68 V(JSConstructStubApi, BUILTIN, UNINITIALIZED) \ |
| 64 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED) \ | 69 V(JSEntryTrampoline, BUILTIN, UNINITIALIZED) \ |
| 65 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED) \ | 70 V(JSConstructEntryTrampoline, BUILTIN, UNINITIALIZED) \ |
| 66 \ | 71 \ |
| 67 V(LoadIC_Miss, BUILTIN, UNINITIALIZED) \ | 72 V(LoadIC_Miss, BUILTIN, UNINITIALIZED) \ |
| 68 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED) \ | 73 V(KeyedLoadIC_Miss, BUILTIN, UNINITIALIZED) \ |
| 69 V(StoreIC_Miss, BUILTIN, UNINITIALIZED) \ | 74 V(StoreIC_Miss, BUILTIN, UNINITIALIZED) \ |
| 70 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED) \ | 75 V(KeyedStoreIC_Miss, BUILTIN, UNINITIALIZED) \ |
| 71 \ | 76 \ |
| 72 V(StoreIC_ExtendStorage, BUILTIN, UNINITIALIZED) \ | |
| 73 V(KeyedStoreIC_ExtendStorage, BUILTIN, UNINITIALIZED) \ | |
| 74 \ | |
| 75 V(LoadIC_Initialize, LOAD_IC, UNINITIALIZED) \ | 77 V(LoadIC_Initialize, LOAD_IC, UNINITIALIZED) \ |
| 76 V(LoadIC_PreMonomorphic, LOAD_IC, PREMONOMORPHIC) \ | 78 V(LoadIC_PreMonomorphic, LOAD_IC, PREMONOMORPHIC) \ |
| 77 V(LoadIC_Normal, LOAD_IC, MONOMORPHIC) \ | 79 V(LoadIC_Normal, LOAD_IC, MONOMORPHIC) \ |
| 78 V(LoadIC_ArrayLength, LOAD_IC, MONOMORPHIC) \ | 80 V(LoadIC_ArrayLength, LOAD_IC, MONOMORPHIC) \ |
| 79 V(LoadIC_StringLength, LOAD_IC, MONOMORPHIC) \ | 81 V(LoadIC_StringLength, LOAD_IC, MONOMORPHIC) \ |
| 80 V(LoadIC_FunctionPrototype, LOAD_IC, MONOMORPHIC) \ | 82 V(LoadIC_FunctionPrototype, LOAD_IC, MONOMORPHIC) \ |
| 81 V(LoadIC_Megamorphic, LOAD_IC, MEGAMORPHIC) \ | 83 V(LoadIC_Megamorphic, LOAD_IC, MEGAMORPHIC) \ |
| 82 \ | 84 \ |
| 83 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED) \ | 85 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED) \ |
| 84 V(KeyedLoadIC_PreMonomorphic, KEYED_LOAD_IC, PREMONOMORPHIC) \ | 86 V(KeyedLoadIC_PreMonomorphic, KEYED_LOAD_IC, PREMONOMORPHIC) \ |
| 85 V(KeyedLoadIC_Generic, KEYED_LOAD_IC, MEGAMORPHIC) \ | 87 V(KeyedLoadIC_Generic, KEYED_LOAD_IC, MEGAMORPHIC) \ |
| 86 V(KeyedLoadIC_String, KEYED_LOAD_IC, MEGAMORPHIC) \ | 88 V(KeyedLoadIC_String, KEYED_LOAD_IC, MEGAMORPHIC) \ |
| 87 V(KeyedLoadIC_ExternalByteArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 89 V(KeyedLoadIC_ExternalByteArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
| 88 V(KeyedLoadIC_ExternalUnsignedByteArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 90 V(KeyedLoadIC_ExternalUnsignedByteArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
| 89 V(KeyedLoadIC_ExternalShortArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 91 V(KeyedLoadIC_ExternalShortArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
| 90 V(KeyedLoadIC_ExternalUnsignedShortArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 92 V(KeyedLoadIC_ExternalUnsignedShortArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
| 91 V(KeyedLoadIC_ExternalIntArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 93 V(KeyedLoadIC_ExternalIntArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
| 92 V(KeyedLoadIC_ExternalUnsignedIntArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 94 V(KeyedLoadIC_ExternalUnsignedIntArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
| 93 V(KeyedLoadIC_ExternalFloatArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 95 V(KeyedLoadIC_ExternalFloatArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
| 96 V(KeyedLoadIC_IndexedInterceptor, KEYED_LOAD_IC, MEGAMORPHIC) \ |
| 94 \ | 97 \ |
| 95 V(StoreIC_Initialize, STORE_IC, UNINITIALIZED) \ | 98 V(StoreIC_Initialize, STORE_IC, UNINITIALIZED) \ |
| 99 V(StoreIC_ArrayLength, STORE_IC, MONOMORPHIC) \ |
| 96 V(StoreIC_Megamorphic, STORE_IC, MEGAMORPHIC) \ | 100 V(StoreIC_Megamorphic, STORE_IC, MEGAMORPHIC) \ |
| 97 \ | 101 \ |
| 98 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED) \ | 102 V(KeyedStoreIC_Initialize, KEYED_STORE_IC, UNINITIALIZED) \ |
| 99 V(KeyedStoreIC_Generic, KEYED_STORE_IC, MEGAMORPHIC) \ | 103 V(KeyedStoreIC_Generic, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 100 V(KeyedStoreIC_ExternalByteArray, KEYED_STORE_IC, MEGAMORPHIC) \ | 104 V(KeyedStoreIC_ExternalByteArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 101 V(KeyedStoreIC_ExternalUnsignedByteArray, KEYED_STORE_IC, MEGAMORPHIC) \ | 105 V(KeyedStoreIC_ExternalUnsignedByteArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 102 V(KeyedStoreIC_ExternalShortArray, KEYED_STORE_IC, MEGAMORPHIC) \ | 106 V(KeyedStoreIC_ExternalShortArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 103 V(KeyedStoreIC_ExternalUnsignedShortArray, KEYED_STORE_IC, MEGAMORPHIC) \ | 107 V(KeyedStoreIC_ExternalUnsignedShortArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 104 V(KeyedStoreIC_ExternalIntArray, KEYED_STORE_IC, MEGAMORPHIC) \ | 108 V(KeyedStoreIC_ExternalIntArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| 105 V(KeyedStoreIC_ExternalUnsignedIntArray, KEYED_STORE_IC, MEGAMORPHIC) \ | 109 V(KeyedStoreIC_ExternalUnsignedIntArray, KEYED_STORE_IC, MEGAMORPHIC) \ |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 static void Generate_FunctionCall(MacroAssembler* masm); | 250 static void Generate_FunctionCall(MacroAssembler* masm); |
| 247 static void Generate_FunctionApply(MacroAssembler* masm); | 251 static void Generate_FunctionApply(MacroAssembler* masm); |
| 248 | 252 |
| 249 static void Generate_ArrayCode(MacroAssembler* masm); | 253 static void Generate_ArrayCode(MacroAssembler* masm); |
| 250 static void Generate_ArrayConstructCode(MacroAssembler* masm); | 254 static void Generate_ArrayConstructCode(MacroAssembler* masm); |
| 251 }; | 255 }; |
| 252 | 256 |
| 253 } } // namespace v8::internal | 257 } } // namespace v8::internal |
| 254 | 258 |
| 255 #endif // V8_BUILTINS_H_ | 259 #endif // V8_BUILTINS_H_ |
| OLD | NEW |