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

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

Issue 209353006: Refactor optimized in hydrogen only runtime functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch Created 6 years, 9 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
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 4442 matching lines...) Expand 10 before | Expand all | Expand 10 after
4453 // DoStringCharCodeAt above. 4453 // DoStringCharCodeAt above.
4454 if (instr->index()->IsConstantOperand()) { 4454 if (instr->index()->IsConstantOperand()) {
4455 int const_index = ToInteger32(LConstantOperand::cast(instr->index())); 4455 int const_index = ToInteger32(LConstantOperand::cast(instr->index()));
4456 __ mov(scratch, Operand(Smi::FromInt(const_index))); 4456 __ mov(scratch, Operand(Smi::FromInt(const_index)));
4457 __ push(scratch); 4457 __ push(scratch);
4458 } else { 4458 } else {
4459 Register index = ToRegister(instr->index()); 4459 Register index = ToRegister(instr->index());
4460 __ SmiTag(index); 4460 __ SmiTag(index);
4461 __ push(index); 4461 __ push(index);
4462 } 4462 }
4463 CallRuntimeFromDeferred(Runtime::kStringCharCodeAt, 2, instr, 4463 CallRuntimeFromDeferred(Runtime::kStringCharCodeAtInternal, 2, instr,
4464 instr->context()); 4464 instr->context());
4465 __ AssertSmi(r0); 4465 __ AssertSmi(r0);
4466 __ SmiUntag(r0); 4466 __ SmiUntag(r0);
4467 __ StoreToSafepointRegisterSlot(r0, result); 4467 __ StoreToSafepointRegisterSlot(r0, result);
4468 } 4468 }
4469 4469
4470 4470
4471 void LCodeGen::DoStringCharFromCode(LStringCharFromCode* instr) { 4471 void LCodeGen::DoStringCharFromCode(LStringCharFromCode* instr) {
4472 class DeferredStringCharFromCode V8_FINAL : public LDeferredCode { 4472 class DeferredStringCharFromCode V8_FINAL : public LDeferredCode {
4473 public: 4473 public:
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after
5735 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5735 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5736 __ ldr(result, FieldMemOperand(scratch, 5736 __ ldr(result, FieldMemOperand(scratch,
5737 FixedArray::kHeaderSize - kPointerSize)); 5737 FixedArray::kHeaderSize - kPointerSize));
5738 __ bind(&done); 5738 __ bind(&done);
5739 } 5739 }
5740 5740
5741 5741
5742 #undef __ 5742 #undef __
5743 5743
5744 } } // namespace v8::internal 5744 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | src/runtime.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698