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

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

Issue 138463002: Fix loading the global receiver on ARM. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 | 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 3487 matching lines...) Expand 10 before | Expand all | Expand 10 after
3498 // Deoptimize if the receiver is not a JS object. 3498 // Deoptimize if the receiver is not a JS object.
3499 __ SmiTst(receiver); 3499 __ SmiTst(receiver);
3500 DeoptimizeIf(eq, instr->environment()); 3500 DeoptimizeIf(eq, instr->environment());
3501 __ CompareObjectType(receiver, scratch, scratch, FIRST_SPEC_OBJECT_TYPE); 3501 __ CompareObjectType(receiver, scratch, scratch, FIRST_SPEC_OBJECT_TYPE);
3502 DeoptimizeIf(lt, instr->environment()); 3502 DeoptimizeIf(lt, instr->environment());
3503 __ b(&result_in_receiver); 3503 __ b(&result_in_receiver);
3504 3504
3505 __ bind(&global_object); 3505 __ bind(&global_object);
3506 __ ldr(receiver, FieldMemOperand(function, JSFunction::kContextOffset)); 3506 __ ldr(receiver, FieldMemOperand(function, JSFunction::kContextOffset));
3507 __ ldr(receiver, 3507 __ ldr(receiver,
3508 ContextOperand(receiver, 3508 ContextOperand(receiver, Context::GLOBAL_OBJECT_INDEX));
3509 Context::SlotOffset(Context::GLOBAL_OBJECT_INDEX)));
3510 __ ldr(receiver, 3509 __ ldr(receiver,
3511 FieldMemOperand(receiver, GlobalObject::kGlobalReceiverOffset)); 3510 FieldMemOperand(receiver, GlobalObject::kGlobalReceiverOffset));
3512 3511
3513 if (result.is(receiver)) { 3512 if (result.is(receiver)) {
3514 __ bind(&result_in_receiver); 3513 __ bind(&result_in_receiver);
3515 } else { 3514 } else {
3516 Label result_ok; 3515 Label result_ok;
3517 __ b(&result_ok); 3516 __ b(&result_ok);
3518 __ bind(&result_in_receiver); 3517 __ bind(&result_in_receiver);
3519 __ mov(result, receiver); 3518 __ mov(result, receiver);
(...skipping 2294 matching lines...) Expand 10 before | Expand all | Expand 10 after
5814 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5813 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5815 __ ldr(result, FieldMemOperand(scratch, 5814 __ ldr(result, FieldMemOperand(scratch,
5816 FixedArray::kHeaderSize - kPointerSize)); 5815 FixedArray::kHeaderSize - kPointerSize));
5817 __ bind(&done); 5816 __ bind(&done);
5818 } 5817 }
5819 5818
5820 5819
5821 #undef __ 5820 #undef __
5822 5821
5823 } } // namespace v8::internal 5822 } } // 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