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

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 10942026: Merged r12086, r12478 into 3.11 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.11
Patch Set: Created 8 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/version.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 2372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2383 InstanceofStub stub(flags); 2383 InstanceofStub stub(flags);
2384 2384
2385 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); 2385 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters);
2386 2386
2387 // Get the temp register reserved by the instruction. This needs to be r4 as 2387 // Get the temp register reserved by the instruction. This needs to be r4 as
2388 // its slot of the pushing of safepoint registers is used to communicate the 2388 // its slot of the pushing of safepoint registers is used to communicate the
2389 // offset to the location of the map check. 2389 // offset to the location of the map check.
2390 Register temp = ToRegister(instr->TempAt(0)); 2390 Register temp = ToRegister(instr->TempAt(0));
2391 ASSERT(temp.is(r4)); 2391 ASSERT(temp.is(r4));
2392 __ LoadHeapObject(InstanceofStub::right(), instr->function()); 2392 __ LoadHeapObject(InstanceofStub::right(), instr->function());
2393 static const int kAdditionalDelta = 4; 2393 static const int kAdditionalDelta = 5;
2394 int delta = masm_->InstructionsGeneratedSince(map_check) + kAdditionalDelta; 2394 int delta = masm_->InstructionsGeneratedSince(map_check) + kAdditionalDelta;
2395 Label before_push_delta; 2395 Label before_push_delta;
2396 __ bind(&before_push_delta); 2396 __ bind(&before_push_delta);
2397 __ BlockConstPoolFor(kAdditionalDelta); 2397 __ BlockConstPoolFor(kAdditionalDelta);
2398 __ mov(temp, Operand(delta * kPointerSize)); 2398 __ mov(temp, Operand(delta * kPointerSize));
2399 // The mov above can generate one or two instructions. The delta was computed
2400 // for two instructions, so we need to pad here in case of one instruction.
2401 if (masm_->InstructionsGeneratedSince(&before_push_delta) != 2) {
2402 ASSERT_EQ(1, masm_->InstructionsGeneratedSince(&before_push_delta));
2403 __ nop();
2404 }
2399 __ StoreToSafepointRegisterSlot(temp, temp); 2405 __ StoreToSafepointRegisterSlot(temp, temp);
2400 CallCodeGeneric(stub.GetCode(), 2406 CallCodeGeneric(stub.GetCode(),
2401 RelocInfo::CODE_TARGET, 2407 RelocInfo::CODE_TARGET,
2402 instr, 2408 instr,
2403 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); 2409 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS);
2404 LEnvironment* env = instr->GetDeferredLazyDeoptimizationEnvironment(); 2410 LEnvironment* env = instr->GetDeferredLazyDeoptimizationEnvironment();
2405 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 2411 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
2406 // Put the result value into the result register slot and 2412 // Put the result value into the result register slot and
2407 // restore all registers. 2413 // restore all registers.
2408 __ StoreToSafepointRegisterSlot(result, result); 2414 __ StoreToSafepointRegisterSlot(result, result);
(...skipping 2988 matching lines...) Expand 10 before | Expand all | Expand 10 after
5397 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5403 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5398 __ ldr(result, FieldMemOperand(scratch, 5404 __ ldr(result, FieldMemOperand(scratch,
5399 FixedArray::kHeaderSize - kPointerSize)); 5405 FixedArray::kHeaderSize - kPointerSize));
5400 __ bind(&done); 5406 __ bind(&done);
5401 } 5407 }
5402 5408
5403 5409
5404 #undef __ 5410 #undef __
5405 5411
5406 } } // namespace v8::internal 5412 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698