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

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

Issue 10938026: Merged r12086, r12478 into 3.10 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.10
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 2371 matching lines...) Expand 10 before | Expand all | Expand 10 after
2382 InstanceofStub stub(flags); 2382 InstanceofStub stub(flags);
2383 2383
2384 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); 2384 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters);
2385 2385
2386 // Get the temp register reserved by the instruction. This needs to be r4 as 2386 // Get the temp register reserved by the instruction. This needs to be r4 as
2387 // its slot of the pushing of safepoint registers is used to communicate the 2387 // its slot of the pushing of safepoint registers is used to communicate the
2388 // offset to the location of the map check. 2388 // offset to the location of the map check.
2389 Register temp = ToRegister(instr->TempAt(0)); 2389 Register temp = ToRegister(instr->TempAt(0));
2390 ASSERT(temp.is(r4)); 2390 ASSERT(temp.is(r4));
2391 __ LoadHeapObject(InstanceofStub::right(), instr->function()); 2391 __ LoadHeapObject(InstanceofStub::right(), instr->function());
2392 static const int kAdditionalDelta = 4; 2392 static const int kAdditionalDelta = 5;
2393 int delta = masm_->InstructionsGeneratedSince(map_check) + kAdditionalDelta; 2393 int delta = masm_->InstructionsGeneratedSince(map_check) + kAdditionalDelta;
2394 Label before_push_delta; 2394 Label before_push_delta;
2395 __ bind(&before_push_delta); 2395 __ bind(&before_push_delta);
2396 __ BlockConstPoolFor(kAdditionalDelta); 2396 __ BlockConstPoolFor(kAdditionalDelta);
2397 __ mov(temp, Operand(delta * kPointerSize)); 2397 __ mov(temp, Operand(delta * kPointerSize));
2398 // The mov above can generate one or two instructions. The delta was computed
2399 // for two instructions, so we need to pad here in case of one instruction.
2400 if (masm_->InstructionsGeneratedSince(&before_push_delta) != 2) {
2401 ASSERT_EQ(1, masm_->InstructionsGeneratedSince(&before_push_delta));
2402 __ nop();
2403 }
2398 __ StoreToSafepointRegisterSlot(temp, temp); 2404 __ StoreToSafepointRegisterSlot(temp, temp);
2399 CallCodeGeneric(stub.GetCode(), 2405 CallCodeGeneric(stub.GetCode(),
2400 RelocInfo::CODE_TARGET, 2406 RelocInfo::CODE_TARGET,
2401 instr, 2407 instr,
2402 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); 2408 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS);
2403 LEnvironment* env = instr->GetDeferredLazyDeoptimizationEnvironment(); 2409 LEnvironment* env = instr->GetDeferredLazyDeoptimizationEnvironment();
2404 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 2410 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
2405 // Put the result value into the result register slot and 2411 // Put the result value into the result register slot and
2406 // restore all registers. 2412 // restore all registers.
2407 __ StoreToSafepointRegisterSlot(result, result); 2413 __ StoreToSafepointRegisterSlot(result, result);
(...skipping 2916 matching lines...) Expand 10 before | Expand all | Expand 10 after
5324 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5330 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5325 __ ldr(result, FieldMemOperand(scratch, 5331 __ ldr(result, FieldMemOperand(scratch,
5326 FixedArray::kHeaderSize - kPointerSize)); 5332 FixedArray::kHeaderSize - kPointerSize));
5327 __ bind(&done); 5333 __ bind(&done);
5328 } 5334 }
5329 5335
5330 5336
5331 #undef __ 5337 #undef __
5332 5338
5333 } } // namespace v8::internal 5339 } } // 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