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

Side by Side Diff: src/mips/code-stubs-mips.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/ia32/code-stubs-ia32.cc ('k') | src/mips64/code-stubs-mips64.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 5001 matching lines...) Expand 10 before | Expand all | Expand 10 after
5012 __ Assert(ne, kUnexpectedInitialMapForArrayFunction, 5012 __ Assert(ne, kUnexpectedInitialMapForArrayFunction,
5013 at, Operand(zero_reg)); 5013 at, Operand(zero_reg));
5014 __ GetObjectType(t0, t0, t1); 5014 __ GetObjectType(t0, t0, t1);
5015 __ Assert(eq, kUnexpectedInitialMapForArrayFunction, 5015 __ Assert(eq, kUnexpectedInitialMapForArrayFunction,
5016 t1, Operand(MAP_TYPE)); 5016 t1, Operand(MAP_TYPE));
5017 5017
5018 // We should either have undefined in a2 or a valid AllocationSite 5018 // We should either have undefined in a2 or a valid AllocationSite
5019 __ AssertUndefinedOrAllocationSite(a2, t0); 5019 __ AssertUndefinedOrAllocationSite(a2, t0);
5020 } 5020 }
5021 5021
5022 // Enter the context of the Array function.
5023 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset));
5024
5022 Label subclassing; 5025 Label subclassing;
5023 __ Branch(&subclassing, ne, a1, Operand(a3)); 5026 __ Branch(&subclassing, ne, a1, Operand(a3));
5024 5027
5025 Label no_info; 5028 Label no_info;
5026 // Get the elements kind and case on that. 5029 // Get the elements kind and case on that.
5027 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 5030 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
5028 __ Branch(&no_info, eq, a2, Operand(at)); 5031 __ Branch(&no_info, eq, a2, Operand(at));
5029 5032
5030 __ lw(a3, FieldMemOperand(a2, AllocationSite::kTransitionInfoOffset)); 5033 __ lw(a3, FieldMemOperand(a2, AllocationSite::kTransitionInfoOffset));
5031 __ SmiUntag(a3); 5034 __ SmiUntag(a3);
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
5583 MemOperand(fp, 6 * kPointerSize), NULL); 5586 MemOperand(fp, 6 * kPointerSize), NULL);
5584 } 5587 }
5585 5588
5586 5589
5587 #undef __ 5590 #undef __
5588 5591
5589 } // namespace internal 5592 } // namespace internal
5590 } // namespace v8 5593 } // namespace v8
5591 5594
5592 #endif // V8_TARGET_ARCH_MIPS 5595 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698