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

Side by Side Diff: src/ia32/code-stubs-ia32.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/ia32/builtins-ia32.cc ('k') | src/ia32/full-codegen-ia32.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_IA32 7 #if V8_TARGET_ARCH_IA32
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 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 isolate()->factory()->allocation_site_map(); 2142 isolate()->factory()->allocation_site_map();
2143 __ cmp(FieldOperand(ebx, 0), Immediate(allocation_site_map)); 2143 __ cmp(FieldOperand(ebx, 0), Immediate(allocation_site_map));
2144 __ j(equal, &feedback_register_initialized); 2144 __ j(equal, &feedback_register_initialized);
2145 __ mov(ebx, isolate()->factory()->undefined_value()); 2145 __ mov(ebx, isolate()->factory()->undefined_value());
2146 __ bind(&feedback_register_initialized); 2146 __ bind(&feedback_register_initialized);
2147 } 2147 }
2148 2148
2149 __ AssertUndefinedOrAllocationSite(ebx); 2149 __ AssertUndefinedOrAllocationSite(ebx);
2150 } 2150 }
2151 2151
2152 // Pass original constructor to construct stub.
2153 __ mov(edx, edi);
2154
2152 // Jump to the function-specific construct stub. 2155 // Jump to the function-specific construct stub.
2153 Register jmp_reg = ecx; 2156 Register jmp_reg = ecx;
2154 __ mov(jmp_reg, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); 2157 __ mov(jmp_reg, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset));
2155 __ mov(jmp_reg, FieldOperand(jmp_reg, 2158 __ mov(jmp_reg, FieldOperand(jmp_reg,
2156 SharedFunctionInfo::kConstructStubOffset)); 2159 SharedFunctionInfo::kConstructStubOffset));
2157 __ lea(jmp_reg, FieldOperand(jmp_reg, Code::kHeaderSize)); 2160 __ lea(jmp_reg, FieldOperand(jmp_reg, Code::kHeaderSize));
2158 __ jmp(jmp_reg); 2161 __ jmp(jmp_reg);
2159 2162
2160 // edi: called object 2163 // edi: called object
2161 // eax: number of arguments 2164 // eax: number of arguments
(...skipping 2897 matching lines...) Expand 10 before | Expand all | Expand 10 after
5059 ApiParameterOperand(2), kStackSpace, nullptr, 5062 ApiParameterOperand(2), kStackSpace, nullptr,
5060 Operand(ebp, 7 * kPointerSize), NULL); 5063 Operand(ebp, 7 * kPointerSize), NULL);
5061 } 5064 }
5062 5065
5063 5066
5064 #undef __ 5067 #undef __
5065 5068
5066 } } // namespace v8::internal 5069 } } // namespace v8::internal
5067 5070
5068 #endif // V8_TARGET_ARCH_IA32 5071 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698