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

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: Address comment 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/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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 void set_generating_stub(bool value) { generating_stub_ = value; } 1114 void set_generating_stub(bool value) { generating_stub_ = value; }
1115 bool generating_stub() const { return generating_stub_; } 1115 bool generating_stub() const { return generating_stub_; }
1116 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } 1116 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; }
1117 bool allow_stub_calls() const { return allow_stub_calls_; } 1117 bool allow_stub_calls() const { return allow_stub_calls_; }
1118 #if DEBUG 1118 #if DEBUG
1119 void set_allow_macro_instructions(bool value) { 1119 void set_allow_macro_instructions(bool value) {
1120 allow_macro_instructions_ = value; 1120 allow_macro_instructions_ = value;
1121 } 1121 }
1122 bool allow_macro_instructions() const { return allow_macro_instructions_; } 1122 bool allow_macro_instructions() const { return allow_macro_instructions_; }
1123 #endif 1123 #endif
1124 void set_use_real_aborts(bool value) { use_real_aborts_ = value; }
1125 bool use_real_aborts() const { return use_real_aborts_; } 1124 bool use_real_aborts() const { return use_real_aborts_; }
1126 void set_has_frame(bool value) { has_frame_ = value; } 1125 void set_has_frame(bool value) { has_frame_ = value; }
1127 bool has_frame() const { return has_frame_; } 1126 bool has_frame() const { return has_frame_; }
1128 bool AllowThisStubCall(CodeStub* stub); 1127 bool AllowThisStubCall(CodeStub* stub);
1129 1128
1129 class NoUseRealAbortsScope {
1130 public:
1131 explicit NoUseRealAbortsScope(MacroAssembler* masm) :
1132 saved_(masm->use_real_aborts_), masm_(masm) {
1133 masm_->use_real_aborts_ = false;
1134 }
1135 ~NoUseRealAbortsScope() {
1136 masm_->use_real_aborts_ = saved_;
1137 }
1138 private:
1139 bool saved_;
1140 MacroAssembler* masm_;
1141 };
1142
1130 #ifdef ENABLE_DEBUGGER_SUPPORT 1143 #ifdef ENABLE_DEBUGGER_SUPPORT
1131 // --------------------------------------------------------------------------- 1144 // ---------------------------------------------------------------------------
1132 // Debugger Support 1145 // Debugger Support
1133 1146
1134 void DebugBreak(); 1147 void DebugBreak();
1135 #endif 1148 #endif
1136 // --------------------------------------------------------------------------- 1149 // ---------------------------------------------------------------------------
1137 // Exception handling 1150 // Exception handling
1138 1151
1139 // Push a new try handler and link into try handler chain. 1152 // Push a new try handler and link into try handler chain.
(...skipping 979 matching lines...) Expand 10 before | Expand all | Expand 10 after
2119 #error "Unsupported option" 2132 #error "Unsupported option"
2120 #define CODE_COVERAGE_STRINGIFY(x) #x 2133 #define CODE_COVERAGE_STRINGIFY(x) #x
2121 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) 2134 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x)
2122 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 2135 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
2123 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 2136 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
2124 #else 2137 #else
2125 #define ACCESS_MASM(masm) masm-> 2138 #define ACCESS_MASM(masm) masm->
2126 #endif 2139 #endif
2127 2140
2128 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ 2141 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_
OLDNEW
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698