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

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

Issue 1468073004: Reshuffle registers in JSConstructStub to avoid trashing costructor and new.target on fast path (so… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/arm64/macro-assembler-arm64.cc ('k') | src/mips/builtins-mips.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 __ movzx_b(esi, FieldOperand(eax, Map::kUnusedPropertyFieldsOffset)); 244 __ movzx_b(esi, FieldOperand(eax, Map::kUnusedPropertyFieldsOffset));
245 __ neg(esi); 245 __ neg(esi);
246 __ lea(esi, Operand(edi, esi, times_pointer_size, 0)); 246 __ lea(esi, Operand(edi, esi, times_pointer_size, 0));
247 // esi: offset of first field after pre-allocated fields 247 // esi: offset of first field after pre-allocated fields
248 if (FLAG_debug_code) { 248 if (FLAG_debug_code) {
249 __ cmp(ecx, esi); 249 __ cmp(ecx, esi);
250 __ Assert(less_equal, 250 __ Assert(less_equal,
251 kUnexpectedNumberOfPreAllocatedPropertyFields); 251 kUnexpectedNumberOfPreAllocatedPropertyFields);
252 } 252 }
253 __ InitializeFieldsWithFiller(ecx, esi, edx); 253 __ InitializeFieldsWithFiller(ecx, esi, edx);
254
255 // To allow truncation fill the remaining fields with one pointer
256 // filler map.
254 __ mov(edx, factory->one_pointer_filler_map()); 257 __ mov(edx, factory->one_pointer_filler_map());
255 // Fill the remaining fields with one pointer filler map.
256 258
257 __ bind(&no_inobject_slack_tracking); 259 __ bind(&no_inobject_slack_tracking);
258 } 260 }
259 261
260 __ InitializeFieldsWithFiller(ecx, edi, edx); 262 __ InitializeFieldsWithFiller(ecx, edi, edx);
261 263
262 // Add the object tag to make the JSObject real, so that we can continue 264 // Add the object tag to make the JSObject real, so that we can continue
263 // and jump into the continuation code at any time from now on. 265 // and jump into the continuation code at any time from now on.
264 // ebx: JSObject (untagged) 266 // ebx: JSObject (untagged)
265 __ or_(ebx, Immediate(kHeapObjectTag)); 267 __ or_(ebx, Immediate(kHeapObjectTag));
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after
1852 1854
1853 __ bind(&ok); 1855 __ bind(&ok);
1854 __ ret(0); 1856 __ ret(0);
1855 } 1857 }
1856 1858
1857 #undef __ 1859 #undef __
1858 } // namespace internal 1860 } // namespace internal
1859 } // namespace v8 1861 } // namespace v8
1860 1862
1861 #endif // V8_TARGET_ARCH_IA32 1863 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm64/macro-assembler-arm64.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698