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

Side by Side Diff: src/code-factory.cc

Issue 2225923003: [Interpreter] Collect type feedback for 'new' in the bytecode handler (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updated mjsunit.status Created 4 years, 3 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
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/code-factory.h" 5 #include "src/code-factory.h"
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/ic/ic.h" 8 #include "src/ic/ic.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 // static 587 // static
588 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate, 588 Callable CodeFactory::InterpreterPushArgsAndCall(Isolate* isolate,
589 TailCallMode tail_call_mode, 589 TailCallMode tail_call_mode,
590 CallableType function_type) { 590 CallableType function_type) {
591 return Callable(isolate->builtins()->InterpreterPushArgsAndCall( 591 return Callable(isolate->builtins()->InterpreterPushArgsAndCall(
592 tail_call_mode, function_type), 592 tail_call_mode, function_type),
593 InterpreterPushArgsAndCallDescriptor(isolate)); 593 InterpreterPushArgsAndCallDescriptor(isolate));
594 } 594 }
595 595
596 // static 596 // static
597 Callable CodeFactory::InterpreterPushArgsAndConstruct(Isolate* isolate) { 597 Callable CodeFactory::InterpreterPushArgsAndConstruct(
598 return Callable(isolate->builtins()->InterpreterPushArgsAndConstruct(), 598 Isolate* isolate, CallableType function_type) {
599 InterpreterPushArgsAndConstructDescriptor(isolate)); 599 return Callable(
600 isolate->builtins()->InterpreterPushArgsAndConstruct(function_type),
601 InterpreterPushArgsAndConstructDescriptor(isolate));
600 } 602 }
601 603
602 // static 604 // static
603 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 605 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
604 // Note: If we ever use fpregs in the interpreter then we will need to 606 // Note: If we ever use fpregs in the interpreter then we will need to
605 // save fpregs too. 607 // save fpregs too.
606 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 608 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
607 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 609 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
608 } 610 }
609 611
610 // static 612 // static
611 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) { 613 Callable CodeFactory::InterpreterOnStackReplacement(Isolate* isolate) {
612 return Callable(isolate->builtins()->InterpreterOnStackReplacement(), 614 return Callable(isolate->builtins()->InterpreterOnStackReplacement(),
613 ContextOnlyDescriptor(isolate)); 615 ContextOnlyDescriptor(isolate));
614 } 616 }
615 617
616 } // namespace internal 618 } // namespace internal
617 } // namespace v8 619 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698