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

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

Issue 134903004: ARM: Fix global object loading in DoWrapReceiver. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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 | no next file » | 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 3502 matching lines...) Expand 10 before | Expand all | Expand 10 after
3513 __ b(eq, &global_object); 3513 __ b(eq, &global_object);
3514 3514
3515 // Deoptimize if the receiver is not a JS object. 3515 // Deoptimize if the receiver is not a JS object.
3516 __ SmiTst(receiver); 3516 __ SmiTst(receiver);
3517 DeoptimizeIf(eq, instr->environment()); 3517 DeoptimizeIf(eq, instr->environment());
3518 __ CompareObjectType(receiver, scratch, scratch, FIRST_SPEC_OBJECT_TYPE); 3518 __ CompareObjectType(receiver, scratch, scratch, FIRST_SPEC_OBJECT_TYPE);
3519 DeoptimizeIf(lt, instr->environment()); 3519 DeoptimizeIf(lt, instr->environment());
3520 __ b(&result_in_receiver); 3520 __ b(&result_in_receiver);
3521 3521
3522 __ bind(&global_object); 3522 __ bind(&global_object);
3523 __ ldr(receiver, FieldMemOperand(function, JSFunction::kContextOffset)); 3523 __ ldr(result, FieldMemOperand(function, JSFunction::kContextOffset));
3524 __ ldr(receiver, 3524 __ ldr(result,
3525 ContextOperand(receiver, Context::GLOBAL_OBJECT_INDEX)); 3525 ContextOperand(result, Context::GLOBAL_OBJECT_INDEX));
3526 __ ldr(receiver, 3526 __ ldr(result,
3527 FieldMemOperand(receiver, GlobalObject::kGlobalReceiverOffset)); 3527 FieldMemOperand(result, GlobalObject::kGlobalReceiverOffset));
3528 3528
3529 if (result.is(receiver)) { 3529 if (result.is(receiver)) {
3530 __ bind(&result_in_receiver); 3530 __ bind(&result_in_receiver);
3531 } else { 3531 } else {
3532 Label result_ok; 3532 Label result_ok;
3533 __ b(&result_ok); 3533 __ b(&result_ok);
3534 __ bind(&result_in_receiver); 3534 __ bind(&result_in_receiver);
3535 __ mov(result, receiver); 3535 __ mov(result, receiver);
3536 __ bind(&result_ok); 3536 __ bind(&result_ok);
3537 } 3537 }
(...skipping 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after
5818 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5818 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5819 __ ldr(result, FieldMemOperand(scratch, 5819 __ ldr(result, FieldMemOperand(scratch,
5820 FixedArray::kHeaderSize - kPointerSize)); 5820 FixedArray::kHeaderSize - kPointerSize));
5821 __ bind(&done); 5821 __ bind(&done);
5822 } 5822 }
5823 5823
5824 5824
5825 #undef __ 5825 #undef __
5826 5826
5827 } } // namespace v8::internal 5827 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698