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

Side by Side Diff: src/arm/simulator-arm.h

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 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
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm/simulator-arm.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Push an address onto the JS stack. 178 // Push an address onto the JS stack.
179 uintptr_t PushAddress(uintptr_t address); 179 uintptr_t PushAddress(uintptr_t address);
180 180
181 // Pop an address from the JS stack. 181 // Pop an address from the JS stack.
182 uintptr_t PopAddress(); 182 uintptr_t PopAddress();
183 183
184 // ICache checking. 184 // ICache checking.
185 static void FlushICache(v8::internal::HashMap* i_cache, void* start, 185 static void FlushICache(v8::internal::HashMap* i_cache, void* start,
186 size_t size); 186 size_t size);
187 187
188 // Returns true if pc register contains one of the 'special_values' defined
189 // below (bad_lr, end_sim_pc).
190 bool has_bad_pc() const;
191
188 private: 192 private:
189 enum special_values { 193 enum special_values {
190 // Known bad pc value to ensure that the simulator does not execute 194 // Known bad pc value to ensure that the simulator does not execute
191 // without being properly setup. 195 // without being properly setup.
192 bad_lr = -1, 196 bad_lr = -1,
193 // A pc value used to signal the simulator to stop execution. Generally 197 // A pc value used to signal the simulator to stop execution. Generally
194 // the lr is set to this value on transition from native C code to 198 // the lr is set to this value on transition from native C code to
195 // simulated execution, so that the simulator can "return" to the native 199 // simulated execution, so that the simulator can "return" to the native
196 // C code. 200 // C code.
197 end_sim_pc = -2 201 end_sim_pc = -2
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 static inline void UnregisterCTryCatch() { 395 static inline void UnregisterCTryCatch() {
392 assembler::arm::Simulator::current(v8::internal::Isolate::Current())-> 396 assembler::arm::Simulator::current(v8::internal::Isolate::Current())->
393 PopAddress(); 397 PopAddress();
394 } 398 }
395 }; 399 };
396 400
397 } } // namespace v8::internal 401 } } // namespace v8::internal
398 402
399 #endif // !defined(USE_SIMULATOR) 403 #endif // !defined(USE_SIMULATOR)
400 #endif // V8_ARM_SIMULATOR_ARM_H_ 404 #endif // V8_ARM_SIMULATOR_ARM_H_
OLDNEW
« no previous file with comments | « src/arm/macro-assembler-arm.cc ('k') | src/arm/simulator-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698