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

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

Issue 1377643003: [mips] Fix MIPS/MIPS64 test failures after r31120. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | src/mips64/builtins-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/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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 // JumpToExternalReference expects a0 to contain the number of arguments 52 // JumpToExternalReference expects a0 to contain the number of arguments
53 // including the receiver and the extra arguments. But a0 is only valid 53 // including the receiver and the extra arguments. But a0 is only valid
54 // if the called function is marked as DontAdaptArguments, otherwise we 54 // if the called function is marked as DontAdaptArguments, otherwise we
55 // need to load the argument count from the SharedFunctionInfo. 55 // need to load the argument count from the SharedFunctionInfo.
56 Label argc, done_argc; 56 Label argc, done_argc;
57 __ lw(a2, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); 57 __ lw(a2, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
58 __ lw(a2, 58 __ lw(a2,
59 FieldMemOperand(a2, SharedFunctionInfo::kFormalParameterCountOffset)); 59 FieldMemOperand(a2, SharedFunctionInfo::kFormalParameterCountOffset));
60 __ SmiUntag(a2); 60 __ SmiUntag(a2);
61 __ Branch(&argc, ne, a2, 61 __ Branch(&argc, eq, a2,
62 Operand(SharedFunctionInfo::kDontAdaptArgumentsSentinel)); 62 Operand(SharedFunctionInfo::kDontAdaptArgumentsSentinel));
63 __ Addu(a0, a2, num_extra_args + 1); 63 __ Addu(a0, a2, num_extra_args + 1);
64 __ jmp(&done_argc); 64 __ jmp(&done_argc);
65 __ bind(&argc); 65 __ bind(&argc);
66 __ Addu(a0, a0, num_extra_args + 1); 66 __ Addu(a0, a0, num_extra_args + 1);
67 __ bind(&done_argc); 67 __ bind(&done_argc);
68 68
69 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); 69 __ JumpToExternalReference(ExternalReference(id, masm->isolate()));
70 } 70 }
71 71
(...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1906 } 1906 }
1907 } 1907 }
1908 1908
1909 1909
1910 #undef __ 1910 #undef __
1911 1911
1912 } // namespace internal 1912 } // namespace internal
1913 } // namespace v8 1913 } // namespace v8
1914 1914
1915 #endif // V8_TARGET_ARCH_MIPS 1915 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698