Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Side by Side Diff: src/builtins.h

Issue 1843613002: Add initial code-stub version of Object.prototype.hasOwnProperty (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(MathCeil, 2) \ 310 V(MathCeil, 2) \
312 V(MathFloor, 2) \ 311 V(MathFloor, 2) \
313 V(MathRound, 2) \ 312 V(MathRound, 2) \
314 V(MathSqrt, 2) \ 313 V(MathSqrt, 2) \
315 V(MathTrunc, 2) 314 V(MathTrunc, 2) \
315 V(ObjectHasOwnProperty, 2)
316 316
317 // Define list of builtin handlers implemented in assembly. 317 // Define list of builtin handlers implemented in assembly.
318 #define BUILTIN_LIST_H(V) \ 318 #define BUILTIN_LIST_H(V) \
319 V(LoadIC_Slow, LOAD_IC) \ 319 V(LoadIC_Slow, LOAD_IC) \
320 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \ 320 V(KeyedLoadIC_Slow, KEYED_LOAD_IC) \
321 V(StoreIC_Slow, STORE_IC) \ 321 V(StoreIC_Slow, STORE_IC) \
322 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \ 322 V(KeyedStoreIC_Slow, KEYED_STORE_IC) \
323 V(LoadIC_Normal, LOAD_IC) \ 323 V(LoadIC_Normal, LOAD_IC) \
324 V(StoreIC_Normal, STORE_IC) 324 V(StoreIC_Normal, STORE_IC)
325 325
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 // ES6 section 20.2.2.32 Math.sqrt ( x ) 604 // ES6 section 20.2.2.32 Math.sqrt ( x )
605 static void Generate_MathSqrt(compiler::CodeStubAssembler* assembler); 605 static void Generate_MathSqrt(compiler::CodeStubAssembler* assembler);
606 // ES6 section 20.2.2.35 Math.trunc ( x ) 606 // ES6 section 20.2.2.35 Math.trunc ( x )
607 static void Generate_MathTrunc(compiler::CodeStubAssembler* assembler); 607 static void Generate_MathTrunc(compiler::CodeStubAssembler* assembler);
608 608
609 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Call]] case. 609 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Call]] case.
610 static void Generate_NumberConstructor(MacroAssembler* masm); 610 static void Generate_NumberConstructor(MacroAssembler* masm);
611 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case. 611 // ES6 section 20.1.1.1 Number ( [ value ] ) for the [[Construct]] case.
612 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm); 612 static void Generate_NumberConstructor_ConstructStub(MacroAssembler* masm);
613 613
614 // ES6 section 19.1.3.2 Object.prototype.hasOwnProperty
615 static void Generate_ObjectHasOwnProperty(
616 compiler::CodeStubAssembler* assembler);
617
614 static void Generate_StringConstructor(MacroAssembler* masm); 618 static void Generate_StringConstructor(MacroAssembler* masm);
615 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm); 619 static void Generate_StringConstructor_ConstructStub(MacroAssembler* masm);
616 static void Generate_OnStackReplacement(MacroAssembler* masm); 620 static void Generate_OnStackReplacement(MacroAssembler* masm);
617 static void Generate_InterruptCheck(MacroAssembler* masm); 621 static void Generate_InterruptCheck(MacroAssembler* masm);
618 static void Generate_StackCheck(MacroAssembler* masm); 622 static void Generate_StackCheck(MacroAssembler* masm);
619 623
620 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm); 624 static void Generate_InterpreterEntryTrampoline(MacroAssembler* masm);
621 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm); 625 static void Generate_InterpreterExitTrampoline(MacroAssembler* masm);
622 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) { 626 static void Generate_InterpreterPushArgsAndCall(MacroAssembler* masm) {
623 return Generate_InterpreterPushArgsAndCallImpl(masm, 627 return Generate_InterpreterPushArgsAndCallImpl(masm,
(...skipping 29 matching lines...) Expand all
653 friend class BuiltinFunctionTable; 657 friend class BuiltinFunctionTable;
654 friend class Isolate; 658 friend class Isolate;
655 659
656 DISALLOW_COPY_AND_ASSIGN(Builtins); 660 DISALLOW_COPY_AND_ASSIGN(Builtins);
657 }; 661 };
658 662
659 } // namespace internal 663 } // namespace internal
660 } // namespace v8 664 } // namespace v8
661 665
662 #endif // V8_BUILTINS_H_ 666 #endif // V8_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/builtins.cc » ('j') | src/builtins.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698