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

Side by Side Diff: src/mips/macro-assembler-mips.h

Issue 853323002: 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 | « src/mips/interface-descriptors-mips.cc ('k') | src/mips/macro-assembler-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 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/mips/assembler-mips.h" 10 #include "src/mips/assembler-mips.h"
(...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 Label* not_int32); 864 Label* not_int32);
865 865
866 // Enter exit frame. 866 // Enter exit frame.
867 // argc - argument count to be dropped by LeaveExitFrame. 867 // argc - argument count to be dropped by LeaveExitFrame.
868 // save_doubles - saves FPU registers on stack, currently disabled. 868 // save_doubles - saves FPU registers on stack, currently disabled.
869 // stack_space - extra stack space. 869 // stack_space - extra stack space.
870 void EnterExitFrame(bool save_doubles, 870 void EnterExitFrame(bool save_doubles,
871 int stack_space = 0); 871 int stack_space = 0);
872 872
873 // Leave the current exit frame. 873 // Leave the current exit frame.
874 void LeaveExitFrame(bool save_doubles, 874 void LeaveExitFrame(bool save_doubles, Register arg_count,
875 Register arg_count, 875 bool restore_context, bool do_return = NO_EMIT_RETURN,
876 bool restore_context, 876 bool argument_count_is_length = false);
877 bool do_return = NO_EMIT_RETURN);
878 877
879 // Get the actual activation frame alignment for target environment. 878 // Get the actual activation frame alignment for target environment.
880 static int ActivationFrameAlignment(); 879 static int ActivationFrameAlignment();
881 880
882 // Make sure the stack is aligned. Only emits code in debug mode. 881 // Make sure the stack is aligned. Only emits code in debug mode.
883 void AssertStackIsAligned(); 882 void AssertStackIsAligned();
884 883
885 void LoadContext(Register dst, int context_chain_length); 884 void LoadContext(Register dst, int context_chain_length);
886 885
887 // Conditionally load the cached Array transitioned map of type 886 // Conditionally load the cached Array transitioned map of type
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1284 // C functions from generated code. 1283 // C functions from generated code.
1285 void MovToFloatParameter(DoubleRegister src); 1284 void MovToFloatParameter(DoubleRegister src);
1286 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2); 1285 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2);
1287 void MovToFloatResult(DoubleRegister src); 1286 void MovToFloatResult(DoubleRegister src);
1288 1287
1289 // Calls an API function. Allocates HandleScope, extracts returned value 1288 // Calls an API function. Allocates HandleScope, extracts returned value
1290 // from handle and propagates exceptions. Restores context. stack_space 1289 // from handle and propagates exceptions. Restores context. stack_space
1291 // - space to be unwound on exit (includes the call JS arguments space and 1290 // - space to be unwound on exit (includes the call JS arguments space and
1292 // the additional space allocated for the fast call). 1291 // the additional space allocated for the fast call).
1293 void CallApiFunctionAndReturn(Register function_address, 1292 void CallApiFunctionAndReturn(Register function_address,
1294 ExternalReference thunk_ref, 1293 ExternalReference thunk_ref, int stack_space,
1295 int stack_space, 1294 MemOperand* stack_space_operand,
1296 MemOperand return_value_operand, 1295 MemOperand return_value_operand,
1297 MemOperand* context_restore_operand); 1296 MemOperand* context_restore_operand);
1298 1297
1299 // Jump to the builtin routine. 1298 // Jump to the builtin routine.
1300 void JumpToExternalReference(const ExternalReference& builtin, 1299 void JumpToExternalReference(const ExternalReference& builtin,
1301 BranchDelaySlot bd = PROTECT); 1300 BranchDelaySlot bd = PROTECT);
1302 1301
1303 // Invoke specified builtin JavaScript function. Adds an entry to 1302 // Invoke specified builtin JavaScript function. Adds an entry to
1304 // the unresolved list if the name does not resolve. 1303 // the unresolved list if the name does not resolve.
1305 void InvokeBuiltin(Builtins::JavaScript id, 1304 void InvokeBuiltin(Builtins::JavaScript id,
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
1723 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1722 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1724 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1723 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1725 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1724 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1726 #else 1725 #else
1727 #define ACCESS_MASM(masm) masm-> 1726 #define ACCESS_MASM(masm) masm->
1728 #endif 1727 #endif
1729 1728
1730 } } // namespace v8::internal 1729 } } // namespace v8::internal
1731 1730
1732 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1731 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/interface-descriptors-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698