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

Side by Side Diff: src/mips64/code-stubs-mips64.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/mips/code-stubs-mips.cc ('k') | src/x64/code-stubs-x64.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic/handler-compiler.h" 10 #include "src/ic/handler-compiler.h"
(...skipping 5027 matching lines...) Expand 10 before | Expand all | Expand 10 after
5038 __ Assert(ne, kUnexpectedInitialMapForArrayFunction, 5038 __ Assert(ne, kUnexpectedInitialMapForArrayFunction,
5039 at, Operand(zero_reg)); 5039 at, Operand(zero_reg));
5040 __ GetObjectType(a4, a4, a5); 5040 __ GetObjectType(a4, a4, a5);
5041 __ Assert(eq, kUnexpectedInitialMapForArrayFunction, 5041 __ Assert(eq, kUnexpectedInitialMapForArrayFunction,
5042 a5, Operand(MAP_TYPE)); 5042 a5, Operand(MAP_TYPE));
5043 5043
5044 // We should either have undefined in a2 or a valid AllocationSite 5044 // We should either have undefined in a2 or a valid AllocationSite
5045 __ AssertUndefinedOrAllocationSite(a2, a4); 5045 __ AssertUndefinedOrAllocationSite(a2, a4);
5046 } 5046 }
5047 5047
5048 // Enter the context of the Array function.
5049 __ ld(cp, FieldMemOperand(a1, JSFunction::kContextOffset));
5050
5048 Label subclassing; 5051 Label subclassing;
5049 __ Branch(&subclassing, ne, a1, Operand(a3)); 5052 __ Branch(&subclassing, ne, a1, Operand(a3));
5050 5053
5051 Label no_info; 5054 Label no_info;
5052 // Get the elements kind and case on that. 5055 // Get the elements kind and case on that.
5053 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 5056 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
5054 __ Branch(&no_info, eq, a2, Operand(at)); 5057 __ Branch(&no_info, eq, a2, Operand(at));
5055 5058
5056 __ ld(a3, FieldMemOperand(a2, AllocationSite::kTransitionInfoOffset)); 5059 __ ld(a3, FieldMemOperand(a2, AllocationSite::kTransitionInfoOffset));
5057 __ SmiUntag(a3); 5060 __ SmiUntag(a3);
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
5614 MemOperand(fp, 6 * kPointerSize), NULL); 5617 MemOperand(fp, 6 * kPointerSize), NULL);
5615 } 5618 }
5616 5619
5617 5620
5618 #undef __ 5621 #undef __
5619 5622
5620 } // namespace internal 5623 } // namespace internal
5621 } // namespace v8 5624 } // namespace v8
5622 5625
5623 #endif // V8_TARGET_ARCH_MIPS64 5626 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/x64/code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698