| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
| 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "src/arm64/assembler-arm64.h" | 10 #include "src/arm64/assembler-arm64.h" |
| (...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 // Tail call of a runtime routine (jump). | 1138 // Tail call of a runtime routine (jump). |
| 1139 // Like JumpToExternalReference, but also takes care of passing the number | 1139 // Like JumpToExternalReference, but also takes care of passing the number |
| 1140 // of parameters. | 1140 // of parameters. |
| 1141 void TailCallExternalReference(const ExternalReference& ext, | 1141 void TailCallExternalReference(const ExternalReference& ext, |
| 1142 int num_arguments, | 1142 int num_arguments, |
| 1143 int result_size); | 1143 int result_size); |
| 1144 void CallExternalReference(const ExternalReference& ext, | 1144 void CallExternalReference(const ExternalReference& ext, |
| 1145 int num_arguments); | 1145 int num_arguments); |
| 1146 | 1146 |
| 1147 | 1147 |
| 1148 // Invoke specified builtin JavaScript function. Adds an entry to | 1148 // Invoke specified builtin JavaScript function. |
| 1149 // the unresolved list if the name does not resolve. | 1149 void InvokeBuiltin(int native_context_index, InvokeFlag flag, |
| 1150 void InvokeBuiltin(Builtins::JavaScript id, | |
| 1151 InvokeFlag flag, | |
| 1152 const CallWrapper& call_wrapper = NullCallWrapper()); | 1150 const CallWrapper& call_wrapper = NullCallWrapper()); |
| 1153 | 1151 |
| 1154 // Store the code object for the given builtin in the target register and | 1152 // Store the code object for the given builtin in the target register and |
| 1155 // setup the function in the function register. | 1153 // setup the function in the function register. |
| 1156 void GetBuiltinEntry(Register target, | 1154 void GetBuiltinEntry(Register target, Register function, |
| 1157 Register function, | 1155 int native_context_index); |
| 1158 Builtins::JavaScript id); | |
| 1159 | 1156 |
| 1160 // Store the function for the given builtin in the target register. | 1157 // Store the function for the given builtin in the target register. |
| 1161 void GetBuiltinFunction(Register target, Builtins::JavaScript id); | 1158 void GetBuiltinFunction(Register target, int native_context_index); |
| 1162 | 1159 |
| 1163 void Jump(Register target); | 1160 void Jump(Register target); |
| 1164 void Jump(Address target, RelocInfo::Mode rmode); | 1161 void Jump(Address target, RelocInfo::Mode rmode); |
| 1165 void Jump(Handle<Code> code, RelocInfo::Mode rmode); | 1162 void Jump(Handle<Code> code, RelocInfo::Mode rmode); |
| 1166 void Jump(intptr_t target, RelocInfo::Mode rmode); | 1163 void Jump(intptr_t target, RelocInfo::Mode rmode); |
| 1167 | 1164 |
| 1168 void Call(Register target); | 1165 void Call(Register target); |
| 1169 void Call(Label* target); | 1166 void Call(Label* target); |
| 1170 void Call(Address target, RelocInfo::Mode rmode); | 1167 void Call(Address target, RelocInfo::Mode rmode); |
| 1171 void Call(Handle<Code> code, | 1168 void Call(Handle<Code> code, |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 #error "Unsupported option" | 2287 #error "Unsupported option" |
| 2291 #define CODE_COVERAGE_STRINGIFY(x) #x | 2288 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2292 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2289 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2293 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2290 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2294 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2291 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2295 #else | 2292 #else |
| 2296 #define ACCESS_MASM(masm) masm-> | 2293 #define ACCESS_MASM(masm) masm-> |
| 2297 #endif | 2294 #endif |
| 2298 | 2295 |
| 2299 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2296 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
| OLD | NEW |