| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 #define BUILTIN_LIST_T(V) \ | 303 #define BUILTIN_LIST_T(V) \ |
| 304 V(GeneratorPrototypeNext, 2) \ | 304 V(GeneratorPrototypeNext, 2) \ |
| 305 V(GeneratorPrototypeReturn, 2) \ | 305 V(GeneratorPrototypeReturn, 2) \ |
| 306 V(GeneratorPrototypeThrow, 2) \ | 306 V(GeneratorPrototypeThrow, 2) \ |
| 307 V(MathCeil, 2) \ | 307 V(MathCeil, 2) \ |
| 308 V(MathClz32, 2) \ | 308 V(MathClz32, 2) \ |
| 309 V(MathFloor, 2) \ | 309 V(MathFloor, 2) \ |
| 310 V(MathRound, 2) \ | 310 V(MathRound, 2) \ |
| 311 V(MathSqrt, 2) \ | 311 V(MathSqrt, 2) \ |
| 312 V(MathTrunc, 2) \ | 312 V(MathTrunc, 2) \ |
| 313 V(ObjectHasOwnProperty, 2) | 313 V(ObjectHasOwnProperty, 2) \ |
| 314 V(StringPrototypeCharAt, 2) \ |
| 315 V(StringPrototypeCharCodeAt, 2) |
| 314 | 316 |
| 315 // Define list of builtin handlers implemented in assembly. | 317 // Define list of builtin handlers implemented in assembly. |
| 316 #define BUILTIN_LIST_H(V) \ | 318 #define BUILTIN_LIST_H(V) \ |
| 317 V(LoadIC_Slow, LOAD_IC) \ | 319 V(LoadIC_Slow, LOAD_IC) \ |
| 318 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ | 320 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ |
| 319 V(StoreIC_Slow, STORE_IC) \ | 321 V(StoreIC_Slow, STORE_IC) \ |
| 320 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ | 322 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ |
| 321 V(LoadIC_Normal, LOAD_IC) \ | 323 V(LoadIC_Normal, LOAD_IC) \ |
| 322 V(StoreIC_Normal, STORE_IC) | 324 V(StoreIC_Normal, STORE_IC) |
| 323 | 325 |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 static void Generate_GeneratorPrototypeReturn( | 621 static void Generate_GeneratorPrototypeReturn( |
| 620 compiler::CodeStubAssembler* assembler); | 622 compiler::CodeStubAssembler* assembler); |
| 621 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) | 623 // ES6 section 25.3.1.4 Generator.prototype.throw ( exception ) |
| 622 static void Generate_GeneratorPrototypeThrow( | 624 static void Generate_GeneratorPrototypeThrow( |
| 623 compiler::CodeStubAssembler* assembler); | 625 compiler::CodeStubAssembler* assembler); |
| 624 | 626 |
| 625 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty | 627 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty |
| 626 static void Generate_ObjectHasOwnProperty( | 628 static void Generate_ObjectHasOwnProperty( |
| 627 compiler::CodeStubAssembler* assembler); | 629 compiler::CodeStubAssembler* assembler); |
| 628 | 630 |
| 631 // ES6 section 21.1.3.1 String.prototype.charAt ( pos ) |
| 632 static void Generate_StringPrototypeCharAt( |
| 633 compiler::CodeStubAssembler* assembler); |
| 634 // ES6 section 21.1.3.2 String.prototype.charCodeAt ( pos ) |
| 635 static void Generate_StringPrototypeCharCodeAt( |
| 636 compiler::CodeStubAssembler* assembler); |
| 637 |
| 629 static void Generate_StringConstructor(MacroAssembler* masm); | 638 static void Generate_StringConstructor(MacroAssembler* masm); |
| 630 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); | 639 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); |
| 631 static void Generate_OnStackReplacement(MacroAssembler* masm); | 640 static void Generate_OnStackReplacement(MacroAssembler* masm); |
| 632 static void Generate_InterruptCheck(MacroAssembler* masm); | 641 static void Generate_InterruptCheck(MacroAssembler* masm); |
| 633 static void Generate_StackCheck(MacroAssembler* masm); | 642 static void Generate_StackCheck(MacroAssembler* masm); |
| 634 | 643 |
| 635 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); | 644 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); |
| 636 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); | 645 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); |
| 637 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) { | 646 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) { |
| 638 return Generate_InterpreterPushArgsAndCallImpl(masm, | 647 return Generate_InterpreterPushArgsAndCallImpl(masm, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 668 friend class BuiltinFunctionTable; | 677 friend class BuiltinFunctionTable; |
| 669 friend class Isolate; | 678 friend class Isolate; |
| 670 | 679 |
| 671 DISALLOW_COPY_AND_ASSIGN(Builtins); | 680 DISALLOW_COPY_AND_ASSIGN(Builtins); |
| 672 }; | 681 }; |
| 673 | 682 |
| 674 } // namespace internal | 683 } // namespace internal |
| 675 } // namespace v8 | 684 } // namespace v8 |
| 676 | 685 |
| 677 #endif // V8_BUILTINS_H_ | 686 #endif // V8_BUILTINS_H_ |
| OLD | NEW |