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_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_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/base/flags.h" | 10 #include "src/base/flags.h" |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 const ParameterCount& actual, | 368 const ParameterCount& actual, |
369 InvokeFlag flag, | 369 InvokeFlag flag, |
370 const CallWrapper& call_wrapper); | 370 const CallWrapper& call_wrapper); |
371 | 371 |
372 void InvokeFunction(Handle<JSFunction> function, | 372 void InvokeFunction(Handle<JSFunction> function, |
373 const ParameterCount& expected, | 373 const ParameterCount& expected, |
374 const ParameterCount& actual, | 374 const ParameterCount& actual, |
375 InvokeFlag flag, | 375 InvokeFlag flag, |
376 const CallWrapper& call_wrapper); | 376 const CallWrapper& call_wrapper); |
377 | 377 |
378 // Invoke specified builtin JavaScript function. Adds an entry to | 378 // Invoke specified builtin JavaScript function. |
379 // the unresolved list if the name does not resolve. | 379 void InvokeBuiltin(int native_context_index, InvokeFlag flag, |
380 void InvokeBuiltin(Builtins::JavaScript id, | |
381 InvokeFlag flag, | |
382 const CallWrapper& call_wrapper = NullCallWrapper()); | 380 const CallWrapper& call_wrapper = NullCallWrapper()); |
383 | 381 |
384 // Store the function for the given builtin in the target register. | 382 // Store the function for the given builtin in the target register. |
385 void GetBuiltinFunction(Register target, Builtins::JavaScript id); | 383 void GetBuiltinFunction(Register target, int native_context_index); |
386 | 384 |
387 // Store the code object for the given builtin in the target register. | 385 // Store the code object for the given builtin in the target register. |
388 void GetBuiltinEntry(Register target, Builtins::JavaScript id); | 386 void GetBuiltinEntry(Register target, int native_context_index); |
389 | 387 |
390 | 388 |
391 // --------------------------------------------------------------------------- | 389 // --------------------------------------------------------------------------- |
392 // Smi tagging, untagging and operations on tagged smis. | 390 // Smi tagging, untagging and operations on tagged smis. |
393 | 391 |
394 // Support for constant splitting. | 392 // Support for constant splitting. |
395 bool IsUnsafeInt(const int32_t x); | 393 bool IsUnsafeInt(const int32_t x); |
396 void SafeMove(Register dst, Smi* src); | 394 void SafeMove(Register dst, Smi* src); |
397 void SafePush(Smi* src); | 395 void SafePush(Smi* src); |
398 | 396 |
(...skipping 1222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1621 masm->popfq(); \ | 1619 masm->popfq(); \ |
1622 } \ | 1620 } \ |
1623 masm-> | 1621 masm-> |
1624 #else | 1622 #else |
1625 #define ACCESS_MASM(masm) masm-> | 1623 #define ACCESS_MASM(masm) masm-> |
1626 #endif | 1624 #endif |
1627 | 1625 |
1628 } } // namespace v8::internal | 1626 } } // namespace v8::internal |
1629 | 1627 |
1630 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1628 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |