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

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

Issue 128903002: Merged r18443 into 3.22 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.22
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 | « no previous file | src/version.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. 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 3307 matching lines...) Expand 10 before | Expand all | Expand 10 after
3318 // Deoptimize if the receiver is not a JS object. 3318 // Deoptimize if the receiver is not a JS object.
3319 __ And(scratch, receiver, Operand(kSmiTagMask)); 3319 __ And(scratch, receiver, Operand(kSmiTagMask));
3320 DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg)); 3320 DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg));
3321 3321
3322 __ GetObjectType(receiver, scratch, scratch); 3322 __ GetObjectType(receiver, scratch, scratch);
3323 DeoptimizeIf(lt, instr->environment(), 3323 DeoptimizeIf(lt, instr->environment(),
3324 scratch, Operand(FIRST_SPEC_OBJECT_TYPE)); 3324 scratch, Operand(FIRST_SPEC_OBJECT_TYPE));
3325 __ Branch(&receiver_ok); 3325 __ Branch(&receiver_ok);
3326 3326
3327 __ bind(&global_object); 3327 __ bind(&global_object);
3328 __ lw(receiver, GlobalObjectOperand()); 3328 __ lw(receiver, MemOperand(fp, StandardFrameConstants::kContextOffset));
3329 __ lw(receiver, ContextOperand(receiver, Context::GLOBAL_OBJECT_INDEX));
3329 __ lw(receiver, 3330 __ lw(receiver,
3330 FieldMemOperand(receiver, JSGlobalObject::kGlobalReceiverOffset)); 3331 FieldMemOperand(receiver, JSGlobalObject::kGlobalReceiverOffset));
3331 __ bind(&receiver_ok); 3332 __ bind(&receiver_ok);
3332 } 3333 }
3333 3334
3334 3335
3335 void LCodeGen::DoApplyArguments(LApplyArguments* instr) { 3336 void LCodeGen::DoApplyArguments(LApplyArguments* instr) {
3336 Register receiver = ToRegister(instr->receiver()); 3337 Register receiver = ToRegister(instr->receiver());
3337 Register function = ToRegister(instr->function()); 3338 Register function = ToRegister(instr->function());
3338 Register length = ToRegister(instr->length()); 3339 Register length = ToRegister(instr->length());
(...skipping 2501 matching lines...) Expand 10 before | Expand all | Expand 10 after
5840 __ Subu(scratch, result, scratch); 5841 __ Subu(scratch, result, scratch);
5841 __ lw(result, FieldMemOperand(scratch, 5842 __ lw(result, FieldMemOperand(scratch,
5842 FixedArray::kHeaderSize - kPointerSize)); 5843 FixedArray::kHeaderSize - kPointerSize));
5843 __ bind(&done); 5844 __ bind(&done);
5844 } 5845 }
5845 5846
5846 5847
5847 #undef __ 5848 #undef __
5848 5849
5849 } } // namespace v8::internal 5850 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698