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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 V(LoadIC_PreMonomorphic, LOAD_IC, PREMONOMORPHIC) \ | 67 V(LoadIC_PreMonomorphic, LOAD_IC, PREMONOMORPHIC) \ |
68 V(LoadIC_Normal, LOAD_IC, MONOMORPHIC) \ | 68 V(LoadIC_Normal, LOAD_IC, MONOMORPHIC) \ |
69 V(LoadIC_ArrayLength, LOAD_IC, MONOMORPHIC) \ | 69 V(LoadIC_ArrayLength, LOAD_IC, MONOMORPHIC) \ |
70 V(LoadIC_StringLength, LOAD_IC, MONOMORPHIC) \ | 70 V(LoadIC_StringLength, LOAD_IC, MONOMORPHIC) \ |
71 V(LoadIC_FunctionPrototype, LOAD_IC, MONOMORPHIC) \ | 71 V(LoadIC_FunctionPrototype, LOAD_IC, MONOMORPHIC) \ |
72 V(LoadIC_Megamorphic, LOAD_IC, MEGAMORPHIC) \ | 72 V(LoadIC_Megamorphic, LOAD_IC, MEGAMORPHIC) \ |
73 \ | 73 \ |
74 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED) \ | 74 V(KeyedLoadIC_Initialize, KEYED_LOAD_IC, UNINITIALIZED) \ |
75 V(KeyedLoadIC_PreMonomorphic, KEYED_LOAD_IC, PREMONOMORPHIC) \ | 75 V(KeyedLoadIC_PreMonomorphic, KEYED_LOAD_IC, PREMONOMORPHIC) \ |
76 V(KeyedLoadIC_Generic, KEYED_LOAD_IC, MEGAMORPHIC) \ | 76 V(KeyedLoadIC_Generic, KEYED_LOAD_IC, MEGAMORPHIC) \ |
| 77 V(KeyedLoadIC_String, KEYED_LOAD_IC, MEGAMORPHIC) \ |
77 V(KeyedLoadIC_ExternalByteArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 78 V(KeyedLoadIC_ExternalByteArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
78 V(KeyedLoadIC_ExternalUnsignedByteArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 79 V(KeyedLoadIC_ExternalUnsignedByteArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
79 V(KeyedLoadIC_ExternalShortArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 80 V(KeyedLoadIC_ExternalShortArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
80 V(KeyedLoadIC_ExternalUnsignedShortArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 81 V(KeyedLoadIC_ExternalUnsignedShortArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
81 V(KeyedLoadIC_ExternalIntArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 82 V(KeyedLoadIC_ExternalIntArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
82 V(KeyedLoadIC_ExternalUnsignedIntArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 83 V(KeyedLoadIC_ExternalUnsignedIntArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
83 V(KeyedLoadIC_ExternalFloatArray, KEYED_LOAD_IC, MEGAMORPHIC) \ | 84 V(KeyedLoadIC_ExternalFloatArray, KEYED_LOAD_IC, MEGAMORPHIC) \ |
84 \ | 85 \ |
85 V(StoreIC_Initialize, STORE_IC, UNINITIALIZED) \ | 86 V(StoreIC_Initialize, STORE_IC, UNINITIALIZED) \ |
86 V(StoreIC_Megamorphic, STORE_IC, MEGAMORPHIC) \ | 87 V(StoreIC_Megamorphic, STORE_IC, MEGAMORPHIC) \ |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 V(GET_KEYS, 0) \ | 141 V(GET_KEYS, 0) \ |
141 V(FILTER_KEY, 1) \ | 142 V(FILTER_KEY, 1) \ |
142 V(CALL_NON_FUNCTION, 0) \ | 143 V(CALL_NON_FUNCTION, 0) \ |
143 V(CALL_NON_FUNCTION_AS_CONSTRUCTOR, 0) \ | 144 V(CALL_NON_FUNCTION_AS_CONSTRUCTOR, 0) \ |
144 V(TO_OBJECT, 0) \ | 145 V(TO_OBJECT, 0) \ |
145 V(TO_NUMBER, 0) \ | 146 V(TO_NUMBER, 0) \ |
146 V(TO_STRING, 0) \ | 147 V(TO_STRING, 0) \ |
147 V(STRING_ADD_LEFT, 1) \ | 148 V(STRING_ADD_LEFT, 1) \ |
148 V(STRING_ADD_RIGHT, 1) \ | 149 V(STRING_ADD_RIGHT, 1) \ |
149 V(APPLY_PREPARE, 1) \ | 150 V(APPLY_PREPARE, 1) \ |
150 V(APPLY_OVERFLOW, 1) | 151 V(APPLY_OVERFLOW, 1) \ |
| 152 V(STRING_CHAR_AT, 1) |
151 | 153 |
152 | 154 |
153 class ObjectVisitor; | 155 class ObjectVisitor; |
154 | 156 |
155 | 157 |
156 class Builtins : public AllStatic { | 158 class Builtins : public AllStatic { |
157 public: | 159 public: |
158 // Generate all builtin code objects. Should be called once during | 160 // Generate all builtin code objects. Should be called once during |
159 // VM initialization. | 161 // VM initialization. |
160 static void Setup(bool create_heap_objects); | 162 static void Setup(bool create_heap_objects); |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 static void Generate_FunctionCall(MacroAssembler* masm); | 236 static void Generate_FunctionCall(MacroAssembler* masm); |
235 static void Generate_FunctionApply(MacroAssembler* masm); | 237 static void Generate_FunctionApply(MacroAssembler* masm); |
236 | 238 |
237 static void Generate_ArrayCode(MacroAssembler* masm); | 239 static void Generate_ArrayCode(MacroAssembler* masm); |
238 static void Generate_ArrayConstructCode(MacroAssembler* masm); | 240 static void Generate_ArrayConstructCode(MacroAssembler* masm); |
239 }; | 241 }; |
240 | 242 |
241 } } // namespace v8::internal | 243 } } // namespace v8::internal |
242 | 244 |
243 #endif // V8_BUILTINS_H_ | 245 #endif // V8_BUILTINS_H_ |
OLD | NEW |