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

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

Issue 148933002: A64: Call ProfileEntryHook in JSEntryStub and do not use real aborts in ProfileEntryHook. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Fix name 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
« src/a64/code-stubs-a64.cc ('K') | « src/a64/code-stubs-a64.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 void set_generating_stub(bool value) { generating_stub_ = value; } 1111 void set_generating_stub(bool value) { generating_stub_ = value; }
1112 bool generating_stub() const { return generating_stub_; } 1112 bool generating_stub() const { return generating_stub_; }
1113 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 1113 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
1114 bool allow_stub_calls() const { return allow_stub_calls_; } 1114 bool allow_stub_calls() const { return allow_stub_calls_; }
1115 #if DEBUG 1115 #if DEBUG
1116 void set_allow_macro_instructions(bool value) { 1116 void set_allow_macro_instructions(bool value) {
1117 allow_macro_instructions_ = value; 1117 allow_macro_instructions_ = value;
1118 } 1118 }
1119 bool allow_macro_instructions() const { return allow_macro_instructions_; } 1119 bool allow_macro_instructions() const { return allow_macro_instructions_; }
1120 #endif 1120 #endif
1121 void set_use_real_aborts(bool value) { use_real_aborts_ = value; }
1122 bool use_real_aborts() const { return use_real_aborts_; } 1121 bool use_real_aborts() const { return use_real_aborts_; }
1123 void set_has_frame(bool value) { has_frame_ = value; } 1122 void set_has_frame(bool value) { has_frame_ = value; }
1124 bool has_frame() const { return has_frame_; } 1123 bool has_frame() const { return has_frame_; }
1125 bool AllowThisStubCall(CodeStub* stub); 1124 bool AllowThisStubCall(CodeStub* stub);
1126 1125
1126 class NoUseRealAbortsScope {
1127 public:
1128 explicit NoUseRealAbortsScope(MacroAssembler* masm) :
1129 saved_(masm->use_real_aborts_), masm_(masm) {
1130 masm_->use_real_aborts_ = false;
1131 }
1132 ~NoUseRealAbortsScope() {
1133 masm_->use_real_aborts_ = saved_;
1134 }
1135 private:
1136 bool saved_;
1137 MacroAssembler* masm_;
1138 };
1139
1127 #ifdef ENABLE_DEBUGGER_SUPPORT 1140 #ifdef ENABLE_DEBUGGER_SUPPORT
1128 // --------------------------------------------------------------------------- 1141 // ---------------------------------------------------------------------------
1129 // Debugger Support 1142 // Debugger Support
1130 1143
1131 void DebugBreak(); 1144 void DebugBreak();
1132 #endif 1145 #endif
1133 // --------------------------------------------------------------------------- 1146 // ---------------------------------------------------------------------------
1134 // Exception handling 1147 // Exception handling
1135 1148
1136 // Push a new try handler and link into try handler chain. 1149 // Push a new try handler and link into try handler chain.
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
2116 #error "Unsupported option" 2129 #error "Unsupported option"
2117 #define CODE_COVERAGE_STRINGIFY(x) #x 2130 #define CODE_COVERAGE_STRINGIFY(x) #x
2118 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 2131 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
2119 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 2132 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
2120 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 2133 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
2121 #else 2134 #else
2122 #define ACCESS_MASM(masm) masm-> 2135 #define ACCESS_MASM(masm) masm->
2123 #endif 2136 #endif
2124 2137
2125 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ 2138 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_
OLDNEW
« src/a64/code-stubs-a64.cc ('K') | « src/a64/code-stubs-a64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698