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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 V(MathAtan, kNone) \ | 127 V(MathAtan, kNone) \ |
128 V(MathFround, kNone) \ | 128 V(MathFround, kNone) \ |
129 V(MathImul, kNone) \ | 129 V(MathImul, kNone) \ |
130 \ | 130 \ |
131 V(ObjectAssign, kNone) \ | 131 V(ObjectAssign, kNone) \ |
132 V(ObjectCreate, kNone) \ | 132 V(ObjectCreate, kNone) \ |
133 V(ObjectFreeze, kNone) \ | 133 V(ObjectFreeze, kNone) \ |
134 V(ObjectGetOwnPropertyDescriptor, kNone) \ | 134 V(ObjectGetOwnPropertyDescriptor, kNone) \ |
135 V(ObjectGetOwnPropertyNames, kNone) \ | 135 V(ObjectGetOwnPropertyNames, kNone) \ |
136 V(ObjectGetOwnPropertySymbols, kNone) \ | 136 V(ObjectGetOwnPropertySymbols, kNone) \ |
137 V(ObjectHasOwnProperty, kNone) \ | |
138 V(ObjectIs, kNone) \ | 137 V(ObjectIs, kNone) \ |
139 V(ObjectIsExtensible, kNone) \ | 138 V(ObjectIsExtensible, kNone) \ |
140 V(ObjectIsFrozen, kNone) \ | 139 V(ObjectIsFrozen, kNone) \ |
141 V(ObjectIsSealed, kNone) \ | 140 V(ObjectIsSealed, kNone) \ |
142 V(ObjectKeys, kNone) \ | 141 V(ObjectKeys, kNone) \ |
143 V(ObjectValues, kNone) \ | 142 V(ObjectValues, kNone) \ |
144 V(ObjectEntries, kNone) \ | 143 V(ObjectEntries, kNone) \ |
145 V(ObjectGetOwnPropertyDescriptors, kNone) \ | 144 V(ObjectGetOwnPropertyDescriptors, kNone) \ |
146 V(ObjectPreventExtensions, kNone) \ | 145 V(ObjectPreventExtensions, kNone) \ |
147 V(ObjectSeal, kNone) \ | 146 V(ObjectSeal, kNone) \ |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 301 V(StackCheck, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
303 \ | 302 \ |
304 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 303 V(MarkCodeAsToBeExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
305 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 304 V(MarkCodeAsExecutedOnce, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
306 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ | 305 V(MarkCodeAsExecutedTwice, BUILTIN, UNINITIALIZED, kNoExtraICState) \ |
307 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) | 306 CODE_AGE_LIST_WITH_ARG(DECLARE_CODE_AGE_BUILTIN, V) |
308 | 307 |
309 // Define list of builtins implemented in TurboFan (with JS linkage). | 308 // Define list of builtins implemented in TurboFan (with JS linkage). |
310 #define BUILTIN_LIST_T(V) \ | 309 #define BUILTIN_LIST_T(V) \ |
311 V(MathFloor, 2) \ | 310 V(MathFloor, 2) \ |
312 V(MathSqrt, 2) | 311 V(MathSqrt, 2) \ |
| 312 V(ObjectHasOwnProperty, 2) |
313 | 313 |
314 // Define list of builtin handlers implemented in assembly. | 314 // Define list of builtin handlers implemented in assembly. |
315 #define BUILTIN_LIST_H(V) \ | 315 #define BUILTIN_LIST_H(V) \ |
316 V(LoadIC_Slow, LOAD_IC) \ | 316 V(LoadIC_Slow, LOAD_IC) \ |
317 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ | 317 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ |
318 V(StoreIC_Slow, STORE_IC) \ | 318 V(StoreIC_Slow, STORE_IC) \ |
319 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ | 319 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ |
320 V(LoadIC_Normal, LOAD_IC) \ | 320 V(LoadIC_Normal, LOAD_IC) \ |
321 V(StoreIC_Normal, STORE_IC) | 321 V(StoreIC_Normal, STORE_IC) |
322 | 322 |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 Generate_MathMaxMin(masm, MathMaxMinKind::kMin); | 595 Generate_MathMaxMin(masm, MathMaxMinKind::kMin); |
596 } | 596 } |
597 // ES6 section 20.2.2.32 Math.sqrt ( x ) | 597 // ES6 section 20.2.2.32 Math.sqrt ( x ) |
598 static void Generate_MathSqrt(compiler::CodeStubAssembler* assembler); | 598 static void Generate_MathSqrt(compiler::CodeStubAssembler* assembler); |
599 | 599 |
600 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Call]] case. | 600 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Call]] case. |
601 static void Generate_NumberConstructor(MacroAssembler* masm); | 601 static void Generate_NumberConstructor(MacroAssembler* masm); |
602 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case. | 602 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case. |
603 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm); | 603 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm); |
604 | 604 |
| 605 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty |
| 606 static void Generate_ObjectHasOwnProperty( |
| 607 compiler::CodeStubAssembler* assembler); |
| 608 |
605 static void Generate_StringConstructor(MacroAssembler* masm); | 609 static void Generate_StringConstructor(MacroAssembler* masm); |
606 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); | 610 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); |
607 static void Generate_OnStackReplacement(MacroAssembler* masm); | 611 static void Generate_OnStackReplacement(MacroAssembler* masm); |
608 static void Generate_InterruptCheck(MacroAssembler* masm); | 612 static void Generate_InterruptCheck(MacroAssembler* masm); |
609 static void Generate_StackCheck(MacroAssembler* masm); | 613 static void Generate_StackCheck(MacroAssembler* masm); |
610 | 614 |
611 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); | 615 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); |
612 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); | 616 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); |
613 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) { | 617 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) { |
614 return Generate_InterpreterPushArgsAndCallImpl(masm, | 618 return Generate_InterpreterPushArgsAndCallImpl(masm, |
(...skipping 29 matching lines...) Expand all Loading... |
644 friend class BuiltinFunctionTable; | 648 friend class BuiltinFunctionTable; |
645 friend class Isolate; | 649 friend class Isolate; |
646 | 650 |
647 DISALLOW_COPY_AND_ASSIGN(Builtins); | 651 DISALLOW_COPY_AND_ASSIGN(Builtins); |
648 }; | 652 }; |
649 | 653 |
650 } // namespace internal | 654 } // namespace internal |
651 } // namespace v8 | 655 } // namespace v8 |
652 | 656 |
653 #endif // V8_BUILTINS_H_ | 657 #endif // V8_BUILTINS_H_ |
OLD | NEW |