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/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/handles.h" | 9 #include "src/handles.h" |
10 | 10 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 V(ReflectGet, kNone) \ | 164 V(ReflectGet, kNone) \ |
165 V(ReflectGetOwnPropertyDescriptor, kNone) \ | 165 V(ReflectGetOwnPropertyDescriptor, kNone) \ |
166 V(ReflectGetPrototypeOf, kNone) \ | 166 V(ReflectGetPrototypeOf, kNone) \ |
167 V(ReflectHas, kNone) \ | 167 V(ReflectHas, kNone) \ |
168 V(ReflectIsExtensible, kNone) \ | 168 V(ReflectIsExtensible, kNone) \ |
169 V(ReflectOwnKeys, kNone) \ | 169 V(ReflectOwnKeys, kNone) \ |
170 V(ReflectPreventExtensions, kNone) \ | 170 V(ReflectPreventExtensions, kNone) \ |
171 V(ReflectSet, kNone) \ | 171 V(ReflectSet, kNone) \ |
172 V(ReflectSetPrototypeOf, kNone) \ | 172 V(ReflectSetPrototypeOf, kNone) \ |
173 \ | 173 \ |
174 V(StringFromCharCode, kNone) \ | |
175 V(StringPrototypeTrim, kNone) \ | 174 V(StringPrototypeTrim, kNone) \ |
176 V(StringPrototypeTrimLeft, kNone) \ | 175 V(StringPrototypeTrimLeft, kNone) \ |
177 V(StringPrototypeTrimRight, kNone) \ | 176 V(StringPrototypeTrimRight, kNone) \ |
178 \ | 177 \ |
179 V(SymbolConstructor, kNone) \ | 178 V(SymbolConstructor, kNone) \ |
180 V(SymbolConstructor_ConstructStub, kTarget) \ | 179 V(SymbolConstructor_ConstructStub, kTarget) \ |
181 \ | 180 \ |
182 V(HandleApiCall, kTargetAndNewTarget) \ | 181 V(HandleApiCall, kTargetAndNewTarget) \ |
183 V(HandleApiCallAsFunction, kNone) \ | 182 V(HandleApiCallAsFunction, kNone) \ |
184 V(HandleApiCallAsConstructor, kNone) \ | 183 V(HandleApiCallAsConstructor, kNone) \ |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 V(GeneratorPrototypeReturn, 2) \ | 322 V(GeneratorPrototypeReturn, 2) \ |
324 V(GeneratorPrototypeThrow, 2) \ | 323 V(GeneratorPrototypeThrow, 2) \ |
325 V(MathCeil, 2) \ | 324 V(MathCeil, 2) \ |
326 V(MathClz32, 2) \ | 325 V(MathClz32, 2) \ |
327 V(MathFloor, 2) \ | 326 V(MathFloor, 2) \ |
328 V(MathRound, 2) \ | 327 V(MathRound, 2) \ |
329 V(MathSqrt, 2) \ | 328 V(MathSqrt, 2) \ |
330 V(MathTrunc, 2) \ | 329 V(MathTrunc, 2) \ |
331 V(ObjectHasOwnProperty, 2) \ | 330 V(ObjectHasOwnProperty, 2) \ |
332 V(ArrayIsArray, 2) \ | 331 V(ArrayIsArray, 2) \ |
| 332 V(StringFromCharCode, 2) \ |
333 V(StringPrototypeCharAt, 2) \ | 333 V(StringPrototypeCharAt, 2) \ |
334 V(StringPrototypeCharCodeAt, 2) \ | 334 V(StringPrototypeCharCodeAt, 2) \ |
335 V(AtomicsLoad, 3) \ | 335 V(AtomicsLoad, 3) \ |
336 V(AtomicsStore, 4) | 336 V(AtomicsStore, 4) |
337 | 337 |
338 // Define list of builtin handlers implemented in assembly. | 338 // Define list of builtin handlers implemented in assembly. |
339 #define BUILTIN_LIST_H(V) \ | 339 #define BUILTIN_LIST_H(V) \ |
340 V(LoadIC_Slow, LOAD_IC) \ | 340 V(LoadIC_Slow, LOAD_IC) \ |
341 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ | 341 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ |
342 V(StoreIC_Slow, STORE_IC) \ | 342 V(StoreIC_Slow, STORE_IC) \ |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 static void Generate_GeneratorPrototypeReturn(CodeStubAssembler* assembler); | 647 static void Generate_GeneratorPrototypeReturn(CodeStubAssembler* assembler); |
648 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) | 648 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) |
649 static void Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler); | 649 static void Generate_GeneratorPrototypeThrow(CodeStubAssembler* assembler); |
650 | 650 |
651 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty | 651 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty |
652 static void Generate_ObjectHasOwnProperty(CodeStubAssembler* assembler); | 652 static void Generate_ObjectHasOwnProperty(CodeStubAssembler* assembler); |
653 | 653 |
654 // ES6 section 22.1.2.2 Array.isArray | 654 // ES6 section 22.1.2.2 Array.isArray |
655 static void Generate_ArrayIsArray(CodeStubAssembler* assembler); | 655 static void Generate_ArrayIsArray(CodeStubAssembler* assembler); |
656 | 656 |
| 657 // ES6 section 21.1.2.1 String.fromCharCode ( ...codeUnits ) |
| 658 static void Generate_StringFromCharCode(CodeStubAssembler* assembler); |
657 // ES6 section 21.1.3.1 String.prototype.charAt ( pos ) | 659 // ES6 section 21.1.3.1 String.prototype.charAt ( pos ) |
658 static void Generate_StringPrototypeCharAt(CodeStubAssembler* assembler); | 660 static void Generate_StringPrototypeCharAt(CodeStubAssembler* assembler); |
659 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) | 661 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) |
660 static void Generate_StringPrototypeCharCodeAt(CodeStubAssembler* assembler); | 662 static void Generate_StringPrototypeCharCodeAt(CodeStubAssembler* assembler); |
661 | 663 |
662 static void Generate_StringConstructor(MacroAssembler* masm); | 664 static void Generate_StringConstructor(MacroAssembler* masm); |
663 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); | 665 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); |
664 static void Generate_OnStackReplacement(MacroAssembler* masm); | 666 static void Generate_OnStackReplacement(MacroAssembler* masm); |
665 static void Generate_InterruptCheck(MacroAssembler* masm); | 667 static void Generate_InterruptCheck(MacroAssembler* masm); |
666 static void Generate_StackCheck(MacroAssembler* masm); | 668 static void Generate_StackCheck(MacroAssembler* masm); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 friend class BuiltinFunctionTable; | 703 friend class BuiltinFunctionTable; |
702 friend class Isolate; | 704 friend class Isolate; |
703 | 705 |
704 DISALLOW_COPY_AND_ASSIGN(Builtins); | 706 DISALLOW_COPY_AND_ASSIGN(Builtins); |
705 }; | 707 }; |
706 | 708 |
707 } // namespace internal | 709 } // namespace internal |
708 } // namespace v8 | 710 } // namespace v8 |
709 | 711 |
710 #endif // V8_BUILTINS_H_ | 712 #endif // V8_BUILTINS_H_ |
OLD | NEW |