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

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

Issue 1473763003: X87: Reshuffle registers in JSConstructStub to avoid trashing costructor and new.target on fast pat… (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 | « no previous file | no next file » | 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_X87 5 #if V8_TARGET_ARCH_X87
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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 __ movzx_b(esi, FieldOperand(eax, Map::kUnusedPropertyFieldsOffset)); 251 __ movzx_b(esi, FieldOperand(eax, Map::kUnusedPropertyFieldsOffset));
252 __ neg(esi); 252 __ neg(esi);
253 __ lea(esi, Operand(edi, esi, times_pointer_size, 0)); 253 __ lea(esi, Operand(edi, esi, times_pointer_size, 0));
254 // esi: offset of first field after pre-allocated fields 254 // esi: offset of first field after pre-allocated fields
255 if (FLAG_debug_code) { 255 if (FLAG_debug_code) {
256 __ cmp(ecx, esi); 256 __ cmp(ecx, esi);
257 __ Assert(less_equal, 257 __ Assert(less_equal,
258 kUnexpectedNumberOfPreAllocatedPropertyFields); 258 kUnexpectedNumberOfPreAllocatedPropertyFields);
259 } 259 }
260 __ InitializeFieldsWithFiller(ecx, esi, edx); 260 __ InitializeFieldsWithFiller(ecx, esi, edx);
261
262 // To allow truncation fill the remaining fields with one pointer
263 // filler map.
261 __ mov(edx, factory->one_pointer_filler_map()); 264 __ mov(edx, factory->one_pointer_filler_map());
262 // Fill the remaining fields with one pointer filler map.
263 265
264 __ bind(&no_inobject_slack_tracking); 266 __ bind(&no_inobject_slack_tracking);
265 } 267 }
266 268
267 __ InitializeFieldsWithFiller(ecx, edi, edx); 269 __ InitializeFieldsWithFiller(ecx, edi, edx);
268 270
269 // Add the object tag to make the JSObject real, so that we can continue 271 // Add the object tag to make the JSObject real, so that we can continue
270 // and jump into the continuation code at any time from now on. 272 // and jump into the continuation code at any time from now on.
271 // ebx: JSObject (untagged) 273 // ebx: JSObject (untagged)
272 __ or_(ebx, Immediate(kHeapObjectTag)); 274 __ or_(ebx, Immediate(kHeapObjectTag));
(...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1986 1988
1987 __ bind(&ok); 1989 __ bind(&ok);
1988 __ ret(0); 1990 __ ret(0);
1989 } 1991 }
1990 1992
1991 #undef __ 1993 #undef __
1992 } // namespace internal 1994 } // namespace internal
1993 } // namespace v8 1995 } // namespace v8
1994 1996
1995 #endif // V8_TARGET_ARCH_X87 1997 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698