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

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

Issue 148883002: Synchronize with r15594. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
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 | « src/a64/lithium-a64.cc ('k') | src/a64/stub-cache-a64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 2781 matching lines...) Expand 10 before | Expand all | Expand 10 after
2792 Register scratch = ToRegister(instr->temp()); 2792 Register scratch = ToRegister(instr->temp());
2793 2793
2794 if (!instr->hydrogen()->value()->IsHeapObject()) { 2794 if (!instr->hydrogen()->value()->IsHeapObject()) {
2795 __ JumpIfSmi(input, instr->FalseLabel(chunk_)); 2795 __ JumpIfSmi(input, instr->FalseLabel(chunk_));
2796 } 2796 }
2797 __ CompareObjectType(input, scratch, scratch, TestType(instr->hydrogen())); 2797 __ CompareObjectType(input, scratch, scratch, TestType(instr->hydrogen()));
2798 EmitBranch(instr, BranchCondition(instr->hydrogen())); 2798 EmitBranch(instr, BranchCondition(instr->hydrogen()));
2799 } 2799 }
2800 2800
2801 2801
2802 void LCodeGen::DoIn(LIn* instr) {
2803 Register obj = ToRegister(instr->object());
2804 Register key = ToRegister(instr->key());
2805 __ Push(key, obj);
2806 ASSERT(instr->HasPointerMap());
2807 LPointerMap* pointers = instr->pointer_map();
2808 RecordPosition(pointers->position());
2809 SafepointGenerator safepoint_generator(this, pointers, Safepoint::kLazyDeopt);
2810 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator);
2811 }
2812
2813
2814 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) { 2802 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) {
2815 Register result = ToRegister(instr->result()); 2803 Register result = ToRegister(instr->result());
2816 Register base = ToRegister(instr->base_object()); 2804 Register base = ToRegister(instr->base_object());
2817 __ Add(result, base, instr->offset()); 2805 __ Add(result, base, instr->offset());
2818 } 2806 }
2819 2807
2820 2808
2821 void LCodeGen::DoInstanceOf(LInstanceOf* instr) { 2809 void LCodeGen::DoInstanceOf(LInstanceOf* instr) {
2822 // Assert that the arguments are in the registers expected by InstanceofStub. 2810 // Assert that the arguments are in the registers expected by InstanceofStub.
2823 ASSERT(ToRegister(instr->left()).Is(InstanceofStub::left())); 2811 ASSERT(ToRegister(instr->left()).Is(InstanceofStub::left()));
(...skipping 2759 matching lines...) Expand 10 before | Expand all | Expand 10 after
5583 __ Bind(&out_of_object); 5571 __ Bind(&out_of_object);
5584 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5572 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5585 // Index is equal to negated out of object property index plus 1. 5573 // Index is equal to negated out of object property index plus 1.
5586 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5574 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5587 __ Ldr(result, FieldMemOperand(result, 5575 __ Ldr(result, FieldMemOperand(result,
5588 FixedArray::kHeaderSize - kPointerSize)); 5576 FixedArray::kHeaderSize - kPointerSize));
5589 __ Bind(&done); 5577 __ Bind(&done);
5590 } 5578 }
5591 5579
5592 } } // namespace v8::internal 5580 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/a64/lithium-a64.cc ('k') | src/a64/stub-cache-a64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698