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

Side by Side Diff: src/interpreter/interpreter-assembler.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/interpreter/interpreter-assembler.h ('k') | src/mips/builtins-mips.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/interpreter/interpreter-assembler.h" 5 #include "src/interpreter/interpreter-assembler.h"
6 6
7 #include <ostream> 7 #include <ostream>
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 Node* InterpreterAssembler::CallJS(Node* function, Node* context, 338 Node* InterpreterAssembler::CallJS(Node* function, Node* context,
339 Node* first_arg, Node* arg_count, 339 Node* first_arg, Node* arg_count,
340 TailCallMode tail_call_mode) { 340 TailCallMode tail_call_mode) {
341 Callable callable = 341 Callable callable =
342 CodeFactory::InterpreterPushArgsAndCall(isolate(), tail_call_mode); 342 CodeFactory::InterpreterPushArgsAndCall(isolate(), tail_call_mode);
343 Node* code_target = HeapConstant(callable.code()); 343 Node* code_target = HeapConstant(callable.code());
344 return CallStub(callable.descriptor(), code_target, context, arg_count, 344 return CallStub(callable.descriptor(), code_target, context, arg_count,
345 first_arg, function); 345 first_arg, function);
346 } 346 }
347 347
348 Node* InterpreterAssembler::CallJSWithFeedback(Node* function, Node* context,
349 Node* first_arg, Node* arg_count,
350 Node* slot_id,
351 Node* type_feedback_vector,
352 TailCallMode tail_call_mode) {
353 Callable callable =
354 CodeFactory::InterpreterPushArgsAndCallIC(isolate(), tail_call_mode);
355 Node* code_target = HeapConstant(callable.code());
356
357 return CallStub(callable.descriptor(), code_target, context, arg_count,
358 first_arg, function, slot_id, type_feedback_vector);
359 }
360
361 Node* InterpreterAssembler::CallConstruct(Node* constructor, Node* context, 348 Node* InterpreterAssembler::CallConstruct(Node* constructor, Node* context,
362 Node* new_target, Node* first_arg, 349 Node* new_target, Node* first_arg,
363 Node* arg_count) { 350 Node* arg_count) {
364 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate()); 351 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate());
365 Node* code_target = HeapConstant(callable.code()); 352 Node* code_target = HeapConstant(callable.code());
366 return CallStub(callable.descriptor(), code_target, context, arg_count, 353 return CallStub(callable.descriptor(), code_target, context, arg_count,
367 new_target, constructor, first_arg); 354 new_target, constructor, first_arg);
368 } 355 }
369 356
370 Node* InterpreterAssembler::CallRuntimeN(Node* function_id, Node* context, 357 Node* InterpreterAssembler::CallRuntimeN(Node* function_id, Node* context,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 539 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87
553 return true; 540 return true;
554 #else 541 #else
555 #error "Unknown Architecture" 542 #error "Unknown Architecture"
556 #endif 543 #endif
557 } 544 }
558 545
559 } // namespace interpreter 546 } // namespace interpreter
560 } // namespace internal 547 } // namespace internal
561 } // namespace v8 548 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/interpreter-assembler.h ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698