| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM | 5 #if V8_TARGET_ARCH_ARM |
| 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 2693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2704 } | 2704 } |
| 2705 | 2705 |
| 2706 // Called Construct on an Object that doesn't have a [[Construct]] internal | 2706 // Called Construct on an Object that doesn't have a [[Construct]] internal |
| 2707 // method. | 2707 // method. |
| 2708 __ bind(&non_constructor); | 2708 __ bind(&non_constructor); |
| 2709 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), | 2709 __ Jump(masm->isolate()->builtins()->ConstructedNonConstructable(), |
| 2710 RelocInfo::CODE_TARGET); | 2710 RelocInfo::CODE_TARGET); |
| 2711 } | 2711 } |
| 2712 | 2712 |
| 2713 // static | 2713 // static |
| 2714 void Builtins::Generate_PromiseConstructorHelper(MacroAssembler* masm) { |
| 2715 Generate_JSConstructStubHelper(masm, false, false, false); |
| 2716 } |
| 2717 |
| 2718 // static |
| 2714 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { | 2719 void Builtins::Generate_AllocateInNewSpace(MacroAssembler* masm) { |
| 2715 // ----------- S t a t e ------------- | 2720 // ----------- S t a t e ------------- |
| 2716 // -- r1 : requested object size (untagged) | 2721 // -- r1 : requested object size (untagged) |
| 2717 // -- lr : return address | 2722 // -- lr : return address |
| 2718 // ----------------------------------- | 2723 // ----------------------------------- |
| 2719 __ SmiTag(r1); | 2724 __ SmiTag(r1); |
| 2720 __ Push(r1); | 2725 __ Push(r1); |
| 2721 __ Move(cp, Smi::kZero); | 2726 __ Move(cp, Smi::kZero); |
| 2722 __ TailCallRuntime(Runtime::kAllocateInNewSpace); | 2727 __ TailCallRuntime(Runtime::kAllocateInNewSpace); |
| 2723 } | 2728 } |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2868 __ bkpt(0); | 2873 __ bkpt(0); |
| 2869 } | 2874 } |
| 2870 } | 2875 } |
| 2871 | 2876 |
| 2872 #undef __ | 2877 #undef __ |
| 2873 | 2878 |
| 2874 } // namespace internal | 2879 } // namespace internal |
| 2875 } // namespace v8 | 2880 } // namespace v8 |
| 2876 | 2881 |
| 2877 #endif // V8_TARGET_ARCH_ARM | 2882 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |