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

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

Issue 2212343002: Revert of [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
« no previous file with comments | « src/builtins/arm64/builtins-arm64.cc ('k') | src/builtins/builtins-interpreter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) \
129 ASM(InterpreterPushArgsAndTailCall) \ 130 ASM(InterpreterPushArgsAndTailCall) \
130 ASM(InterpreterPushArgsAndTailCallFunction) \ 131 ASM(InterpreterPushArgsAndTailCallFunction) \
131 ASM(InterpreterPushArgsAndConstruct) \
132 ASM(InterpreterPushArgsAndConstructFunction) \
133 ASM(InterpreterEnterBytecodeDispatch) \ 132 ASM(InterpreterEnterBytecodeDispatch) \
134 ASM(InterpreterOnStackReplacement) \ 133 ASM(InterpreterOnStackReplacement) \
135 \ 134 \
136 /* Code life-cycle */ \ 135 /* Code life-cycle */ \
137 ASM(CompileLazy) \ 136 ASM(CompileLazy) \
138 ASM(CompileBaseline) \ 137 ASM(CompileBaseline) \
139 ASM(CompileOptimized) \ 138 ASM(CompileOptimized) \
140 ASM(CompileOptimizedConcurrent) \ 139 ASM(CompileOptimizedConcurrent) \
141 ASM(InOptimizationQueue) \ 140 ASM(InOptimizationQueue) \
142 ASM(InstantiateAsmJs) \ 141 ASM(InstantiateAsmJs) \
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 TailCallMode tail_call_mode = TailCallMode::kDisallow); 574 TailCallMode tail_call_mode = TailCallMode::kDisallow);
576 Handle<Code> Call(ConvertReceiverMode = ConvertReceiverMode::kAny, 575 Handle<Code> Call(ConvertReceiverMode = ConvertReceiverMode::kAny,
577 TailCallMode tail_call_mode = TailCallMode::kDisallow); 576 TailCallMode tail_call_mode = TailCallMode::kDisallow);
578 Handle<Code> CallBoundFunction(TailCallMode tail_call_mode); 577 Handle<Code> CallBoundFunction(TailCallMode tail_call_mode);
579 Handle<Code> NonPrimitiveToPrimitive( 578 Handle<Code> NonPrimitiveToPrimitive(
580 ToPrimitiveHint hint = ToPrimitiveHint::kDefault); 579 ToPrimitiveHint hint = ToPrimitiveHint::kDefault);
581 Handle<Code> OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint); 580 Handle<Code> OrdinaryToPrimitive(OrdinaryToPrimitiveHint hint);
582 Handle<Code> InterpreterPushArgsAndCall( 581 Handle<Code> InterpreterPushArgsAndCall(
583 TailCallMode tail_call_mode, 582 TailCallMode tail_call_mode,
584 CallableType function_type = CallableType::kAny); 583 CallableType function_type = CallableType::kAny);
585 Handle<Code> InterpreterPushArgsAndConstruct(CallableType function_type);
586 584
587 Code* builtin(Name name) { 585 Code* builtin(Name name) {
588 // Code::cast cannot be used here since we access builtins 586 // Code::cast cannot be used here since we access builtins
589 // during the marking phase of mark sweep. See IC::Clear. 587 // during the marking phase of mark sweep. See IC::Clear.
590 return reinterpret_cast<Code*>(builtins_[name]); 588 return reinterpret_cast<Code*>(builtins_[name]);
591 } 589 }
592 590
593 Address builtin_address(Name name) { 591 Address builtin_address(Name name) {
594 return reinterpret_cast<Address>(&builtins_[name]); 592 return reinterpret_cast<Address>(&builtins_[name]);
595 } 593 }
(...skipping 24 matching lines...) Expand all
620 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm, 618 static void Generate_CallBoundFunctionImpl(MacroAssembler* masm,
621 TailCallMode tail_call_mode); 619 TailCallMode tail_call_mode);
622 620
623 static void Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode, 621 static void Generate_Call(MacroAssembler* masm, ConvertReceiverMode mode,
624 TailCallMode tail_call_mode); 622 TailCallMode tail_call_mode);
625 623
626 static void Generate_InterpreterPushArgsAndCallImpl( 624 static void Generate_InterpreterPushArgsAndCallImpl(
627 MacroAssembler* masm, TailCallMode tail_call_mode, 625 MacroAssembler* masm, TailCallMode tail_call_mode,
628 CallableType function_type); 626 CallableType function_type);
629 627
630 static void Generate_InterpreterPushArgsAndConstructImpl(
631 MacroAssembler* masm, CallableType function_type);
632
633 static void Generate_DatePrototype_GetField(MacroAssembler* masm, 628 static void Generate_DatePrototype_GetField(MacroAssembler* masm,
634 int field_index); 629 int field_index);
635 630
636 enum class MathMaxMinKind { kMax, kMin }; 631 enum class MathMaxMinKind { kMax, kMin };
637 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind); 632 static void Generate_MathMaxMin(MacroAssembler* masm, MathMaxMinKind kind);
638 633
639 #define DECLARE_ASM(Name, ...) \ 634 #define DECLARE_ASM(Name, ...) \
640 static void Generate_##Name(MacroAssembler* masm); 635 static void Generate_##Name(MacroAssembler* masm);
641 #define DECLARE_TF(Name, ...) \ 636 #define DECLARE_TF(Name, ...) \
642 static void Generate_##Name(CodeStubAssembler* csasm); 637 static void Generate_##Name(CodeStubAssembler* csasm);
(...skipping 12 matching lines...) Expand all
655 650
656 friend class Isolate; 651 friend class Isolate;
657 652
658 DISALLOW_COPY_AND_ASSIGN(Builtins); 653 DISALLOW_COPY_AND_ASSIGN(Builtins);
659 }; 654 };
660 655
661 } // namespace internal 656 } // namespace internal
662 } // namespace v8 657 } // namespace v8
663 658
664 #endif // V8_BUILTINS_BUILTINS_H_ 659 #endif // V8_BUILTINS_BUILTINS_H_
OLDNEW
« no previous file with comments | « src/builtins/arm64/builtins-arm64.cc ('k') | src/builtins/builtins-interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698