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

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

Issue 1491153002: X87: 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 | « 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/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 4634 matching lines...) Expand 10 before | Expand all | Expand 10 after
4645 __ Assert(not_zero, kUnexpectedInitialMapForArrayFunction); 4645 __ Assert(not_zero, kUnexpectedInitialMapForArrayFunction);
4646 __ CmpObjectType(ecx, MAP_TYPE, ecx); 4646 __ CmpObjectType(ecx, MAP_TYPE, ecx);
4647 __ Assert(equal, kUnexpectedInitialMapForArrayFunction); 4647 __ Assert(equal, kUnexpectedInitialMapForArrayFunction);
4648 4648
4649 // We should either have undefined in ebx or a valid AllocationSite 4649 // We should either have undefined in ebx or a valid AllocationSite
4650 __ AssertUndefinedOrAllocationSite(ebx); 4650 __ AssertUndefinedOrAllocationSite(ebx);
4651 } 4651 }
4652 4652
4653 Label subclassing; 4653 Label subclassing;
4654 4654
4655 // Enter the context of the Array function.
4656 __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset));
4657
4655 __ cmp(edx, edi); 4658 __ cmp(edx, edi);
4656 __ j(not_equal, &subclassing); 4659 __ j(not_equal, &subclassing);
4657 4660
4658 Label no_info; 4661 Label no_info;
4659 // If the feedback vector is the undefined value call an array constructor 4662 // If the feedback vector is the undefined value call an array constructor
4660 // that doesn't use AllocationSites. 4663 // that doesn't use AllocationSites.
4661 __ cmp(ebx, isolate()->factory()->undefined_value()); 4664 __ cmp(ebx, isolate()->factory()->undefined_value());
4662 __ j(equal, &no_info); 4665 __ j(equal, &no_info);
4663 4666
4664 // Only look at the lower 16 bits of the transition info. 4667 // Only look at the lower 16 bits of the transition info.
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
5320 Operand(ebp, 7 * kPointerSize), NULL); 5323 Operand(ebp, 7 * kPointerSize), NULL);
5321 } 5324 }
5322 5325
5323 5326
5324 #undef __ 5327 #undef __
5325 5328
5326 } // namespace internal 5329 } // namespace internal
5327 } // namespace v8 5330 } // namespace v8
5328 5331
5329 #endif // V8_TARGET_ARCH_X87 5332 #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