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

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

Issue 97373002: MIPS: Drop IsPregenerated() and allow_stub_calls flag. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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/code-stubs-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 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 1341
1342 // Like Assert(), but always enabled. 1342 // Like Assert(), but always enabled.
1343 void Check(Condition cc, BailoutReason reason, Register rs, Operand rt); 1343 void Check(Condition cc, BailoutReason reason, Register rs, Operand rt);
1344 1344
1345 // Print a message to stdout and abort execution. 1345 // Print a message to stdout and abort execution.
1346 void Abort(BailoutReason msg); 1346 void Abort(BailoutReason msg);
1347 1347
1348 // Verify restrictions about code generated in stubs. 1348 // Verify restrictions about code generated in stubs.
1349 void set_generating_stub(bool value) { generating_stub_ = value; } 1349 void set_generating_stub(bool value) { generating_stub_ = value; }
1350 bool generating_stub() { return generating_stub_; } 1350 bool generating_stub() { return generating_stub_; }
1351 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
1352 bool allow_stub_calls() { return allow_stub_calls_; }
1353 void set_has_frame(bool value) { has_frame_ = value; } 1351 void set_has_frame(bool value) { has_frame_ = value; }
1354 bool has_frame() { return has_frame_; } 1352 bool has_frame() { return has_frame_; }
1355 inline bool AllowThisStubCall(CodeStub* stub); 1353 inline bool AllowThisStubCall(CodeStub* stub);
1356 1354
1357 // --------------------------------------------------------------------------- 1355 // ---------------------------------------------------------------------------
1358 // Number utilities. 1356 // Number utilities.
1359 1357
1360 // Check whether the value of reg is a power of two and not zero. If not 1358 // Check whether the value of reg is a power of two and not zero. If not
1361 // control continues at the label not_power_of_two. If reg is a power of two 1359 // control continues at the label not_power_of_two. If reg is a power of two
1362 // the register scratch contains the value of (reg - 1) when control falls 1360 // the register scratch contains the value of (reg - 1) when control falls
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1639 // Helper for throwing exceptions. Compute a handler address and jump to 1637 // Helper for throwing exceptions. Compute a handler address and jump to
1640 // it. See the implementation for register usage. 1638 // it. See the implementation for register usage.
1641 void JumpToHandlerEntry(); 1639 void JumpToHandlerEntry();
1642 1640
1643 // Compute memory operands for safepoint stack slots. 1641 // Compute memory operands for safepoint stack slots.
1644 static int SafepointRegisterStackIndex(int reg_code); 1642 static int SafepointRegisterStackIndex(int reg_code);
1645 MemOperand SafepointRegisterSlot(Register reg); 1643 MemOperand SafepointRegisterSlot(Register reg);
1646 MemOperand SafepointRegistersAndDoublesSlot(Register reg); 1644 MemOperand SafepointRegistersAndDoublesSlot(Register reg);
1647 1645
1648 bool generating_stub_; 1646 bool generating_stub_;
1649 bool allow_stub_calls_;
1650 bool has_frame_; 1647 bool has_frame_;
1651 // This handle will be patched with the code object on installation. 1648 // This handle will be patched with the code object on installation.
1652 Handle<Object> code_object_; 1649 Handle<Object> code_object_;
1653 1650
1654 // Needs access to SafepointRegisterStackIndex for compiled frame 1651 // Needs access to SafepointRegisterStackIndex for compiled frame
1655 // traversal. 1652 // traversal.
1656 friend class StandardFrame; 1653 friend class StandardFrame;
1657 }; 1654 };
1658 1655
1659 1656
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 1690 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
1694 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1691 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1695 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1692 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1696 #else 1693 #else
1697 #define ACCESS_MASM(masm) masm-> 1694 #define ACCESS_MASM(masm) masm->
1698 #endif 1695 #endif
1699 1696
1700 } } // namespace v8::internal 1697 } } // namespace v8::internal
1701 1698
1702 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1699 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698