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

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

Issue 1483053004: Array constructor failed to enter it's function execution context. (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/code-stubs-arm64.cc ('k') | src/mips/code-stubs-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/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 4966 matching lines...) Expand 10 before | Expand all | Expand 10 after
4977 __ Assert(not_zero, kUnexpectedInitialMapForArrayFunction); 4977 __ Assert(not_zero, kUnexpectedInitialMapForArrayFunction);
4978 __ CmpObjectType(ecx, MAP_TYPE, ecx); 4978 __ CmpObjectType(ecx, MAP_TYPE, ecx);
4979 __ Assert(equal, kUnexpectedInitialMapForArrayFunction); 4979 __ Assert(equal, kUnexpectedInitialMapForArrayFunction);
4980 4980
4981 // We should either have undefined in ebx or a valid AllocationSite 4981 // We should either have undefined in ebx or a valid AllocationSite
4982 __ AssertUndefinedOrAllocationSite(ebx); 4982 __ AssertUndefinedOrAllocationSite(ebx);
4983 } 4983 }
4984 4984
4985 Label subclassing; 4985 Label subclassing;
4986 4986
4987 // Enter the context of the Array function.
4988 __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset));
4989
4987 __ cmp(edx, edi); 4990 __ cmp(edx, edi);
4988 __ j(not_equal, &subclassing); 4991 __ j(not_equal, &subclassing);
4989 4992
4990 Label no_info; 4993 Label no_info;
4991 // If the feedback vector is the undefined value call an array constructor 4994 // If the feedback vector is the undefined value call an array constructor
4992 // that doesn't use AllocationSites. 4995 // that doesn't use AllocationSites.
4993 __ cmp(ebx, isolate()->factory()->undefined_value()); 4996 __ cmp(ebx, isolate()->factory()->undefined_value());
4994 __ j(equal, &no_info); 4997 __ j(equal, &no_info);
4995 4998
4996 // Only look at the lower 16 bits of the transition info. 4999 // Only look at the lower 16 bits of the transition info.
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
5652 Operand(ebp, 7 * kPointerSize), NULL); 5655 Operand(ebp, 7 * kPointerSize), NULL);
5653 } 5656 }
5654 5657
5655 5658
5656 #undef __ 5659 #undef __
5657 5660
5658 } // namespace internal 5661 } // namespace internal
5659 } // namespace v8 5662 } // namespace v8
5660 5663
5661 #endif // V8_TARGET_ARCH_IA32 5664 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm64/code-stubs-arm64.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698