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

Unified Diff: src/x64/lithium-codegen-x64.h

Issue 316023002: --debug-code: sanity-checking instrumentation for Lithium object accesses (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: src/x64/lithium-codegen-x64.h
diff --git a/src/x64/lithium-codegen-x64.h b/src/x64/lithium-codegen-x64.h
index fb58a53cf2c65cc875ac6dfcc3ca228a60db6b54..a368c615f8a1989d5d28dcb0f4985c532def040e 100644
--- a/src/x64/lithium-codegen-x64.h
+++ b/src/x64/lithium-codegen-x64.h
@@ -104,6 +104,15 @@ class LCodeGen: public LCodeGenBase {
// Emit frame translation commands for an environment.
void WriteTranslation(LEnvironment* environment, Translation* translation);
+#ifdef DEBUG
+ void EmitKeyedAccessCheck(LOperand* elements, Operand operand);
+ void EmitObjectAccessChecks(HObjectAccess* access, Register object,
+ bool is_store);
+ void EmitCheckMap(Register object, Handle<Map> map);
+ void EmitCheckInstanceType(Register object, InstanceType type,
+ Condition condition = equal);
+#endif
+
// Declare methods that deal with the individual node types.
#define DECLARE_DO(type) void Do##type(L##type* node);
LITHIUM_CONCRETE_INSTRUCTION_LIST(DECLARE_DO)

Powered by Google App Engine
This is Rietveld 408576698