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

Side by Side Diff: src/builtins.cc

Issue 2122183002: [Interpreter] Collect type feedback for calls in the bytecode handler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updated cctest.status to mark the tests fail with ignition. Created 4 years, 5 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.h ('k') | src/code-factory.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #include "src/builtins.h" 5 #include "src/builtins.h"
6 6
7 #include "src/api-arguments.h" 7 #include "src/api-arguments.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/api.h" 9 #include "src/api.h"
10 #include "src/base/ieee754.h" 10 #include "src/base/ieee754.h"
(...skipping 5853 matching lines...) Expand 10 before | Expand all | Expand 10 after
5864 switch (tail_call_mode) { 5864 switch (tail_call_mode) {
5865 case TailCallMode::kDisallow: 5865 case TailCallMode::kDisallow:
5866 return CallBoundFunction(); 5866 return CallBoundFunction();
5867 case TailCallMode::kAllow: 5867 case TailCallMode::kAllow:
5868 return TailCallBoundFunction(); 5868 return TailCallBoundFunction();
5869 } 5869 }
5870 UNREACHABLE(); 5870 UNREACHABLE();
5871 return Handle<Code>::null(); 5871 return Handle<Code>::null();
5872 } 5872 }
5873 5873
5874 Handle<Code> Builtins::InterpreterPushArgsAndCall(TailCallMode tail_call_mode) { 5874 Handle<Code> Builtins::InterpreterPushArgsAndCall(TailCallMode tail_call_mode,
5875 CallableType function_type) {
5875 switch (tail_call_mode) { 5876 switch (tail_call_mode) {
5876 case TailCallMode::kDisallow: 5877 case TailCallMode::kDisallow:
5877 return InterpreterPushArgsAndCall(); 5878 if (function_type == CallableType::kJSFunction) {
5879 return InterpreterPushArgsAndCallFunction();
5880 } else {
5881 return InterpreterPushArgsAndCall();
5882 }
5878 case TailCallMode::kAllow: 5883 case TailCallMode::kAllow:
5879 return InterpreterPushArgsAndTailCall(); 5884 if (function_type == CallableType::kJSFunction) {
5885 return InterpreterPushArgsAndTailCallFunction();
5886 } else {
5887 return InterpreterPushArgsAndTailCall();
5888 }
5880 } 5889 }
5881 UNREACHABLE(); 5890 UNREACHABLE();
5882 return Handle<Code>::null(); 5891 return Handle<Code>::null();
5883 } 5892 }
5884 5893
5885 namespace { 5894 namespace {
5886 5895
5887 class RelocatableArguments : public BuiltinArguments, public Relocatable { 5896 class RelocatableArguments : public BuiltinArguments, public Relocatable {
5888 public: 5897 public:
5889 RelocatableArguments(Isolate* isolate, int length, Object** arguments) 5898 RelocatableArguments(Isolate* isolate, int length, Object** arguments)
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
6706 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) 6715 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H)
6707 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 6716 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
6708 #undef DEFINE_BUILTIN_ACCESSOR_C 6717 #undef DEFINE_BUILTIN_ACCESSOR_C
6709 #undef DEFINE_BUILTIN_ACCESSOR_A 6718 #undef DEFINE_BUILTIN_ACCESSOR_A
6710 #undef DEFINE_BUILTIN_ACCESSOR_T 6719 #undef DEFINE_BUILTIN_ACCESSOR_T
6711 #undef DEFINE_BUILTIN_ACCESSOR_S 6720 #undef DEFINE_BUILTIN_ACCESSOR_S
6712 #undef DEFINE_BUILTIN_ACCESSOR_H 6721 #undef DEFINE_BUILTIN_ACCESSOR_H
6713 6722
6714 } // namespace internal 6723 } // namespace internal
6715 } // namespace v8 6724 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/code-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698