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

Side by Side Diff: src/ppc/builtins-ppc.cc

Issue 1593553002: [runtime] Throw exception for derived constructors in correct context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: disable regression test for ignition Created 4 years, 11 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/parsing/parser.cc ('k') | src/runtime/runtime.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 #if V8_TARGET_ARCH_PPC 5 #if V8_TARGET_ARCH_PPC
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 void Builtins::Generate_JSConstructStubApi(MacroAssembler* masm) { 698 void Builtins::Generate_JSConstructStubApi(MacroAssembler* masm) {
699 Generate_JSConstructStubHelper(masm, true, true); 699 Generate_JSConstructStubHelper(masm, true, true);
700 } 700 }
701 701
702 702
703 void Builtins::Generate_JSBuiltinsConstructStub(MacroAssembler* masm) { 703 void Builtins::Generate_JSBuiltinsConstructStub(MacroAssembler* masm) {
704 Generate_JSConstructStubHelper(masm, false, false); 704 Generate_JSConstructStubHelper(masm, false, false);
705 } 705 }
706 706
707 707
708 void Builtins::Generate_JSBuiltinsConstructStubForDerived(
709 MacroAssembler* masm) {
710 Generate_JSConstructStubHelper(masm, false, false);
711 }
712
713
708 void Builtins::Generate_ConstructedNonConstructable(MacroAssembler* masm) { 714 void Builtins::Generate_ConstructedNonConstructable(MacroAssembler* masm) {
709 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); 715 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
710 __ push(r4); 716 __ push(r4);
711 __ CallRuntime(Runtime::kThrowConstructedNonConstructable); 717 __ CallRuntime(Runtime::kThrowConstructedNonConstructable);
712 } 718 }
713 719
714 720
715 enum IsTagged { kArgcIsSmiTagged, kArgcIsUntaggedInt }; 721 enum IsTagged { kArgcIsSmiTagged, kArgcIsUntaggedInt };
716 722
717 723
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after
2499 __ bkpt(0); 2505 __ bkpt(0);
2500 } 2506 }
2501 } 2507 }
2502 2508
2503 2509
2504 #undef __ 2510 #undef __
2505 } // namespace internal 2511 } // namespace internal
2506 } // namespace v8 2512 } // namespace v8
2507 2513
2508 #endif // V8_TARGET_ARCH_PPC 2514 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/parsing/parser.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698