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

Side by Side Diff: src/arm/code-stubs-arm.cc

Issue 803933008: new classes: change semantics of super(...) call and add new.target to construct stub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix x64 Created 5 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/arm/builtins-arm.cc ('k') | src/arm/full-codegen-arm.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 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM 7 #if V8_TARGET_ARCH_ARM
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2544 matching lines...) Expand 10 before | Expand all | Expand 10 after
2555 __ ldr(r5, FieldMemOperand(r2, AllocationSite::kMapOffset)); 2555 __ ldr(r5, FieldMemOperand(r2, AllocationSite::kMapOffset));
2556 __ CompareRoot(r5, Heap::kAllocationSiteMapRootIndex); 2556 __ CompareRoot(r5, Heap::kAllocationSiteMapRootIndex);
2557 __ b(eq, &feedback_register_initialized); 2557 __ b(eq, &feedback_register_initialized);
2558 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); 2558 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex);
2559 __ bind(&feedback_register_initialized); 2559 __ bind(&feedback_register_initialized);
2560 } 2560 }
2561 2561
2562 __ AssertUndefinedOrAllocationSite(r2, r5); 2562 __ AssertUndefinedOrAllocationSite(r2, r5);
2563 } 2563 }
2564 2564
2565 // Pass function as original constructor.
2566 __ mov(r3, r1);
2567
2565 // Jump to the function-specific construct stub. 2568 // Jump to the function-specific construct stub.
2566 Register jmp_reg = r4; 2569 Register jmp_reg = r4;
2567 __ ldr(jmp_reg, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); 2570 __ ldr(jmp_reg, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset));
2568 __ ldr(jmp_reg, FieldMemOperand(jmp_reg, 2571 __ ldr(jmp_reg, FieldMemOperand(jmp_reg,
2569 SharedFunctionInfo::kConstructStubOffset)); 2572 SharedFunctionInfo::kConstructStubOffset));
2570 __ add(pc, jmp_reg, Operand(Code::kHeaderSize - kHeapObjectTag)); 2573 __ add(pc, jmp_reg, Operand(Code::kHeaderSize - kHeapObjectTag));
2571 2574
2572 // r0: number of arguments 2575 // r0: number of arguments
2573 // r1: called object 2576 // r1: called object
2574 // r4: object type 2577 // r4: object type
(...skipping 2353 matching lines...) Expand 10 before | Expand all | Expand 10 after
4928 kStackUnwindSpace, NULL, 4931 kStackUnwindSpace, NULL,
4929 MemOperand(fp, 6 * kPointerSize), NULL); 4932 MemOperand(fp, 6 * kPointerSize), NULL);
4930 } 4933 }
4931 4934
4932 4935
4933 #undef __ 4936 #undef __
4934 4937
4935 } } // namespace v8::internal 4938 } } // namespace v8::internal
4936 4939
4937 #endif // V8_TARGET_ARCH_ARM 4940 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/builtins-arm.cc ('k') | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698