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

Side by Side Diff: src/builtins/builtins.h

Issue 2225923003: [Interpreter] Collect type feedback for 'new' in the bytecode handler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updated mjsunit.status Created 4 years, 3 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_BUILTINS_H_ 5 #ifndef V8_BUILTINS_BUILTINS_H_
6 #define V8_BUILTINS_BUILTINS_H_ 6 #define V8_BUILTINS_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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 \ 116 \
117 /* Stack and interrupt check */ \ 117 /* Stack and interrupt check */ \
118 ASM(InterruptCheck) \ 118 ASM(InterruptCheck) \
119 ASM(StackCheck) \ 119 ASM(StackCheck) \
120 \ 120 \
121 /* Interpreter */ \ 121 /* Interpreter */ \
122 ASM(InterpreterEntryTrampoline) \ 122 ASM(InterpreterEntryTrampoline) \
123 ASM(InterpreterMarkBaselineOnReturn) \ 123 ASM(InterpreterMarkBaselineOnReturn) \
124 ASM(InterpreterPushArgsAndCall) \ 124 ASM(InterpreterPushArgsAndCall) \
125 ASM(InterpreterPushArgsAndCallFunction) \ 125 ASM(InterpreterPushArgsAndCallFunction) \
126 ASM(InterpreterPushArgsAndConstruct) \
127 ASM(InterpreterPushArgsAndTailCall) \ 126 ASM(InterpreterPushArgsAndTailCall) \
128 ASM(InterpreterPushArgsAndTailCallFunction) \ 127 ASM(InterpreterPushArgsAndTailCallFunction) \
128 ASM(InterpreterPushArgsAndConstruct) \
129 ASM(InterpreterPushArgsAndConstructFunction) \
129 ASM(InterpreterEnterBytecodeDispatch) \ 130 ASM(InterpreterEnterBytecodeDispatch) \
130 ASM(InterpreterOnStackReplacement) \ 131 ASM(InterpreterOnStackReplacement) \
131 \ 132 \
132 /* Code life-cycle */ \ 133 /* Code life-cycle */ \
133 ASM(CompileLazy) \ 134 ASM(CompileLazy) \
134 ASM(CompileBaseline) \ 135 ASM(CompileBaseline) \
135 ASM(CompileOptimized) \ 136 ASM(CompileOptimized) \
136 ASM(CompileOptimizedConcurrent) \ 137 ASM(CompileOptimizedConcurrent) \
137 ASM(InOptimizationQueue) \ 138 ASM(InOptimizationQueue) \
138 ASM(InstantiateAsmJs) \ 139 ASM(InstantiateAsmJs) \
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 TailCallMode tail_call_mode = TailCallMode::kDisallow); 584 TailCallMode tail_call_mode = TailCallMode::kDisallow);
584 Handle<Code> Call(ConvertReceiverMode = ConvertReceiverMode::kAny, 585 Handle<Code> Call(ConvertReceiverMode = ConvertReceiverMode::kAny,
585 TailCallMode tail_call_mode = TailCallMode::kDisallow); 586 TailCallMode tail_call_mode = TailCallMode::kDisallow);
586 Handle<Code> CallBoundFunction(TailCallMode tail_call_mode); 587 Handle<Code> CallBoundFunction(TailCallMode tail_call_mode);
587 Handle<Code> NonPrimitiveToPrimitive( 588 Handle<Code> NonPrimitiveToPrimitive(
588 ToPrimitiveHint hint = ToPrimitiveHint::kDefault); 589 ToPrimitiveHint hint = ToPrimitiveHint::kDefault);
589 Handle<Code> OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint); 590 Handle<Code> OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint);
590 Handle<Code> InterpreterPushArgsAndCall( 591 Handle<Code> InterpreterPushArgsAndCall(
591 TailCallMode tail_call_mode, 592 TailCallMode tail_call_mode,
592 CallableType function_type = CallableType::kAny); 593 CallableType function_type = CallableType::kAny);
594 Handle<Code> InterpreterPushArgsAndConstruct(CallableType function_type);
593 595
594 Code* builtin(Name name) { 596 Code* builtin(Name name) {
595 // Code::cast cannot be used here since we access builtins 597 // Code::cast cannot be used here since we access builtins
596 // during the marking phase of mark sweep. See IC::Clear. 598 // during the marking phase of mark sweep. See IC::Clear.
597 return reinterpret_cast<Code*>(builtins_[name]); 599 return reinterpret_cast<Code*>(builtins_[name]);
598 } 600 }
599 601
600 Address builtin_address(Name name) { 602 Address builtin_address(Name name) {
601 return reinterpret_cast<Address>(&builtins_[name]); 603 return reinterpret_cast<Address>(&builtins_[name]);
602 } 604 }
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, 638 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm,
637 TailCallMode tail_call_mode); 639 TailCallMode tail_call_mode);
638 640
639 static void Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode, 641 static void Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode,
640 TailCallMode tail_call_mode); 642 TailCallMode tail_call_mode);
641 643
642 static void Generate_InterpreterPushArgsAndCallImpl( 644 static void Generate_InterpreterPushArgsAndCallImpl(
643 MacroAssembler* masm, TailCallMode tail_call_mode, 645 MacroAssembler* masm, TailCallMode tail_call_mode,
644 CallableType function_type); 646 CallableType function_type);
645 647
648 static void Generate_InterpreterPushArgsAndConstructImpl(
649 MacroAssembler* masm, CallableType function_type);
650
646 static void Generate_DatePrototype_GetField(MacroAssembler* masm, 651 static void Generate_DatePrototype_GetField(MacroAssembler* masm,
647 int field_index); 652 int field_index);
648 653
649 enum class MathMaxMinKind { kMax, kMin }; 654 enum class MathMaxMinKind { kMax, kMin };
650 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind); 655 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind);
651 656
652 #define DECLARE_ASM(Name, ...) \ 657 #define DECLARE_ASM(Name, ...) \
653 static void Generate_##Name(MacroAssembler* masm); 658 static void Generate_##Name(MacroAssembler* masm);
654 #define DECLARE_TF(Name, ...) \ 659 #define DECLARE_TF(Name, ...) \
655 static void Generate_##Name(CodeStubAssembler* csasm); 660 static void Generate_##Name(CodeStubAssembler* csasm);
(...skipping 12 matching lines...) Expand all
668 673
669 friend class Isolate; 674 friend class Isolate;
670 675
671 DISALLOW_COPY_AND_ASSIGN(Builtins); 676 DISALLOW_COPY_AND_ASSIGN(Builtins);
672 }; 677 };
673 678
674 } // namespace internal 679 } // namespace internal
675 } // namespace v8 680 } // namespace v8
676 681
677 #endif // V8_BUILTINS_BUILTINS_H_ 682 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698