OLD | NEW |
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_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
10 #include "src/frames.h" | 10 #include "src/frames.h" |
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 const ParameterCount& actual, | 323 const ParameterCount& actual, |
324 InvokeFlag flag, | 324 InvokeFlag flag, |
325 const CallWrapper& call_wrapper); | 325 const CallWrapper& call_wrapper); |
326 | 326 |
327 void InvokeFunction(Handle<JSFunction> function, | 327 void InvokeFunction(Handle<JSFunction> function, |
328 const ParameterCount& expected, | 328 const ParameterCount& expected, |
329 const ParameterCount& actual, | 329 const ParameterCount& actual, |
330 InvokeFlag flag, | 330 InvokeFlag flag, |
331 const CallWrapper& call_wrapper); | 331 const CallWrapper& call_wrapper); |
332 | 332 |
333 // Invoke specified builtin JavaScript function. Adds an entry to | 333 // Invoke specified builtin JavaScript function. |
334 // the unresolved list if the name does not resolve. | 334 void InvokeBuiltin(int native_context_index, InvokeFlag flag, |
335 void InvokeBuiltin(Builtins::JavaScript id, | |
336 InvokeFlag flag, | |
337 const CallWrapper& call_wrapper = NullCallWrapper()); | 335 const CallWrapper& call_wrapper = NullCallWrapper()); |
338 | 336 |
339 // Store the function for the given builtin in the target register. | 337 // Store the function for the given builtin in the target register. |
340 void GetBuiltinFunction(Register target, Builtins::JavaScript id); | 338 void GetBuiltinFunction(Register target, int native_context_index); |
341 | 339 |
342 // Store the code object for the given builtin in the target register. | 340 // Store the code object for the given builtin in the target register. |
343 void GetBuiltinEntry(Register target, Builtins::JavaScript id); | 341 void GetBuiltinEntry(Register target, int native_context_index); |
344 | 342 |
345 // Expression support | 343 // Expression support |
346 // Support for constant splitting. | 344 // Support for constant splitting. |
347 bool IsUnsafeImmediate(const Immediate& x); | 345 bool IsUnsafeImmediate(const Immediate& x); |
348 void SafeMove(Register dst, const Immediate& x); | 346 void SafeMove(Register dst, const Immediate& x); |
349 void SafePush(const Immediate& x); | 347 void SafePush(const Immediate& x); |
350 | 348 |
351 // Compare object type for heap object. | 349 // Compare object type for heap object. |
352 // Incoming register is heap_object and outgoing register is map. | 350 // Incoming register is heap_object and outgoing register is map. |
353 void CmpObjectType(Register heap_object, InstanceType type, Register map); | 351 void CmpObjectType(Register heap_object, InstanceType type, Register map); |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1063 } \ | 1061 } \ |
1064 masm-> | 1062 masm-> |
1065 #else | 1063 #else |
1066 #define ACCESS_MASM(masm) masm-> | 1064 #define ACCESS_MASM(masm) masm-> |
1067 #endif | 1065 #endif |
1068 | 1066 |
1069 | 1067 |
1070 } } // namespace v8::internal | 1068 } } // namespace v8::internal |
1071 | 1069 |
1072 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1070 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |