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

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

Issue 18154004: Replace custom builtin invocation instructions by a generic version (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 years, 5 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/lithium-arm.cc ('k') | src/hydrogen.h » ('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 5713 matching lines...) Expand 10 before | Expand all | Expand 10 after
5724 DeoptimizeIf(al, instr->environment()); 5724 DeoptimizeIf(al, instr->environment());
5725 } 5725 }
5726 } 5726 }
5727 5727
5728 5728
5729 void LCodeGen::DoDummyUse(LDummyUse* instr) { 5729 void LCodeGen::DoDummyUse(LDummyUse* instr) {
5730 // Nothing to see here, move on! 5730 // Nothing to see here, move on!
5731 } 5731 }
5732 5732
5733 5733
5734 void LCodeGen::DoDeleteProperty(LDeleteProperty* instr) {
5735 Register object = ToRegister(instr->object());
5736 Register key = ToRegister(instr->key());
5737 Register strict = scratch0();
5738 __ mov(strict, Operand(Smi::FromInt(strict_mode_flag())));
5739 __ Push(object, key, strict);
5740 ASSERT(instr->HasPointerMap());
5741 LPointerMap* pointers = instr->pointer_map();
5742 RecordPosition(pointers->position());
5743 SafepointGenerator safepoint_generator(
5744 this, pointers, Safepoint::kLazyDeopt);
5745 __ InvokeBuiltin(Builtins::DELETE, CALL_FUNCTION, safepoint_generator);
5746 }
5747
5748
5749 void LCodeGen::DoIn(LIn* instr) {
5750 Register obj = ToRegister(instr->object());
5751 Register key = ToRegister(instr->key());
5752 __ Push(key, obj);
5753 ASSERT(instr->HasPointerMap());
5754 LPointerMap* pointers = instr->pointer_map();
5755 RecordPosition(pointers->position());
5756 SafepointGenerator safepoint_generator(this, pointers, Safepoint::kLazyDeopt);
5757 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator);
5758 }
5759
5760
5761 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) { 5734 void LCodeGen::DoDeferredStackCheck(LStackCheck* instr) {
5762 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); 5735 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters);
5763 __ CallRuntimeSaveDoubles(Runtime::kStackGuard); 5736 __ CallRuntimeSaveDoubles(Runtime::kStackGuard);
5764 RecordSafepointWithLazyDeopt( 5737 RecordSafepointWithLazyDeopt(
5765 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); 5738 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS);
5766 ASSERT(instr->HasEnvironment()); 5739 ASSERT(instr->HasEnvironment());
5767 LEnvironment* env = instr->environment(); 5740 LEnvironment* env = instr->environment();
5768 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index()); 5741 safepoints_.RecordLazyDeoptimizationIndex(env->deoptimization_index());
5769 } 5742 }
5770 5743
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
5923 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5896 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5924 __ ldr(result, FieldMemOperand(scratch, 5897 __ ldr(result, FieldMemOperand(scratch,
5925 FixedArray::kHeaderSize - kPointerSize)); 5898 FixedArray::kHeaderSize - kPointerSize));
5926 __ bind(&done); 5899 __ bind(&done);
5927 } 5900 }
5928 5901
5929 5902
5930 #undef __ 5903 #undef __
5931 5904
5932 } } // namespace v8::internal 5905 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698