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

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

Issue 121703002: ARM: fix loading of global object in LWrapReceiver. (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 | test/mjsunit/regress/regress-318420.js » ('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 3476 matching lines...) Expand 10 before | Expand all | Expand 10 after
3487 __ b(eq, &global_object); 3487 __ b(eq, &global_object);
3488 3488
3489 // Deoptimize if the receiver is not a JS object. 3489 // Deoptimize if the receiver is not a JS object.
3490 __ SmiTst(receiver); 3490 __ SmiTst(receiver);
3491 DeoptimizeIf(eq, instr->environment()); 3491 DeoptimizeIf(eq, instr->environment());
3492 __ CompareObjectType(receiver, scratch, scratch, FIRST_SPEC_OBJECT_TYPE); 3492 __ CompareObjectType(receiver, scratch, scratch, FIRST_SPEC_OBJECT_TYPE);
3493 DeoptimizeIf(lt, instr->environment()); 3493 DeoptimizeIf(lt, instr->environment());
3494 __ b(&result_in_receiver); 3494 __ b(&result_in_receiver);
3495 3495
3496 __ bind(&global_object); 3496 __ bind(&global_object);
3497 __ ldr(result, GlobalObjectOperand()); 3497
3498 __ ldr(result, MemOperand(fp, StandardFrameConstants::kContextOffset));
3499 __ ldr(result, ContextOperand(result, Context::GLOBAL_OBJECT_INDEX));
3498 __ ldr(result, 3500 __ ldr(result,
3499 FieldMemOperand(result, JSGlobalObject::kGlobalReceiverOffset)); 3501 FieldMemOperand(result, JSGlobalObject::kGlobalReceiverOffset));
3500 if (result.is(receiver)) { 3502 if (result.is(receiver)) {
3501 __ bind(&result_in_receiver); 3503 __ bind(&result_in_receiver);
3502 } else { 3504 } else {
3503 Label result_ok; 3505 Label result_ok;
3504 __ b(&result_ok); 3506 __ b(&result_ok);
3505 __ bind(&result_in_receiver); 3507 __ bind(&result_in_receiver);
3506 __ mov(result, receiver); 3508 __ mov(result, receiver);
3507 __ bind(&result_ok); 3509 __ bind(&result_ok);
(...skipping 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after
5815 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5817 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5816 __ ldr(result, FieldMemOperand(scratch, 5818 __ ldr(result, FieldMemOperand(scratch,
5817 FixedArray::kHeaderSize - kPointerSize)); 5819 FixedArray::kHeaderSize - kPointerSize));
5818 __ bind(&done); 5820 __ bind(&done);
5819 } 5821 }
5820 5822
5821 5823
5822 #undef __ 5824 #undef __
5823 5825
5824 } } // namespace v8::internal 5826 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/regress/regress-318420.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698