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/mips/lithium-codegen-mips.cc

Issue 128693002: Merged r18443 into 3.23 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.23
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 3392 matching lines...) Expand 10 before | Expand all | Expand 10 after
3403 // Deoptimize if the receiver is not a JS object. 3403 // Deoptimize if the receiver is not a JS object.
3404 __ SmiTst(receiver, scratch); 3404 __ SmiTst(receiver, scratch);
3405 DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg)); 3405 DeoptimizeIf(eq, instr->environment(), scratch, Operand(zero_reg));
3406 3406
3407 __ GetObjectType(receiver, scratch, scratch); 3407 __ GetObjectType(receiver, scratch, scratch);
3408 DeoptimizeIf(lt, instr->environment(), 3408 DeoptimizeIf(lt, instr->environment(),
3409 scratch, Operand(FIRST_SPEC_OBJECT_TYPE)); 3409 scratch, Operand(FIRST_SPEC_OBJECT_TYPE));
3410 __ Branch(&result_in_receiver); 3410 __ Branch(&result_in_receiver);
3411 3411
3412 __ bind(&global_object); 3412 __ bind(&global_object);
3413 __ lw(result, GlobalObjectOperand()); 3413
3414 __ lw(result, MemOperand(fp, StandardFrameConstants::kContextOffset));
3415 __ lw(result, ContextOperand(result, Context::GLOBAL_OBJECT_INDEX));
3414 __ lw(result, 3416 __ lw(result,
3415 FieldMemOperand(result, JSGlobalObject::kGlobalReceiverOffset)); 3417 FieldMemOperand(result, JSGlobalObject::kGlobalReceiverOffset));
3416 if (result.is(receiver)) { 3418 if (result.is(receiver)) {
3417 __ bind(&result_in_receiver); 3419 __ bind(&result_in_receiver);
3418 } else { 3420 } else {
3419 Label result_ok; 3421 Label result_ok;
3420 __ Branch(&result_ok); 3422 __ Branch(&result_ok);
3421 __ bind(&result_in_receiver); 3423 __ bind(&result_in_receiver);
3422 __ mov(result, receiver); 3424 __ mov(result, receiver);
3423 __ bind(&result_ok); 3425 __ bind(&result_ok);
(...skipping 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after
5883 __ Subu(scratch, result, scratch); 5885 __ Subu(scratch, result, scratch);
5884 __ lw(result, FieldMemOperand(scratch, 5886 __ lw(result, FieldMemOperand(scratch,
5885 FixedArray::kHeaderSize - kPointerSize)); 5887 FixedArray::kHeaderSize - kPointerSize));
5886 __ bind(&done); 5888 __ bind(&done);
5887 } 5889 }
5888 5890
5889 5891
5890 #undef __ 5892 #undef __
5891 5893
5892 } } // namespace v8::internal 5894 } } // 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