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

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

Issue 1949023003: [Interpreter] Fix incorrect frame walking in arguments create stubs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add ports Created 4 years, 7 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/code-factory.h ('k') | src/code-stubs.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 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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 466
467 467
468 // static 468 // static
469 Callable CodeFactory::FastNewObject(Isolate* isolate) { 469 Callable CodeFactory::FastNewObject(Isolate* isolate) {
470 FastNewObjectStub stub(isolate); 470 FastNewObjectStub stub(isolate);
471 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 471 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
472 } 472 }
473 473
474 474
475 // static 475 // static
476 Callable CodeFactory::FastNewRestParameter(Isolate* isolate) { 476 Callable CodeFactory::FastNewRestParameter(Isolate* isolate,
477 FastNewRestParameterStub stub(isolate); 477 bool skip_stub_frame) {
478 FastNewRestParameterStub stub(isolate, skip_stub_frame);
478 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 479 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
479 } 480 }
480 481
481 482
482 // static 483 // static
483 Callable CodeFactory::FastNewSloppyArguments(Isolate* isolate) { 484 Callable CodeFactory::FastNewSloppyArguments(Isolate* isolate,
484 FastNewSloppyArgumentsStub stub(isolate); 485 bool skip_stub_frame) {
486 FastNewSloppyArgumentsStub stub(isolate, skip_stub_frame);
485 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 487 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
486 } 488 }
487 489
488 490
489 // static 491 // static
490 Callable CodeFactory::FastNewStrictArguments(Isolate* isolate) { 492 Callable CodeFactory::FastNewStrictArguments(Isolate* isolate,
491 FastNewStrictArgumentsStub stub(isolate); 493 bool skip_stub_frame) {
494 FastNewStrictArgumentsStub stub(isolate, skip_stub_frame);
492 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 495 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
493 } 496 }
494 497
495 498
496 // static 499 // static
497 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) { 500 Callable CodeFactory::AllocateHeapNumber(Isolate* isolate) {
498 AllocateHeapNumberStub stub(isolate); 501 AllocateHeapNumberStub stub(isolate);
499 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor()); 502 return Callable(stub.GetCode(), stub.GetCallInterfaceDescriptor());
500 } 503 }
501 504
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 // static 577 // static
575 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) { 578 Callable CodeFactory::InterpreterCEntry(Isolate* isolate, int result_size) {
576 // Note: If we ever use fpregs in the interpreter then we will need to 579 // Note: If we ever use fpregs in the interpreter then we will need to
577 // save fpregs too. 580 // save fpregs too.
578 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister); 581 CEntryStub stub(isolate, result_size, kDontSaveFPRegs, kArgvInRegister);
579 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate)); 582 return Callable(stub.GetCode(), InterpreterCEntryDescriptor(isolate));
580 } 583 }
581 584
582 } // namespace internal 585 } // namespace internal
583 } // namespace v8 586 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-factory.h ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698