-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1937 from svorenova/lambda_tg2711
[TG-2478] Make Bootstrap methods available in method/instruction conversion
- Loading branch information
Showing
87 changed files
with
803 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ Author: Daniel Kroening, [email protected] | |
#include <util/std_types.h> | ||
#include <util/c_types.h> | ||
#include <util/optional.h> | ||
#include <util/std_expr.h> | ||
|
||
class java_class_typet:public class_typet | ||
{ | ||
|
@@ -30,6 +31,30 @@ class java_class_typet:public class_typet | |
{ | ||
return set(ID_access, access); | ||
} | ||
|
||
typedef std::vector<symbol_exprt> java_lambda_method_handlest; | ||
|
||
const java_lambda_method_handlest &lambda_method_handles() const | ||
{ | ||
return (const java_lambda_method_handlest &)find( | ||
ID_java_lambda_method_handles) | ||
.get_sub(); | ||
} | ||
|
||
java_lambda_method_handlest &lambda_method_handles() | ||
{ | ||
return (java_lambda_method_handlest &)add(ID_java_lambda_method_handles) | ||
.get_sub(); | ||
} | ||
|
||
void add_lambda_method_handle(const irep_idt &identifier) | ||
{ | ||
lambda_method_handles().emplace_back(identifier); | ||
} | ||
void add_unknown_lambda_method_handle() | ||
{ | ||
lambda_method_handles().emplace_back(); | ||
} | ||
}; | ||
|
||
inline const java_class_typet &to_java_class_type(const typet &type) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.