30 #if defined(V8_TARGET_ARCH_ARM)
38 #define __ ACCESS_MASM(masm)
61 ASSERT(!masm->has_frame());
62 masm->set_has_frame(
true);
69 masm->set_has_frame(
false);
77 MacroAssembler* masm) {
88 __ RecordWriteField(
r2,
100 MacroAssembler* masm, Label* fail) {
109 Label loop, entry, convert_hole, gc_required, only_change_map, done;
115 __ CompareRoot(
r4, Heap::kEmptyFixedArrayRootIndex);
116 __ b(
eq, &only_change_map);
132 Label aligned, aligned_done;
134 __ mov(
ip, Operand(masm->isolate()->factory()->one_pointer_filler_map()));
145 __ bind(&aligned_done);
148 __ LoadRoot(
r9, Heap::kFixedDoubleArrayMapRootIndex);
154 __ RecordWriteField(
r2,
165 __ RecordWriteField(
r2,
185 if (!vfp2_supported)
__ Push(
r1,
r0);
189 __ bind(&only_change_map);
191 __ RecordWriteField(
r2,
202 __ bind(&gc_required);
210 __ UntagAndJumpIfNotSmi(
r9,
r9, &convert_hole);
213 if (vfp2_supported) {
214 CpuFeatures::Scope scope(
VFP2);
218 __ add(
r7,
r7, Operand(8));
233 __ bind(&convert_hole);
234 if (FLAG_debug_code) {
237 __ orr(
r9,
r9, Operand(1));
238 __ CompareRoot(
r9, Heap::kTheHoleValueRootIndex);
239 __ Assert(
eq,
"object found in smi-only array");
247 if (!vfp2_supported)
__ Pop(
r1,
r0);
254 MacroAssembler* masm, Label* fail) {
263 Label entry, loop, convert_hole, gc_required, only_change_map;
268 __ CompareRoot(
r4, Heap::kEmptyFixedArrayRootIndex);
269 __ b(
eq, &only_change_map);
283 __ LoadRoot(
r9, Heap::kFixedArrayMapRootIndex);
292 __ LoadRoot(
r7, Heap::kTheHoleValueRootIndex);
293 __ LoadRoot(
r9, Heap::kHeapNumberMapRootIndex);
304 __ bind(&gc_required);
314 __ b(
eq, &convert_hole);
317 __ AllocateHeapNumber(
r2,
r0,
lr,
r9, &gc_required);
333 __ bind(&convert_hole);
343 __ RecordWriteField(
r2,
353 __ bind(&only_change_map);
356 __ RecordWriteField(
r2,
371 Label* call_runtime) {
377 Label check_sequential;
379 __ b(
eq, &check_sequential);
384 __ b(
eq, &cons_string);
387 Label indirect_string_loaded;
391 __ jmp(&indirect_string_loaded);
398 __ bind(&cons_string);
400 __ CompareRoot(result, Heap::kEmptyStringRootIndex);
401 __ b(
ne, call_runtime);
405 __ bind(&indirect_string_loaded);
412 Label external_string, check_encoding;
413 __ bind(&check_sequential);
416 __ b(
ne, &external_string);
423 __ jmp(&check_encoding);
426 __ bind(&external_string);
427 if (FLAG_debug_code) {
431 __ Assert(
eq,
"external string expected, but not found");
436 __ b(
ne, call_runtime);
440 __ bind(&check_encoding);
457 #endif // V8_TARGET_ARCH_ARM
static const int kResourceDataOffset
STATIC_CHECK((kStringRepresentationMask|kStringEncodingMask)==Internals::kFullStringRepresentationMask)
const intptr_t kDoubleAlignmentMask
const uint32_t kTwoByteStringTag
static bool IsSupported(CpuFeature f)
#define ASSERT(condition)
virtual void AfterCall(MacroAssembler *masm) const
double(* UnaryMathFunction)(double x)
const uint32_t kStringRepresentationMask
const uint32_t kShortExternalStringMask
static const int kFirstOffset
static const int kParentOffset
STATIC_ASSERT((FixedDoubleArray::kHeaderSize &kDoubleAlignmentMask)==0)
static const int kValueOffset
const uint32_t kHoleNanUpper32
const uint32_t kIsIndirectStringMask
const uint32_t kHoleNanLower32
UnaryMathFunction CreateSqrtFunction()
static void GenerateSmiToDouble(MacroAssembler *masm, Label *fail)
const uint32_t kShortExternalStringTag
static void GenerateMapChangeElementsTransition(MacroAssembler *masm)
static void Generate(MacroAssembler *masm, Register string, Register index, Register result, Label *call_runtime)
static const int kHeaderSize
static const int kElementsOffset
static const int kOffsetOffset
static const int kHeaderSize
static const int kMapOffset
static void GenerateDoubleToObject(MacroAssembler *masm, Label *fail)
const uint32_t kSlicedNotConsMask
static const int kLengthOffset
static void ConvertIntToDouble(MacroAssembler *masm, Register int_scratch, Destination destination, DwVfpRegister double_dst, Register dst1, Register dst2, Register scratch2, SwVfpRegister single_scratch)
static const int kSecondOffset
MemOperand FieldMemOperand(Register object, int offset)
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if NULL
virtual void BeforeCall(MacroAssembler *masm) const
UnaryMathFunction CreateTranscendentalFunction(TranscendentalCache::Type type)
const uint32_t kStringEncodingMask
static const int kInstanceTypeOffset