OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 // Setup call kind marking in t1. The method takes t1 as an | 614 // Setup call kind marking in t1. The method takes t1 as an |
615 // explicit first parameter to make the code more readable at the | 615 // explicit first parameter to make the code more readable at the |
616 // call sites. | 616 // call sites. |
617 void SetCallKind(Register dst, CallKind kind); | 617 void SetCallKind(Register dst, CallKind kind); |
618 | 618 |
619 // Invoke the JavaScript function code by either calling or jumping. | 619 // Invoke the JavaScript function code by either calling or jumping. |
620 void InvokeCode(Register code, | 620 void InvokeCode(Register code, |
621 const ParameterCount& expected, | 621 const ParameterCount& expected, |
622 const ParameterCount& actual, | 622 const ParameterCount& actual, |
623 InvokeFlag flag, | 623 InvokeFlag flag, |
624 const CallWrapper& call_wrapper = NullCallWrapper(), | 624 const CallWrapper& call_wrapper, |
625 CallKind call_kind = CALL_AS_METHOD); | 625 CallKind call_kind); |
626 | 626 |
627 void InvokeCode(Handle<Code> code, | 627 void InvokeCode(Handle<Code> code, |
628 const ParameterCount& expected, | 628 const ParameterCount& expected, |
629 const ParameterCount& actual, | 629 const ParameterCount& actual, |
630 RelocInfo::Mode rmode, | 630 RelocInfo::Mode rmode, |
631 InvokeFlag flag, | 631 InvokeFlag flag, |
632 CallKind call_kind = CALL_AS_METHOD); | 632 CallKind call_kind); |
633 | 633 |
634 // Invoke the JavaScript function in the given register. Changes the | 634 // Invoke the JavaScript function in the given register. Changes the |
635 // current context to the context in the function before invoking. | 635 // current context to the context in the function before invoking. |
636 void InvokeFunction(Register function, | 636 void InvokeFunction(Register function, |
637 const ParameterCount& actual, | 637 const ParameterCount& actual, |
638 InvokeFlag flag, | 638 InvokeFlag flag, |
639 const CallWrapper& call_wrapper = NullCallWrapper(), | 639 const CallWrapper& call_wrapper, |
640 CallKind call_kind = CALL_AS_METHOD); | 640 CallKind call_kind); |
641 | 641 |
642 void InvokeFunction(JSFunction* function, | 642 void InvokeFunction(JSFunction* function, |
643 const ParameterCount& actual, | 643 const ParameterCount& actual, |
644 InvokeFlag flag); | 644 InvokeFlag flag, |
| 645 CallKind call_kind); |
645 | 646 |
646 | 647 |
647 void IsObjectJSObjectType(Register heap_object, | 648 void IsObjectJSObjectType(Register heap_object, |
648 Register map, | 649 Register map, |
649 Register scratch, | 650 Register scratch, |
650 Label* fail); | 651 Label* fail); |
651 | 652 |
652 void IsInstanceJSObjectType(Register map, | 653 void IsInstanceJSObjectType(Register map, |
653 Register scratch, | 654 Register scratch, |
654 Label* fail); | 655 Label* fail); |
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 Register r1 = zero_reg, const Operand& r2 = Operand(zero_reg), | 1097 Register r1 = zero_reg, const Operand& r2 = Operand(zero_reg), |
1097 BranchDelaySlot bd = PROTECT); | 1098 BranchDelaySlot bd = PROTECT); |
1098 | 1099 |
1099 // Helper functions for generating invokes. | 1100 // Helper functions for generating invokes. |
1100 void InvokePrologue(const ParameterCount& expected, | 1101 void InvokePrologue(const ParameterCount& expected, |
1101 const ParameterCount& actual, | 1102 const ParameterCount& actual, |
1102 Handle<Code> code_constant, | 1103 Handle<Code> code_constant, |
1103 Register code_reg, | 1104 Register code_reg, |
1104 Label* done, | 1105 Label* done, |
1105 InvokeFlag flag, | 1106 InvokeFlag flag, |
1106 const CallWrapper& call_wrapper = NullCallWrapper(), | 1107 const CallWrapper& call_wrapper, |
1107 CallKind call_kind = CALL_AS_METHOD); | 1108 CallKind call_kind); |
1108 | 1109 |
1109 // Get the code for the given builtin. Returns if able to resolve | 1110 // Get the code for the given builtin. Returns if able to resolve |
1110 // the function in the 'resolved' flag. | 1111 // the function in the 'resolved' flag. |
1111 Handle<Code> ResolveBuiltin(Builtins::JavaScript id, bool* resolved); | 1112 Handle<Code> ResolveBuiltin(Builtins::JavaScript id, bool* resolved); |
1112 | 1113 |
1113 // Activation support. | 1114 // Activation support. |
1114 void EnterFrame(StackFrame::Type type); | 1115 void EnterFrame(StackFrame::Type type); |
1115 void LeaveFrame(StackFrame::Type type); | 1116 void LeaveFrame(StackFrame::Type type); |
1116 | 1117 |
1117 void InitializeNewString(Register string, | 1118 void InitializeNewString(Register string, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1203 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1203 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1204 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1204 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1205 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1205 #else | 1206 #else |
1206 #define ACCESS_MASM(masm) masm-> | 1207 #define ACCESS_MASM(masm) masm-> |
1207 #endif | 1208 #endif |
1208 | 1209 |
1209 } } // namespace v8::internal | 1210 } } // namespace v8::internal |
1210 | 1211 |
1211 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1212 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |