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

Side by Side Diff: src/mips64/macro-assembler-mips64.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/mips64/interface-descriptors-mips64.cc ('k') | src/mips64/macro-assembler-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 #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/mips64/assembler-mips64.h" 10 #include "src/mips64/assembler-mips64.h"
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
894 Label* not_int32); 894 Label* not_int32);
895 895
896 // Enter exit frame. 896 // Enter exit frame.
897 // argc - argument count to be dropped by LeaveExitFrame. 897 // argc - argument count to be dropped by LeaveExitFrame.
898 // save_doubles - saves FPU registers on stack, currently disabled. 898 // save_doubles - saves FPU registers on stack, currently disabled.
899 // stack_space - extra stack space. 899 // stack_space - extra stack space.
900 void EnterExitFrame(bool save_doubles, 900 void EnterExitFrame(bool save_doubles,
901 int stack_space = 0); 901 int stack_space = 0);
902 902
903 // Leave the current exit frame. 903 // Leave the current exit frame.
904 void LeaveExitFrame(bool save_doubles, 904 void LeaveExitFrame(bool save_doubles, Register arg_count,
905 Register arg_count, 905 bool restore_context, bool do_return = NO_EMIT_RETURN,
906 bool restore_context, 906 bool argument_count_is_length = false);
907 bool do_return = NO_EMIT_RETURN);
908 907
909 // Get the actual activation frame alignment for target environment. 908 // Get the actual activation frame alignment for target environment.
910 static int ActivationFrameAlignment(); 909 static int ActivationFrameAlignment();
911 910
912 // Make sure the stack is aligned. Only emits code in debug mode. 911 // Make sure the stack is aligned. Only emits code in debug mode.
913 void AssertStackIsAligned(); 912 void AssertStackIsAligned();
914 913
915 void LoadContext(Register dst, int context_chain_length); 914 void LoadContext(Register dst, int context_chain_length);
916 915
917 // Conditionally load the cached Array transitioned map of type 916 // Conditionally load the cached Array transitioned map of type
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 // C functions from generated code. 1313 // C functions from generated code.
1315 void MovToFloatParameter(DoubleRegister src); 1314 void MovToFloatParameter(DoubleRegister src);
1316 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2); 1315 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2);
1317 void MovToFloatResult(DoubleRegister src); 1316 void MovToFloatResult(DoubleRegister src);
1318 1317
1319 // Calls an API function. Allocates HandleScope, extracts returned value 1318 // Calls an API function. Allocates HandleScope, extracts returned value
1320 // from handle and propagates exceptions. Restores context. stack_space 1319 // from handle and propagates exceptions. Restores context. stack_space
1321 // - space to be unwound on exit (includes the call JS arguments space and 1320 // - space to be unwound on exit (includes the call JS arguments space and
1322 // the additional space allocated for the fast call). 1321 // the additional space allocated for the fast call).
1323 void CallApiFunctionAndReturn(Register function_address, 1322 void CallApiFunctionAndReturn(Register function_address,
1324 ExternalReference thunk_ref, 1323 ExternalReference thunk_ref, int stack_space,
1325 int stack_space, 1324 MemOperand* stack_space_operand,
1326 MemOperand return_value_operand, 1325 MemOperand return_value_operand,
1327 MemOperand* context_restore_operand); 1326 MemOperand* context_restore_operand);
1328 1327
1329 // Jump to the builtin routine. 1328 // Jump to the builtin routine.
1330 void JumpToExternalReference(const ExternalReference& builtin, 1329 void JumpToExternalReference(const ExternalReference& builtin,
1331 BranchDelaySlot bd = PROTECT); 1330 BranchDelaySlot bd = PROTECT);
1332 1331
1333 // Invoke specified builtin JavaScript function. Adds an entry to 1332 // Invoke specified builtin JavaScript function. Adds an entry to
1334 // the unresolved list if the name does not resolve. 1333 // the unresolved list if the name does not resolve.
1335 void InvokeBuiltin(Builtins::JavaScript id, 1334 void InvokeBuiltin(Builtins::JavaScript id,
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1789 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1788 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1790 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1789 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1791 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1790 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1792 #else 1791 #else
1793 #define ACCESS_MASM(masm) masm-> 1792 #define ACCESS_MASM(masm) masm->
1794 #endif 1793 #endif
1795 1794
1796 } } // namespace v8::internal 1795 } } // namespace v8::internal
1797 1796
1798 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1797 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/mips64/macro-assembler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698