summaryrefslogtreecommitdiff
path: root/deps/v8/src/arm/codegen-arm.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/arm/codegen-arm.h')
-rw-r--r--deps/v8/src/arm/codegen-arm.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/v8/src/arm/codegen-arm.h b/deps/v8/src/arm/codegen-arm.h
index 1c0d508d2d..d27982abac 100644
--- a/deps/v8/src/arm/codegen-arm.h
+++ b/deps/v8/src/arm/codegen-arm.h
@@ -69,6 +69,16 @@ class CodeGenerator: public AstVisitor {
int pos,
bool right_here = false);
+ // Constants related to patching of inlined load/store.
+ static int GetInlinedKeyedLoadInstructionsAfterPatch() {
+ return FLAG_debug_code ? 32 : 13;
+ }
+ static const int kInlinedKeyedStoreInstructionsAfterPatch = 8;
+ static int GetInlinedNamedStoreInstructionsAfterPatch() {
+ ASSERT(Isolate::Current()->inlined_write_barrier_size() != -1);
+ return Isolate::Current()->inlined_write_barrier_size() + 4;
+ }
+
private:
DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
};