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

Side by Side Diff: src/builtins.cc

Issue 1731253003: Revert of [Interpreter] Implements calls through CallICStub in the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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.h" 7 #include "src/api.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 4093 matching lines...) Expand 10 before | Expand all | Expand 10 after
4104 switch (tail_call_mode) { 4104 switch (tail_call_mode) {
4105 case TailCallMode::kDisallow: 4105 case TailCallMode::kDisallow:
4106 return InterpreterPushArgsAndCall(); 4106 return InterpreterPushArgsAndCall();
4107 case TailCallMode::kAllow: 4107 case TailCallMode::kAllow:
4108 return InterpreterPushArgsAndTailCall(); 4108 return InterpreterPushArgsAndTailCall();
4109 } 4109 }
4110 UNREACHABLE(); 4110 UNREACHABLE();
4111 return Handle<Code>::null(); 4111 return Handle<Code>::null();
4112 } 4112 }
4113 4113
4114 Handle<Code> Builtins::InterpreterPushArgsAndCallIC(
4115 TailCallMode tail_call_mode) {
4116 switch (tail_call_mode) {
4117 case TailCallMode::kDisallow:
4118 return InterpreterPushArgsAndCallIC();
4119 case TailCallMode::kAllow:
4120 return InterpreterPushArgsAndTailCallIC();
4121 }
4122 UNREACHABLE();
4123 return Handle<Code>::null();
4124 }
4125
4126 namespace { 4114 namespace {
4127 4115
4128 class RelocatableArguments 4116 class RelocatableArguments
4129 : public BuiltinArguments<BuiltinExtraArguments::kTarget>, 4117 : public BuiltinArguments<BuiltinExtraArguments::kTarget>,
4130 public Relocatable { 4118 public Relocatable {
4131 public: 4119 public:
4132 RelocatableArguments(Isolate* isolate, int length, Object** arguments) 4120 RelocatableArguments(Isolate* isolate, int length, Object** arguments)
4133 : BuiltinArguments<BuiltinExtraArguments::kTarget>(length, arguments), 4121 : BuiltinArguments<BuiltinExtraArguments::kTarget>(length, arguments),
4134 Relocatable(isolate) {} 4122 Relocatable(isolate) {}
4135 4123
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
4574 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) 4562 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C)
4575 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) 4563 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A)
4576 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) 4564 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H)
4577 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 4565 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
4578 #undef DEFINE_BUILTIN_ACCESSOR_C 4566 #undef DEFINE_BUILTIN_ACCESSOR_C
4579 #undef DEFINE_BUILTIN_ACCESSOR_A 4567 #undef DEFINE_BUILTIN_ACCESSOR_A
4580 4568
4581 4569
4582 } // namespace internal 4570 } // namespace internal
4583 } // namespace v8 4571 } // 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