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 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 // current context to the context in the function before invoking. | 823 // current context to the context in the function before invoking. |
824 void InvokeFunction(Register function, | 824 void InvokeFunction(Register function, |
825 const ParameterCount& actual, | 825 const ParameterCount& actual, |
826 InvokeFlag flag, | 826 InvokeFlag flag, |
827 const CallWrapper& call_wrapper, | 827 const CallWrapper& call_wrapper, |
828 CallKind call_kind); | 828 CallKind call_kind); |
829 | 829 |
830 void InvokeFunction(Handle<JSFunction> function, | 830 void InvokeFunction(Handle<JSFunction> function, |
831 const ParameterCount& actual, | 831 const ParameterCount& actual, |
832 InvokeFlag flag, | 832 InvokeFlag flag, |
| 833 const CallWrapper& call_wrapper, |
833 CallKind call_kind); | 834 CallKind call_kind); |
834 | 835 |
835 | 836 |
836 void IsObjectJSObjectType(Register heap_object, | 837 void IsObjectJSObjectType(Register heap_object, |
837 Register map, | 838 Register map, |
838 Register scratch, | 839 Register scratch, |
839 Label* fail); | 840 Label* fail); |
840 | 841 |
841 void IsInstanceJSObjectType(Register map, | 842 void IsInstanceJSObjectType(Register map, |
842 Register scratch, | 843 Register scratch, |
(...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1362 void J(Label* L, BranchDelaySlot bdslot); | 1363 void J(Label* L, BranchDelaySlot bdslot); |
1363 void Jr(Label* L, BranchDelaySlot bdslot); | 1364 void Jr(Label* L, BranchDelaySlot bdslot); |
1364 void Jalr(Label* L, BranchDelaySlot bdslot); | 1365 void Jalr(Label* L, BranchDelaySlot bdslot); |
1365 | 1366 |
1366 // Helper functions for generating invokes. | 1367 // Helper functions for generating invokes. |
1367 void InvokePrologue(const ParameterCount& expected, | 1368 void InvokePrologue(const ParameterCount& expected, |
1368 const ParameterCount& actual, | 1369 const ParameterCount& actual, |
1369 Handle<Code> code_constant, | 1370 Handle<Code> code_constant, |
1370 Register code_reg, | 1371 Register code_reg, |
1371 Label* done, | 1372 Label* done, |
| 1373 bool* definitely_mismatches, |
1372 InvokeFlag flag, | 1374 InvokeFlag flag, |
1373 const CallWrapper& call_wrapper, | 1375 const CallWrapper& call_wrapper, |
1374 CallKind call_kind); | 1376 CallKind call_kind); |
1375 | 1377 |
1376 // Get the code for the given builtin. Returns if able to resolve | 1378 // Get the code for the given builtin. Returns if able to resolve |
1377 // the function in the 'resolved' flag. | 1379 // the function in the 'resolved' flag. |
1378 Handle<Code> ResolveBuiltin(Builtins::JavaScript id, bool* resolved); | 1380 Handle<Code> ResolveBuiltin(Builtins::JavaScript id, bool* resolved); |
1379 | 1381 |
1380 void InitializeNewString(Register string, | 1382 void InitializeNewString(Register string, |
1381 Register length, | 1383 Register length, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1454 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1456 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1455 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1457 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1456 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1458 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1457 #else | 1459 #else |
1458 #define ACCESS_MASM(masm) masm-> | 1460 #define ACCESS_MASM(masm) masm-> |
1459 #endif | 1461 #endif |
1460 | 1462 |
1461 } } // namespace v8::internal | 1463 } } // namespace v8::internal |
1462 | 1464 |
1463 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1465 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |