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

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

Issue 112863002: Merge bleeding_edge 18021:18297 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 7 years 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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 594
595 DEFINE_INSTRUCTION(Slt); 595 DEFINE_INSTRUCTION(Slt);
596 DEFINE_INSTRUCTION(Sltu); 596 DEFINE_INSTRUCTION(Sltu);
597 597
598 // MIPS32 R2 instruction macro. 598 // MIPS32 R2 instruction macro.
599 DEFINE_INSTRUCTION(Ror); 599 DEFINE_INSTRUCTION(Ror);
600 600
601 #undef DEFINE_INSTRUCTION 601 #undef DEFINE_INSTRUCTION
602 #undef DEFINE_INSTRUCTION2 602 #undef DEFINE_INSTRUCTION2
603 603
604 void Pref(int32_t hint, const MemOperand& rs);
605
604 606
605 // --------------------------------------------------------------------------- 607 // ---------------------------------------------------------------------------
606 // Pseudo-instructions. 608 // Pseudo-instructions.
607 609
608 void mov(Register rd, Register rt) { or_(rd, rt, zero_reg); } 610 void mov(Register rd, Register rt) { or_(rd, rt, zero_reg); }
609 611
612 void Ulw(Register rd, const MemOperand& rs);
613 void Usw(Register rd, const MemOperand& rs);
614
610 // Load int32 in the rd register. 615 // Load int32 in the rd register.
611 void li(Register rd, Operand j, LiFlags mode = OPTIMIZE_SIZE); 616 void li(Register rd, Operand j, LiFlags mode = OPTIMIZE_SIZE);
612 inline void li(Register rd, int32_t j, LiFlags mode = OPTIMIZE_SIZE) { 617 inline void li(Register rd, int32_t j, LiFlags mode = OPTIMIZE_SIZE) {
613 li(rd, Operand(j), mode); 618 li(rd, Operand(j), mode);
614 } 619 }
615 void li(Register dst, Handle<Object> value, LiFlags mode = OPTIMIZE_SIZE); 620 void li(Register dst, Handle<Object> value, LiFlags mode = OPTIMIZE_SIZE);
616 621
617 // Push multiple registers on the stack. 622 // Push multiple registers on the stack.
618 // Registers are saved in numerical order, with higher numbered registers 623 // Registers are saved in numerical order, with higher numbered registers
619 // saved in higher memory addresses. 624 // saved in higher memory addresses.
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 CallKind call_kind); 915 CallKind call_kind);
911 916
912 // Invoke the JavaScript function in the given register. Changes the 917 // Invoke the JavaScript function in the given register. Changes the
913 // current context to the context in the function before invoking. 918 // current context to the context in the function before invoking.
914 void InvokeFunction(Register function, 919 void InvokeFunction(Register function,
915 const ParameterCount& actual, 920 const ParameterCount& actual,
916 InvokeFlag flag, 921 InvokeFlag flag,
917 const CallWrapper& call_wrapper, 922 const CallWrapper& call_wrapper,
918 CallKind call_kind); 923 CallKind call_kind);
919 924
925 void InvokeFunction(Register function,
926 const ParameterCount& expected,
927 const ParameterCount& actual,
928 InvokeFlag flag,
929 const CallWrapper& call_wrapper,
930 CallKind call_kind);
931
920 void InvokeFunction(Handle<JSFunction> function, 932 void InvokeFunction(Handle<JSFunction> function,
921 const ParameterCount& expected, 933 const ParameterCount& expected,
922 const ParameterCount& actual, 934 const ParameterCount& actual,
923 InvokeFlag flag, 935 InvokeFlag flag,
924 const CallWrapper& call_wrapper, 936 const CallWrapper& call_wrapper,
925 CallKind call_kind); 937 CallKind call_kind);
926 938
927 939
928 void IsObjectJSObjectType(Register heap_object, 940 void IsObjectJSObjectType(Register heap_object,
929 Register map, 941 Register map,
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 1346
1335 // Like Assert(), but always enabled. 1347 // Like Assert(), but always enabled.
1336 void Check(Condition cc, BailoutReason reason, Register rs, Operand rt); 1348 void Check(Condition cc, BailoutReason reason, Register rs, Operand rt);
1337 1349
1338 // Print a message to stdout and abort execution. 1350 // Print a message to stdout and abort execution.
1339 void Abort(BailoutReason msg); 1351 void Abort(BailoutReason msg);
1340 1352
1341 // Verify restrictions about code generated in stubs. 1353 // Verify restrictions about code generated in stubs.
1342 void set_generating_stub(bool value) { generating_stub_ = value; } 1354 void set_generating_stub(bool value) { generating_stub_ = value; }
1343 bool generating_stub() { return generating_stub_; } 1355 bool generating_stub() { return generating_stub_; }
1344 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
1345 bool allow_stub_calls() { return allow_stub_calls_; }
1346 void set_has_frame(bool value) { has_frame_ = value; } 1356 void set_has_frame(bool value) { has_frame_ = value; }
1347 bool has_frame() { return has_frame_; } 1357 bool has_frame() { return has_frame_; }
1348 inline bool AllowThisStubCall(CodeStub* stub); 1358 inline bool AllowThisStubCall(CodeStub* stub);
1349 1359
1350 // --------------------------------------------------------------------------- 1360 // ---------------------------------------------------------------------------
1351 // Number utilities. 1361 // Number utilities.
1352 1362
1353 // Check whether the value of reg is a power of two and not zero. If not 1363 // Check whether the value of reg is a power of two and not zero. If not
1354 // control continues at the label not_power_of_two. If reg is a power of two 1364 // control continues at the label not_power_of_two. If reg is a power of two
1355 // the register scratch contains the value of (reg - 1) when control falls 1365 // the register scratch contains the value of (reg - 1) when control falls
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 // Helper for throwing exceptions. Compute a handler address and jump to 1642 // Helper for throwing exceptions. Compute a handler address and jump to
1633 // it. See the implementation for register usage. 1643 // it. See the implementation for register usage.
1634 void JumpToHandlerEntry(); 1644 void JumpToHandlerEntry();
1635 1645
1636 // Compute memory operands for safepoint stack slots. 1646 // Compute memory operands for safepoint stack slots.
1637 static int SafepointRegisterStackIndex(int reg_code); 1647 static int SafepointRegisterStackIndex(int reg_code);
1638 MemOperand SafepointRegisterSlot(Register reg); 1648 MemOperand SafepointRegisterSlot(Register reg);
1639 MemOperand SafepointRegistersAndDoublesSlot(Register reg); 1649 MemOperand SafepointRegistersAndDoublesSlot(Register reg);
1640 1650
1641 bool generating_stub_; 1651 bool generating_stub_;
1642 bool allow_stub_calls_;
1643 bool has_frame_; 1652 bool has_frame_;
1644 // This handle will be patched with the code object on installation. 1653 // This handle will be patched with the code object on installation.
1645 Handle<Object> code_object_; 1654 Handle<Object> code_object_;
1646 1655
1647 // Needs access to SafepointRegisterStackIndex for compiled frame 1656 // Needs access to SafepointRegisterStackIndex for compiled frame
1648 // traversal. 1657 // traversal.
1649 friend class StandardFrame; 1658 friend class StandardFrame;
1650 }; 1659 };
1651 1660
1652 1661
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1686 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1695 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1687 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1696 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1688 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1697 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1689 #else 1698 #else
1690 #define ACCESS_MASM(masm) masm-> 1699 #define ACCESS_MASM(masm) masm->
1691 #endif 1700 #endif
1692 1701
1693 } } // namespace v8::internal 1702 } } // namespace v8::internal
1694 1703
1695 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1704 #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