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

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

Issue 142893003: Merge bleeding_edge 18658:18677 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 11 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/mips/ic-mips.cc ('k') | src/mips/lithium-mips.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 2833 matching lines...) Expand 10 before | Expand all | Expand 10 after
2844 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); 2844 __ LoadRoot(at, Heap::kTheHoleValueRootIndex);
2845 DeoptimizeIf(eq, instr->environment(), payload, Operand(at)); 2845 DeoptimizeIf(eq, instr->environment(), payload, Operand(at));
2846 } 2846 }
2847 2847
2848 // Store the value. 2848 // Store the value.
2849 __ sw(value, FieldMemOperand(cell, Cell::kValueOffset)); 2849 __ sw(value, FieldMemOperand(cell, Cell::kValueOffset));
2850 // Cells are always rescanned, so no write barrier here. 2850 // Cells are always rescanned, so no write barrier here.
2851 } 2851 }
2852 2852
2853 2853
2854 void LCodeGen::DoStoreGlobalGeneric(LStoreGlobalGeneric* instr) {
2855 ASSERT(ToRegister(instr->context()).is(cp));
2856 ASSERT(ToRegister(instr->global_object()).is(a1));
2857 ASSERT(ToRegister(instr->value()).is(a0));
2858
2859 __ li(a2, Operand(instr->name()));
2860 Handle<Code> ic = StoreIC::initialize_stub(isolate(),
2861 instr->strict_mode_flag(),
2862 CONTEXTUAL);
2863 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2864 }
2865
2866 2854
2867 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) { 2855 void LCodeGen::DoLoadContextSlot(LLoadContextSlot* instr) {
2868 Register context = ToRegister(instr->context()); 2856 Register context = ToRegister(instr->context());
2869 Register result = ToRegister(instr->result()); 2857 Register result = ToRegister(instr->result());
2870 2858
2871 __ lw(result, ContextOperand(context, instr->slot_index())); 2859 __ lw(result, ContextOperand(context, instr->slot_index()));
2872 if (instr->hydrogen()->RequiresHoleCheck()) { 2860 if (instr->hydrogen()->RequiresHoleCheck()) {
2873 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); 2861 __ LoadRoot(at, Heap::kTheHoleValueRootIndex);
2874 2862
2875 if (instr->hydrogen()->DeoptimizesOnHole()) { 2863 if (instr->hydrogen()->DeoptimizesOnHole()) {
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
4138 4126
4139 4127
4140 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) { 4128 void LCodeGen::DoStoreNamedGeneric(LStoreNamedGeneric* instr) {
4141 ASSERT(ToRegister(instr->context()).is(cp)); 4129 ASSERT(ToRegister(instr->context()).is(cp));
4142 ASSERT(ToRegister(instr->object()).is(a1)); 4130 ASSERT(ToRegister(instr->object()).is(a1));
4143 ASSERT(ToRegister(instr->value()).is(a0)); 4131 ASSERT(ToRegister(instr->value()).is(a0));
4144 4132
4145 // Name is always in a2. 4133 // Name is always in a2.
4146 __ li(a2, Operand(instr->name())); 4134 __ li(a2, Operand(instr->name()));
4147 Handle<Code> ic = StoreIC::initialize_stub(isolate(), 4135 Handle<Code> ic = StoreIC::initialize_stub(isolate(),
4148 instr->strict_mode_flag(), 4136 instr->strict_mode_flag());
4149 NOT_CONTEXTUAL);
4150 CallCode(ic, RelocInfo::CODE_TARGET, instr); 4137 CallCode(ic, RelocInfo::CODE_TARGET, instr);
4151 } 4138 }
4152 4139
4153 4140
4154 void LCodeGen::ApplyCheckIf(Condition condition, 4141 void LCodeGen::ApplyCheckIf(Condition condition,
4155 LBoundsCheck* check, 4142 LBoundsCheck* check,
4156 Register src1, 4143 Register src1,
4157 const Operand& src2) { 4144 const Operand& src2) {
4158 if (FLAG_debug_code && check->hydrogen()->skip_check()) { 4145 if (FLAG_debug_code && check->hydrogen()->skip_check()) {
4159 Label done; 4146 Label done;
(...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after
5835 __ Subu(scratch, result, scratch); 5822 __ Subu(scratch, result, scratch);
5836 __ lw(result, FieldMemOperand(scratch, 5823 __ lw(result, FieldMemOperand(scratch,
5837 FixedArray::kHeaderSize - kPointerSize)); 5824 FixedArray::kHeaderSize - kPointerSize));
5838 __ bind(&done); 5825 __ bind(&done);
5839 } 5826 }
5840 5827
5841 5828
5842 #undef __ 5829 #undef __
5843 5830
5844 } } // namespace v8::internal 5831 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698