1
// Copyright 2011 the V8 project authors. All rights reserved.
1
// Copyright 2012 the V8 project authors. All rights reserved.
2
2
// Redistribution and use in source and binary forms, with or without
3
3
// modification, are permitted provided that the following conditions are
40
40
(entry(p0, p1, p2, p3, p4))
42
42
typedef int (*regexp_matcher)(String*, int, const byte*,
43
const byte*, int*, Address, int, Isolate*);
43
const byte*, int*, int, Address, int, Isolate*);
45
45
// Call the generated regexp code directly. The code at the entry address should
46
46
// expect eight int/pointer sized arguments and return an int.
47
#define CALL_GENERATED_REGEXP_CODE(entry, p0, p1, p2, p3, p4, p5, p6, p7) \
48
(FUNCTION_CAST<regexp_matcher>(entry)(p0, p1, p2, p3, p4, p5, p6, p7))
47
#define CALL_GENERATED_REGEXP_CODE(entry, p0, p1, p2, p3, p4, p5, p6, p7, p8) \
48
(FUNCTION_CAST<regexp_matcher>(entry)(p0, p1, p2, p3, p4, p5, p6, p7, p8))
50
50
#define TRY_CATCH_FROM_ADDRESS(try_catch_address) \
51
51
(reinterpret_cast<TryCatch*>(try_catch_address))