Revision: 19520
Author: [email protected]
Date: Thu Feb 20 21:03:26 2014 UTC
Log: MIPS: Add flag for testing long branch mode.
TEST=
BUG=
[email protected], [email protected]
Review URL: https://codereview.chromium.org/173773003
Patch from Dusan Milosavljevic <[email protected]>.
http://code.google.com/p/v8/source/detail?r=19520
Modified:
/branches/bleeding_edge/src/flag-definitions.h
/branches/bleeding_edge/src/mips/assembler-mips.cc
=======================================
--- /branches/bleeding_edge/src/flag-definitions.h Fri Feb 14 14:58:05 2014
UTC
+++ /branches/bleeding_edge/src/flag-definitions.h Thu Feb 20 21:03:26 2014
UTC
@@ -398,6 +398,8 @@
"enable use of d16-d31 registers on ARM - this requires VFP3")
DEFINE_bool(enable_vldr_imm, false,
"enable use of constant pools for double immediate (ARM only)")
+DEFINE_bool(force_long_branches, false,
+ "force all emitted branches to be in long mode (MIPS only)")
// bootstrapper.cc
DEFINE_string(expose_natives_as, NULL, "expose natives in global object")
=======================================
--- /branches/bleeding_edge/src/mips/assembler-mips.cc Fri Dec 6 16:23:49
2013 UTC
+++ /branches/bleeding_edge/src/mips/assembler-mips.cc Thu Feb 20 21:03:26
2014 UTC
@@ -313,11 +313,12 @@
trampoline_pool_blocked_nesting_ = 0;
// We leave space (16 * kTrampolineSlotsSize)
// for BlockTrampolinePoolScope buffer.
- next_buffer_check_ = kMaxBranchOffset - kTrampolineSlotsSize * 16;
+ next_buffer_check_ = FLAG_force_long_branches
+ ? kMaxInt : kMaxBranchOffset - kTrampolineSlotsSize * 16;
internal_trampoline_exception_ = false;
last_bound_pos_ = 0;
- trampoline_emitted_ = false;
+ trampoline_emitted_ = FLAG_force_long_branches;
unbound_labels_count_ = 0;
block_buffer_growth_ = false;
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.