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

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

Issue 10937029: Merged r12086, r12478 into 3.8 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.8
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 2192 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 InstanceofStub stub(flags); 2203 InstanceofStub stub(flags);
2204 2204
2205 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); 2205 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters);
2206 2206
2207 // Get the temp register reserved by the instruction. This needs to be r4 as 2207 // Get the temp register reserved by the instruction. This needs to be r4 as
2208 // its slot of the pushing of safepoint registers is used to communicate the 2208 // its slot of the pushing of safepoint registers is used to communicate the
2209 // offset to the location of the map check. 2209 // offset to the location of the map check.
2210 Register temp = ToRegister(instr->TempAt(0)); 2210 Register temp = ToRegister(instr->TempAt(0));
2211 ASSERT(temp.is(r4)); 2211 ASSERT(temp.is(r4));
2212 __ LoadHeapObject(InstanceofStub::right(), instr->function()); 2212 __ LoadHeapObject(InstanceofStub::right(), instr->function());
2213 static const int kAdditionalDelta = 4; 2213 static const int kAdditionalDelta = 5;
2214 int delta = masm_->InstructionsGeneratedSince(map_check) + kAdditionalDelta; 2214 int delta = masm_->InstructionsGeneratedSince(map_check) + kAdditionalDelta;
2215 Label before_push_delta; 2215 Label before_push_delta;
2216 __ bind(&before_push_delta); 2216 __ bind(&before_push_delta);
2217 __ BlockConstPoolFor(kAdditionalDelta); 2217 __ BlockConstPoolFor(kAdditionalDelta);
2218 __ mov(temp, Operand(delta * kPointerSize)); 2218 __ mov(temp, Operand(delta * kPointerSize));
2219 // The mov above can generate one or two instructions. The delta was computed
2220 // for two instructions, so we need to pad here in case of one instruction.
2221 if (masm_->InstructionsGeneratedSince(&before_push_delta) != 2) {
2222 ASSERT_EQ(1, masm_->InstructionsGeneratedSince(&before_push_delta));
2223 __ nop();
2224 }
2219 __ StoreToSafepointRegisterSlot(temp, temp); 2225 __ StoreToSafepointRegisterSlot(temp, temp);
2220 CallCodeGeneric(stub.GetCode(), 2226 CallCodeGeneric(stub.GetCode(),
2221 RelocInfo::CODE_TARGET, 2227 RelocInfo::CODE_TARGET,
2222 instr, 2228 instr,
2223 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); 2229 RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS);
2224 ASSERT(instr->HasDeoptimizationEnvironment()); 2230 ASSERT(instr->HasDeoptimizationEnvironment());
2225 LEnvironment* env = instr->deoptimization_environment(); 2231 LEnvironment* env = instr->deoptimization_environment();
2226 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 2232 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
2227 // Put the result value into the result register slot and 2233 // Put the result value into the result register slot and
2228 // restore all registers. 2234 // restore all registers.
(...skipping 2571 matching lines...) Expand 10 before | Expand all | Expand 10 after
4800 ASSERT(osr_pc_offset_ == -1); 4806 ASSERT(osr_pc_offset_ == -1);
4801 osr_pc_offset_ = masm()->pc_offset(); 4807 osr_pc_offset_ = masm()->pc_offset();
4802 } 4808 }
4803 4809
4804 4810
4805 4811
4806 4812
4807 #undef __ 4813 #undef __
4808 4814
4809 } } // namespace v8::internal 4815 } } // 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