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

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

Issue 368403002: Version 3.28.13.1 (merged r22168, r22170, r22174) (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 6 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/mips/ic-mips.cc ('k') | src/mips/lithium-mips.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.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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 if (info_->this_has_uses() && 145 if (info_->this_has_uses() &&
146 info_->strict_mode() == SLOPPY && 146 info_->strict_mode() == SLOPPY &&
147 !info_->is_native()) { 147 !info_->is_native()) {
148 Label ok; 148 Label ok;
149 int receiver_offset = info_->scope()->num_parameters() * kPointerSize; 149 int receiver_offset = info_->scope()->num_parameters() * kPointerSize;
150 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 150 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
151 __ lw(a2, MemOperand(sp, receiver_offset)); 151 __ lw(a2, MemOperand(sp, receiver_offset));
152 __ Branch(&ok, ne, a2, Operand(at)); 152 __ Branch(&ok, ne, a2, Operand(at));
153 153
154 __ lw(a2, GlobalObjectOperand()); 154 __ lw(a2, GlobalObjectOperand());
155 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalReceiverOffset)); 155 __ lw(a2, FieldMemOperand(a2, GlobalObject::kGlobalProxyOffset));
156 156
157 __ sw(a2, MemOperand(sp, receiver_offset)); 157 __ sw(a2, MemOperand(sp, receiver_offset));
158 158
159 __ bind(&ok); 159 __ bind(&ok);
160 } 160 }
161 } 161 }
162 162
163 info()->set_prologue_offset(masm_->pc_offset()); 163 info()->set_prologue_offset(masm_->pc_offset());
164 if (NeedsEagerFrame()) { 164 if (NeedsEagerFrame()) {
165 if (info()->IsStub()) { 165 if (info()->IsStub()) {
(...skipping 3154 matching lines...) Expand 10 before | Expand all | Expand 10 after
3320 ASSERT_EQ(-1, shift_size); 3320 ASSERT_EQ(-1, shift_size);
3321 __ sra(scratch0(), key, 1); 3321 __ sra(scratch0(), key, 1);
3322 __ Addu(scratch0(), base, scratch0()); 3322 __ Addu(scratch0(), base, scratch0());
3323 return MemOperand(scratch0(), base_offset); 3323 return MemOperand(scratch0(), base_offset);
3324 } 3324 }
3325 } 3325 }
3326 3326
3327 3327
3328 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) { 3328 void LCodeGen::DoLoadKeyedGeneric(LLoadKeyedGeneric* instr) {
3329 ASSERT(ToRegister(instr->context()).is(cp)); 3329 ASSERT(ToRegister(instr->context()).is(cp));
3330 ASSERT(ToRegister(instr->object()).is(KeyedLoadIC::ReceiverRegister())); 3330 ASSERT(ToRegister(instr->object()).is(LoadIC::ReceiverRegister()));
3331 ASSERT(ToRegister(instr->key()).is(KeyedLoadIC::NameRegister())); 3331 ASSERT(ToRegister(instr->key()).is(LoadIC::NameRegister()));
3332 3332
3333 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize(); 3333 Handle<Code> ic = isolate()->builtins()->KeyedLoadIC_Initialize();
3334 CallCode(ic, RelocInfo::CODE_TARGET, instr); 3334 CallCode(ic, RelocInfo::CODE_TARGET, instr);
3335 } 3335 }
3336 3336
3337 3337
3338 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) { 3338 void LCodeGen::DoArgumentsElements(LArgumentsElements* instr) {
3339 Register scratch = scratch0(); 3339 Register scratch = scratch0();
3340 Register temp = scratch1(); 3340 Register temp = scratch1();
3341 Register result = ToRegister(instr->result()); 3341 Register result = ToRegister(instr->result());
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
3418 __ GetObjectType(receiver, scratch, scratch); 3418 __ GetObjectType(receiver, scratch, scratch);
3419 DeoptimizeIf(lt, instr->environment(), 3419 DeoptimizeIf(lt, instr->environment(),
3420 scratch, Operand(FIRST_SPEC_OBJECT_TYPE)); 3420 scratch, Operand(FIRST_SPEC_OBJECT_TYPE));
3421 3421
3422 __ Branch(&result_in_receiver); 3422 __ Branch(&result_in_receiver);
3423 __ bind(&global_object); 3423 __ bind(&global_object);
3424 __ lw(result, FieldMemOperand(function, JSFunction::kContextOffset)); 3424 __ lw(result, FieldMemOperand(function, JSFunction::kContextOffset));
3425 __ lw(result, 3425 __ lw(result,
3426 ContextOperand(result, Context::GLOBAL_OBJECT_INDEX)); 3426 ContextOperand(result, Context::GLOBAL_OBJECT_INDEX));
3427 __ lw(result, 3427 __ lw(result,
3428 FieldMemOperand(result, GlobalObject::kGlobalReceiverOffset)); 3428 FieldMemOperand(result, GlobalObject::kGlobalProxyOffset));
3429 3429
3430 if (result.is(receiver)) { 3430 if (result.is(receiver)) {
3431 __ bind(&result_in_receiver); 3431 __ bind(&result_in_receiver);
3432 } else { 3432 } else {
3433 Label result_ok; 3433 Label result_ok;
3434 __ Branch(&result_ok); 3434 __ Branch(&result_ok);
3435 __ bind(&result_in_receiver); 3435 __ bind(&result_in_receiver);
3436 __ mov(result, receiver); 3436 __ mov(result, receiver);
3437 __ bind(&result_ok); 3437 __ bind(&result_ok);
3438 } 3438 }
(...skipping 2445 matching lines...) Expand 10 before | Expand all | Expand 10 after
5884 __ li(at, scope_info); 5884 __ li(at, scope_info);
5885 __ Push(at, ToRegister(instr->function())); 5885 __ Push(at, ToRegister(instr->function()));
5886 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5886 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5887 RecordSafepoint(Safepoint::kNoLazyDeopt); 5887 RecordSafepoint(Safepoint::kNoLazyDeopt);
5888 } 5888 }
5889 5889
5890 5890
5891 #undef __ 5891 #undef __
5892 5892
5893 } } // namespace v8::internal 5893 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698