OLD | NEW |
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Running without a simulator on a native arm platform. | 42 // Running without a simulator on a native arm platform. |
43 | 43 |
44 namespace v8 { | 44 namespace v8 { |
45 namespace internal { | 45 namespace internal { |
46 | 46 |
47 // When running without a simulator we call the entry directly. | 47 // When running without a simulator we call the entry directly. |
48 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \ | 48 #define CALL_GENERATED_CODE(entry, p0, p1, p2, p3, p4) \ |
49 (entry(p0, p1, p2, p3, p4)) | 49 (entry(p0, p1, p2, p3, p4)) |
50 | 50 |
51 typedef int (*arm_regexp_matcher)(String*, int, const byte*, const byte*, | 51 typedef int (*arm_regexp_matcher)(String*, int, const byte*, const byte*, |
52 void*, int*, Address, int); | 52 void*, int*, Address, int, Isolate*); |
53 | 53 |
54 | 54 |
55 // Call the generated regexp code directly. The code at the entry address | 55 // Call the generated regexp code directly. The code at the entry address |
56 // should act as a function matching the type arm_regexp_matcher. | 56 // should act as a function matching the type arm_regexp_matcher. |
57 // The fifth argument is a dummy that reserves the space used for | 57 // The fifth argument is a dummy that reserves the space used for |
58 // the return address added by the ExitFrame in native calls. | 58 // the return address added by the ExitFrame in native calls. |
59 #define CALL_GENERATED_REGEXP_CODE(entry, p0, p1, p2, p3, p4, p5, p6, p7) \ | 59 #define CALL_GENERATED_REGEXP_CODE(entry, p0, p1, p2, p3, p4, p5, p6, p7) \ |
60 (FUNCTION_CAST<arm_regexp_matcher>(entry)( \ | 60 (FUNCTION_CAST<arm_regexp_matcher>(entry)( \ |
61 p0, p1, p2, p3, NULL, p4, p5, p6, p7)) | 61 p0, p1, p2, p3, NULL, p4, p5, p6, p7)) |
62 | 62 |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 | 398 |
399 static inline void UnregisterCTryCatch() { | 399 static inline void UnregisterCTryCatch() { |
400 Simulator::current(Isolate::Current())->PopAddress(); | 400 Simulator::current(Isolate::Current())->PopAddress(); |
401 } | 401 } |
402 }; | 402 }; |
403 | 403 |
404 } } // namespace v8::internal | 404 } } // namespace v8::internal |
405 | 405 |
406 #endif // !defined(USE_SIMULATOR) | 406 #endif // !defined(USE_SIMULATOR) |
407 #endif // V8_ARM_SIMULATOR_ARM_H_ | 407 #endif // V8_ARM_SIMULATOR_ARM_H_ |
OLD | NEW |