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

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

Issue 860013002: move CallApiFunctionAndReturn to code-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/code-stubs-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 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 void MovFromFloatParameter(DoubleRegister dst); 1278 void MovFromFloatParameter(DoubleRegister dst);
1279 1279
1280 // There are two ways of passing double arguments on MIPS, depending on 1280 // There are two ways of passing double arguments on MIPS, depending on
1281 // whether soft or hard floating point ABI is used. These functions 1281 // whether soft or hard floating point ABI is used. These functions
1282 // abstract parameter passing for the three different ways we call 1282 // abstract parameter passing for the three different ways we call
1283 // C functions from generated code. 1283 // C functions from generated code.
1284 void MovToFloatParameter(DoubleRegister src); 1284 void MovToFloatParameter(DoubleRegister src);
1285 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2); 1285 void MovToFloatParameters(DoubleRegister src1, DoubleRegister src2);
1286 void MovToFloatResult(DoubleRegister src); 1286 void MovToFloatResult(DoubleRegister src);
1287 1287
1288 // Calls an API function. Allocates HandleScope, extracts returned value
1289 // from handle and propagates exceptions. Restores context. stack_space
1290 // - space to be unwound on exit (includes the call JS arguments space and
1291 // the additional space allocated for the fast call).
1292 void CallApiFunctionAndReturn(Register function_address,
1293 ExternalReference thunk_ref, int stack_space,
1294 MemOperand* stack_space_operand,
1295 MemOperand return_value_operand,
1296 MemOperand* context_restore_operand);
1297
1298 // Jump to the builtin routine. 1288 // Jump to the builtin routine.
1299 void JumpToExternalReference(const ExternalReference& builtin, 1289 void JumpToExternalReference(const ExternalReference& builtin,
1300 BranchDelaySlot bd = PROTECT); 1290 BranchDelaySlot bd = PROTECT);
1301 1291
1302 // Invoke specified builtin JavaScript function. Adds an entry to 1292 // Invoke specified builtin JavaScript function. Adds an entry to
1303 // the unresolved list if the name does not resolve. 1293 // the unresolved list if the name does not resolve.
1304 void InvokeBuiltin(Builtins::JavaScript id, 1294 void InvokeBuiltin(Builtins::JavaScript id,
1305 InvokeFlag flag, 1295 InvokeFlag flag,
1306 const CallWrapper& call_wrapper = NullCallWrapper()); 1296 const CallWrapper& call_wrapper = NullCallWrapper());
1307 1297
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
1722 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1712 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1723 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1713 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1724 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1714 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1725 #else 1715 #else
1726 #define ACCESS_MASM(masm) masm-> 1716 #define ACCESS_MASM(masm) masm->
1727 #endif 1717 #endif
1728 1718
1729 } } // namespace v8::internal 1719 } } // namespace v8::internal
1730 1720
1731 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1721 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698