Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/mips/macro-assembler-mips.h

Issue 132623005: A64: Synchronize with r18642. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 887
888 void InitializeRootRegister() { 888 void InitializeRootRegister() {
889 ExternalReference roots_array_start = 889 ExternalReference roots_array_start =
890 ExternalReference::roots_array_start(isolate()); 890 ExternalReference::roots_array_start(isolate());
891 li(kRootRegister, Operand(roots_array_start)); 891 li(kRootRegister, Operand(roots_array_start));
892 } 892 }
893 893
894 // ------------------------------------------------------------------------- 894 // -------------------------------------------------------------------------
895 // JavaScript invokes. 895 // JavaScript invokes.
896 896
897 // Set up call kind marking in t1. The method takes t1 as an
898 // explicit first parameter to make the code more readable at the
899 // call sites.
900 void SetCallKind(Register dst, CallKind kind);
901
902 // Invoke the JavaScript function code by either calling or jumping. 897 // Invoke the JavaScript function code by either calling or jumping.
903 void InvokeCode(Register code, 898 void InvokeCode(Register code,
904 const ParameterCount& expected, 899 const ParameterCount& expected,
905 const ParameterCount& actual, 900 const ParameterCount& actual,
906 InvokeFlag flag, 901 InvokeFlag flag,
907 const CallWrapper& call_wrapper, 902 const CallWrapper& call_wrapper);
908 CallKind call_kind);
909
910 void InvokeCode(Handle<Code> code,
911 const ParameterCount& expected,
912 const ParameterCount& actual,
913 RelocInfo::Mode rmode,
914 InvokeFlag flag,
915 CallKind call_kind);
916 903
917 // Invoke the JavaScript function in the given register. Changes the 904 // Invoke the JavaScript function in the given register. Changes the
918 // current context to the context in the function before invoking. 905 // current context to the context in the function before invoking.
919 void InvokeFunction(Register function, 906 void InvokeFunction(Register function,
920 const ParameterCount& actual, 907 const ParameterCount& actual,
921 InvokeFlag flag, 908 InvokeFlag flag,
922 const CallWrapper& call_wrapper, 909 const CallWrapper& call_wrapper);
923 CallKind call_kind);
924 910
925 void InvokeFunction(Register function, 911 void InvokeFunction(Register function,
926 const ParameterCount& expected, 912 const ParameterCount& expected,
927 const ParameterCount& actual, 913 const ParameterCount& actual,
928 InvokeFlag flag, 914 InvokeFlag flag,
929 const CallWrapper& call_wrapper, 915 const CallWrapper& call_wrapper);
930 CallKind call_kind);
931 916
932 void InvokeFunction(Handle<JSFunction> function, 917 void InvokeFunction(Handle<JSFunction> function,
933 const ParameterCount& expected, 918 const ParameterCount& expected,
934 const ParameterCount& actual, 919 const ParameterCount& actual,
935 InvokeFlag flag, 920 InvokeFlag flag,
936 const CallWrapper& call_wrapper, 921 const CallWrapper& call_wrapper);
937 CallKind call_kind);
938 922
939 923
940 void IsObjectJSObjectType(Register heap_object, 924 void IsObjectJSObjectType(Register heap_object,
941 Register map, 925 Register map,
942 Register scratch, 926 Register scratch,
943 Label* fail); 927 Label* fail);
944 928
945 void IsInstanceJSObjectType(Register map, 929 void IsInstanceJSObjectType(Register map,
946 Register scratch, 930 Register scratch,
947 Label* fail); 931 Label* fail);
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
1609 void Jalr(Label* L, BranchDelaySlot bdslot); 1593 void Jalr(Label* L, BranchDelaySlot bdslot);
1610 1594
1611 // Helper functions for generating invokes. 1595 // Helper functions for generating invokes.
1612 void InvokePrologue(const ParameterCount& expected, 1596 void InvokePrologue(const ParameterCount& expected,
1613 const ParameterCount& actual, 1597 const ParameterCount& actual,
1614 Handle<Code> code_constant, 1598 Handle<Code> code_constant,
1615 Register code_reg, 1599 Register code_reg,
1616 Label* done, 1600 Label* done,
1617 bool* definitely_mismatches, 1601 bool* definitely_mismatches,
1618 InvokeFlag flag, 1602 InvokeFlag flag,
1619 const CallWrapper& call_wrapper, 1603 const CallWrapper& call_wrapper);
1620 CallKind call_kind);
1621 1604
1622 // Get the code for the given builtin. Returns if able to resolve 1605 // Get the code for the given builtin. Returns if able to resolve
1623 // the function in the 'resolved' flag. 1606 // the function in the 'resolved' flag.
1624 Handle<Code> ResolveBuiltin(Builtins::JavaScript id, bool* resolved); 1607 Handle<Code> ResolveBuiltin(Builtins::JavaScript id, bool* resolved);
1625 1608
1626 void InitializeNewString(Register string, 1609 void InitializeNewString(Register string,
1627 Register length, 1610 Register length,
1628 Heap::RootListIndex map_index, 1611 Heap::RootListIndex map_index,
1629 Register scratch1, 1612 Register scratch1,
1630 Register scratch2); 1613 Register scratch2);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1698 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1681 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1699 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1682 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1700 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1683 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1701 #else 1684 #else
1702 #define ACCESS_MASM(masm) masm-> 1685 #define ACCESS_MASM(masm) masm->
1703 #endif 1686 #endif
1704 1687
1705 } } // namespace v8::internal 1688 } } // namespace v8::internal
1706 1689
1707 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1690 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698