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

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

Issue 1693513002: [runtime] Introduce FastNewStrictArgumentsStub to optimize strict arguments. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix mips and mips64. Created 4 years, 10 months 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/interpreter/interpreter.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_MIPS 5 #if V8_TARGET_ARCH_MIPS
6 6
7 #include "src/codegen.h" 7 #include "src/codegen.h"
8 #include "src/debug/debug.h" 8 #include "src/debug/debug.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 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after
1958 __ CallRuntime(Runtime::kCreateListFromArrayLike); 1958 __ CallRuntime(Runtime::kCreateListFromArrayLike);
1959 __ mov(a0, v0); 1959 __ mov(a0, v0);
1960 __ Pop(a1, a3); 1960 __ Pop(a1, a3);
1961 __ lw(a2, FieldMemOperand(v0, FixedArray::kLengthOffset)); 1961 __ lw(a2, FieldMemOperand(v0, FixedArray::kLengthOffset));
1962 __ SmiUntag(a2); 1962 __ SmiUntag(a2);
1963 } 1963 }
1964 __ Branch(&done_create); 1964 __ Branch(&done_create);
1965 1965
1966 // Try to create the list from an arguments object. 1966 // Try to create the list from an arguments object.
1967 __ bind(&create_arguments); 1967 __ bind(&create_arguments);
1968 __ lw(a2, 1968 __ lw(a2, FieldMemOperand(a0, JSArgumentsObject::kLengthOffset));
1969 FieldMemOperand(a0, JSObject::kHeaderSize +
1970 Heap::kArgumentsLengthIndex * kPointerSize));
1971 __ lw(t0, FieldMemOperand(a0, JSObject::kElementsOffset)); 1969 __ lw(t0, FieldMemOperand(a0, JSObject::kElementsOffset));
1972 __ lw(at, FieldMemOperand(t0, FixedArray::kLengthOffset)); 1970 __ lw(at, FieldMemOperand(t0, FixedArray::kLengthOffset));
1973 __ Branch(&create_runtime, ne, a2, Operand(at)); 1971 __ Branch(&create_runtime, ne, a2, Operand(at));
1974 __ SmiUntag(a2); 1972 __ SmiUntag(a2);
1975 __ mov(a0, t0); 1973 __ mov(a0, t0);
1976 __ Branch(&done_create); 1974 __ Branch(&done_create);
1977 1975
1978 // Try to create the list from a JSArray object. 1976 // Try to create the list from a JSArray object.
1979 __ bind(&create_array); 1977 __ bind(&create_array);
1980 __ lw(a2, FieldMemOperand(a2, Map::kBitField2Offset)); 1978 __ lw(a2, FieldMemOperand(a2, Map::kBitField2Offset));
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
2758 } 2756 }
2759 } 2757 }
2760 2758
2761 2759
2762 #undef __ 2760 #undef __
2763 2761
2764 } // namespace internal 2762 } // namespace internal
2765 } // namespace v8 2763 } // namespace v8
2766 2764
2767 #endif // V8_TARGET_ARCH_MIPS 2765 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/interpreter/interpreter.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698