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

Side by Side Diff: src/interpreter/interpreter-assembler.cc

Issue 1688283003: [Interpreter] Implements calls through CallICStub in the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: removes an unused label declaration. 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
348 Node* InterpreterAssembler::CallConstruct(Node* constructor, Node* context, 361 Node* InterpreterAssembler::CallConstruct(Node* constructor, Node* context,
349 Node* new_target, Node* first_arg, 362 Node* new_target, Node* first_arg,
350 Node* arg_count) { 363 Node* arg_count) {
351 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate()); 364 Callable callable = CodeFactory::InterpreterPushArgsAndConstruct(isolate());
352 Node* code_target = HeapConstant(callable.code()); 365 Node* code_target = HeapConstant(callable.code());
353 return CallStub(callable.descriptor(), code_target, context, arg_count, 366 return CallStub(callable.descriptor(), code_target, context, arg_count,
354 new_target, constructor, first_arg); 367 new_target, constructor, first_arg);
355 } 368 }
356 369
357 Node* InterpreterAssembler::CallRuntimeN(Node* function_id, Node* context, 370 Node* InterpreterAssembler::CallRuntimeN(Node* function_id, Node* context,
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87 552 #elif V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_X87
540 return true; 553 return true;
541 #else 554 #else
542 #error "Unknown Architecture" 555 #error "Unknown Architecture"
543 #endif 556 #endif
544 } 557 }
545 558
546 } // namespace interpreter 559 } // namespace interpreter
547 } // namespace internal 560 } // namespace internal
548 } // namespace v8 561 } // 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