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

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

Issue 855183003: MIPS: Fix after 'MIPS: split api call stubs into accessor and function call stubs'. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 11 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 | 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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 4922 matching lines...) Expand 10 before | Expand all | Expand 10 after
4933 fp, (2 + FCA::kContextSaveIndex) * kPointerSize); 4933 fp, (2 + FCA::kContextSaveIndex) * kPointerSize);
4934 // Stores return the first js argument. 4934 // Stores return the first js argument.
4935 int return_value_offset = 0; 4935 int return_value_offset = 0;
4936 if (return_first_arg) { 4936 if (return_first_arg) {
4937 return_value_offset = 2 + FCA::kArgsLength; 4937 return_value_offset = 2 + FCA::kArgsLength;
4938 } else { 4938 } else {
4939 return_value_offset = 2 + FCA::kReturnValueOffset; 4939 return_value_offset = 2 + FCA::kReturnValueOffset;
4940 } 4940 }
4941 MemOperand return_value_operand(fp, return_value_offset * kPointerSize); 4941 MemOperand return_value_operand(fp, return_value_offset * kPointerSize);
4942 int stack_space = 0; 4942 int stack_space = 0;
4943 MemOperand is_construct_call_operand = MemOperand(sp, 4 * kPointerSize); 4943 MemOperand is_construct_call_operand =
4944 MemOperand(sp, 4 * kPointerSize + kCArgsSlotsSize);
4944 MemOperand* stack_space_operand = &is_construct_call_operand; 4945 MemOperand* stack_space_operand = &is_construct_call_operand;
4945 if (argc.is_immediate()) { 4946 if (argc.is_immediate()) {
4946 stack_space = argc.immediate() + FCA::kArgsLength + 1; 4947 stack_space = argc.immediate() + FCA::kArgsLength + 1;
4947 stack_space_operand = NULL; 4948 stack_space_operand = NULL;
4948 } 4949 }
4949 __ CallApiFunctionAndReturn(api_function_address, thunk_ref, stack_space, 4950 __ CallApiFunctionAndReturn(api_function_address, thunk_ref, stack_space,
4950 stack_space_operand, return_value_operand, 4951 stack_space_operand, return_value_operand,
4951 &context_restore_operand); 4952 &context_restore_operand);
4952 } 4953 }
4953 4954
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
4999 kStackUnwindSpace, NULL, 5000 kStackUnwindSpace, NULL,
5000 MemOperand(fp, 6 * kPointerSize), NULL); 5001 MemOperand(fp, 6 * kPointerSize), NULL);
5001 } 5002 }
5002 5003
5003 5004
5004 #undef __ 5005 #undef __
5005 5006
5006 } } // namespace v8::internal 5007 } } // namespace v8::internal
5007 5008
5008 #endif // V8_TARGET_ARCH_MIPS 5009 #endif // V8_TARGET_ARCH_MIPS
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