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

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

Issue 2190293003: [Interpreter] Collect type feedback for 'new' in the bytecode handler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 \ 119 \
120 /* Stack and interrupt check */ \ 120 /* Stack and interrupt check */ \
121 ASM(InterruptCheck) \ 121 ASM(InterruptCheck) \
122 ASM(StackCheck) \ 122 ASM(StackCheck) \
123 \ 123 \
124 /* Interpreter */ \ 124 /* Interpreter */ \
125 ASM(InterpreterEntryTrampoline) \ 125 ASM(InterpreterEntryTrampoline) \
126 ASM(InterpreterMarkBaselineOnReturn) \ 126 ASM(InterpreterMarkBaselineOnReturn) \
127 ASM(InterpreterPushArgsAndCall) \ 127 ASM(InterpreterPushArgsAndCall) \
128 ASM(InterpreterPushArgsAndCallFunction) \ 128 ASM(InterpreterPushArgsAndCallFunction) \
129 ASM(InterpreterPushArgsAndConstruct) \
130 ASM(InterpreterPushArgsAndTailCall) \ 129 ASM(InterpreterPushArgsAndTailCall) \
131 ASM(InterpreterPushArgsAndTailCallFunction) \ 130 ASM(InterpreterPushArgsAndTailCallFunction) \
131 ASM(InterpreterPushArgsAndConstruct) \
132 ASM(InterpreterPushArgsAndConstructFunction) \
132 ASM(InterpreterEnterBytecodeDispatch) \ 133 ASM(InterpreterEnterBytecodeDispatch) \
133 ASM(InterpreterOnStackReplacement) \ 134 ASM(InterpreterOnStackReplacement) \
134 \ 135 \
135 /* Code life-cycle */ \ 136 /* Code life-cycle */ \
136 ASM(CompileLazy) \ 137 ASM(CompileLazy) \
137 ASM(CompileBaseline) \ 138 ASM(CompileBaseline) \
138 ASM(CompileOptimized) \ 139 ASM(CompileOptimized) \
139 ASM(CompileOptimizedConcurrent) \ 140 ASM(CompileOptimizedConcurrent) \
140 ASM(InOptimizationQueue) \ 141 ASM(InOptimizationQueue) \
141 ASM(InstantiateAsmJs) \ 142 ASM(InstantiateAsmJs) \
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 TailCallMode tail_call_mode = TailCallMode::kDisallow); 572 TailCallMode tail_call_mode = TailCallMode::kDisallow);
572 Handle<Code> Call(ConvertReceiverMode = ConvertReceiverMode::kAny, 573 Handle<Code> Call(ConvertReceiverMode = ConvertReceiverMode::kAny,
573 TailCallMode tail_call_mode = TailCallMode::kDisallow); 574 TailCallMode tail_call_mode = TailCallMode::kDisallow);
574 Handle<Code> CallBoundFunction(TailCallMode tail_call_mode); 575 Handle<Code> CallBoundFunction(TailCallMode tail_call_mode);
575 Handle<Code> NonPrimitiveToPrimitive( 576 Handle<Code> NonPrimitiveToPrimitive(
576 ToPrimitiveHint hint = ToPrimitiveHint::kDefault); 577 ToPrimitiveHint hint = ToPrimitiveHint::kDefault);
577 Handle<Code> OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint); 578 Handle<Code> OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint);
578 Handle<Code> InterpreterPushArgsAndCall( 579 Handle<Code> InterpreterPushArgsAndCall(
579 TailCallMode tail_call_mode, 580 TailCallMode tail_call_mode,
580 CallableType function_type = CallableType::kAny); 581 CallableType function_type = CallableType::kAny);
582 Handle<Code> InterpreterPushArgsAndConstruct(CallableType function_type);
581 583
582 Code* builtin(Name name) { 584 Code* builtin(Name name) {
583 // Code::cast cannot be used here since we access builtins 585 // Code::cast cannot be used here since we access builtins
584 // during the marking phase of mark sweep. See IC::Clear. 586 // during the marking phase of mark sweep. See IC::Clear.
585 return reinterpret_cast<Code*>(builtins_[name]); 587 return reinterpret_cast<Code*>(builtins_[name]);
586 } 588 }
587 589
588 Address builtin_address(Name name) { 590 Address builtin_address(Name name) {
589 return reinterpret_cast<Address>(&builtins_[name]); 591 return reinterpret_cast<Address>(&builtins_[name]);
590 } 592 }
(...skipping 21 matching lines...) Expand all
612 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, 614 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm,
613 TailCallMode tail_call_mode); 615 TailCallMode tail_call_mode);
614 616
615 static void Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode, 617 static void Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode,
616 TailCallMode tail_call_mode); 618 TailCallMode tail_call_mode);
617 619
618 static void Generate_InterpreterPushArgsAndCallImpl( 620 static void Generate_InterpreterPushArgsAndCallImpl(
619 MacroAssembler* masm, TailCallMode tail_call_mode, 621 MacroAssembler* masm, TailCallMode tail_call_mode,
620 CallableType function_type); 622 CallableType function_type);
621 623
624 static void Generate_InterpreterPushArgsAndConstructImpl(
625 MacroAssembler* masm, CallableType function_type);
626
622 static void Generate_DatePrototype_GetField(MacroAssembler* masm, 627 static void Generate_DatePrototype_GetField(MacroAssembler* masm,
623 int field_index); 628 int field_index);
624 629
625 enum class MathMaxMinKind { kMax, kMin }; 630 enum class MathMaxMinKind { kMax, kMin };
626 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind); 631 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind);
627 632
628 #define DECLARE_ASM(Name, ...) \ 633 #define DECLARE_ASM(Name, ...) \
629 static void Generate_##Name(MacroAssembler* masm); 634 static void Generate_##Name(MacroAssembler* masm);
630 #define DECLARE_TF(Name, ...) \ 635 #define DECLARE_TF(Name, ...) \
631 static void Generate_##Name(CodeStubAssembler* csasm); 636 static void Generate_##Name(CodeStubAssembler* csasm);
(...skipping 12 matching lines...) Expand all
644 649
645 friend class Isolate; 650 friend class Isolate;
646 651
647 DISALLOW_COPY_AND_ASSIGN(Builtins); 652 DISALLOW_COPY_AND_ASSIGN(Builtins);
648 }; 653 };
649 654
650 } // namespace internal 655 } // namespace internal
651 } // namespace v8 656 } // namespace v8
652 657
653 #endif // V8_BUILTINS_BUILTINS_H_ 658 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698