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

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

Issue 209353006: Refactor optimized in hydrogen only runtime functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: CR feedback 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 4788 matching lines...) Expand 10 before | Expand all | Expand 10 after
4799 STATIC_ASSERT(String::kMaxLength <= Smi::kMaxValue); 4799 STATIC_ASSERT(String::kMaxLength <= Smi::kMaxValue);
4800 if (instr->index()->IsConstantOperand()) { 4800 if (instr->index()->IsConstantOperand()) {
4801 Immediate immediate = ToImmediate(LConstantOperand::cast(instr->index()), 4801 Immediate immediate = ToImmediate(LConstantOperand::cast(instr->index()),
4802 Representation::Smi()); 4802 Representation::Smi());
4803 __ push(immediate); 4803 __ push(immediate);
4804 } else { 4804 } else {
4805 Register index = ToRegister(instr->index()); 4805 Register index = ToRegister(instr->index());
4806 __ SmiTag(index); 4806 __ SmiTag(index);
4807 __ push(index); 4807 __ push(index);
4808 } 4808 }
4809 CallRuntimeFromDeferred(Runtime::kStringCharCodeAt, 2, 4809 CallRuntimeFromDeferred(Runtime::kHiddenStringCharCodeAt, 2,
4810 instr, instr->context()); 4810 instr, instr->context());
4811 __ AssertSmi(eax); 4811 __ AssertSmi(eax);
4812 __ SmiUntag(eax); 4812 __ SmiUntag(eax);
4813 __ StoreToSafepointRegisterSlot(result, eax); 4813 __ StoreToSafepointRegisterSlot(result, eax);
4814 } 4814 }
4815 4815
4816 4816
4817 void LCodeGen::DoStringCharFromCode(LStringCharFromCode* instr) { 4817 void LCodeGen::DoStringCharFromCode(LStringCharFromCode* instr) {
4818 class DeferredStringCharFromCode V8_FINAL : public LDeferredCode { 4818 class DeferredStringCharFromCode V8_FINAL : public LDeferredCode {
4819 public: 4819 public:
(...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after
6352 FixedArray::kHeaderSize - kPointerSize)); 6352 FixedArray::kHeaderSize - kPointerSize));
6353 __ bind(&done); 6353 __ bind(&done);
6354 } 6354 }
6355 6355
6356 6356
6357 #undef __ 6357 #undef __
6358 6358
6359 } } // namespace v8::internal 6359 } } // namespace v8::internal
6360 6360
6361 #endif // V8_TARGET_ARCH_IA32 6361 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698