| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 | 224 |
| 225 struct Unresolved { | 225 struct Unresolved { |
| 226 int pc; | 226 int pc; |
| 227 uint32_t flags; // see Bootstrapper::FixupFlags decoders/encoders. | 227 uint32_t flags; // see Bootstrapper::FixupFlags decoders/encoders. |
| 228 const char* name; | 228 const char* name; |
| 229 }; | 229 }; |
| 230 List<Unresolved>* unresolved() { return &unresolved_; } | 230 List<Unresolved>* unresolved() { return &unresolved_; } |
| 231 | 231 |
| 232 | 232 |
| 233 // --------------------------------------------------------------------------- | 233 // --------------------------------------------------------------------------- |
| 234 // StatsCounter support |
| 235 |
| 236 void SetCounter(StatsCounter* counter, int value, |
| 237 Register scratch1, Register scratch2); |
| 238 void IncrementCounter(StatsCounter* counter, int value, |
| 239 Register scratch1, Register scratch2); |
| 240 void DecrementCounter(StatsCounter* counter, int value, |
| 241 Register scratch1, Register scratch2); |
| 242 |
| 243 |
| 244 // --------------------------------------------------------------------------- |
| 234 // Debugging | 245 // Debugging |
| 235 | 246 |
| 236 // Calls Abort(msg) if the condition cc is not satisfied. | 247 // Calls Abort(msg) if the condition cc is not satisfied. |
| 237 // Use --debug_code to enable. | 248 // Use --debug_code to enable. |
| 238 void Assert(Condition cc, const char* msg); | 249 void Assert(Condition cc, const char* msg); |
| 239 | 250 |
| 240 // Like Assert(), but always enabled. | 251 // Like Assert(), but always enabled. |
| 241 void Check(Condition cc, const char* msg); | 252 void Check(Condition cc, const char* msg); |
| 242 | 253 |
| 243 // Print a message to stdout and abort execution. | 254 // Print a message to stdout and abort execution. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 // Generate a MemOperand for loading a field from an object. | 289 // Generate a MemOperand for loading a field from an object. |
| 279 static inline MemOperand FieldMemOperand(Register object, int offset) { | 290 static inline MemOperand FieldMemOperand(Register object, int offset) { |
| 280 return MemOperand(object, offset - kHeapObjectTag); | 291 return MemOperand(object, offset - kHeapObjectTag); |
| 281 } | 292 } |
| 282 | 293 |
| 283 | 294 |
| 284 | 295 |
| 285 } } // namespace v8::internal | 296 } } // namespace v8::internal |
| 286 | 297 |
| 287 #endif // V8_MACRO_ASSEMBLER_ARM_H_ | 298 #endif // V8_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |