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

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

Issue 10584030: Back port r11886: Fix GC bug with missing handle. Bug=133618 (Closed) Base URL: http://v8.googlecode.com/svn/branches/3.11/
Patch Set: Created 8 years, 6 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/ia32/lithium-codegen-ia32.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 2576 matching lines...) Expand 10 before | Expand all | Expand 10 after
2587 // Non-negative property indices are in the properties array. 2587 // Non-negative property indices are in the properties array.
2588 __ ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 2588 __ ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
2589 __ ldr(result, FieldMemOperand(result, offset + FixedArray::kHeaderSize)); 2589 __ ldr(result, FieldMemOperand(result, offset + FixedArray::kHeaderSize));
2590 } 2590 }
2591 } else if (lookup.IsFound() && lookup.type() == CONSTANT_FUNCTION) { 2591 } else if (lookup.IsFound() && lookup.type() == CONSTANT_FUNCTION) {
2592 Handle<JSFunction> function(lookup.GetConstantFunctionFromMap(*type)); 2592 Handle<JSFunction> function(lookup.GetConstantFunctionFromMap(*type));
2593 __ LoadHeapObject(result, function); 2593 __ LoadHeapObject(result, function);
2594 } else { 2594 } else {
2595 // Negative lookup. 2595 // Negative lookup.
2596 // Check prototypes. 2596 // Check prototypes.
2597 HeapObject* current = HeapObject::cast((*type)->prototype()); 2597 Handle<HeapObject> current(HeapObject::cast((*type)->prototype()));
2598 Heap* heap = type->GetHeap(); 2598 Heap* heap = type->GetHeap();
2599 while (current != heap->null_value()) { 2599 while (*current != heap->null_value()) {
2600 Handle<HeapObject> link(current); 2600 __ LoadHeapObject(result, current);
2601 __ LoadHeapObject(result, link);
2602 __ ldr(result, FieldMemOperand(result, HeapObject::kMapOffset)); 2601 __ ldr(result, FieldMemOperand(result, HeapObject::kMapOffset));
2603 __ cmp(result, Operand(Handle<Map>(JSObject::cast(current)->map()))); 2602 __ cmp(result, Operand(Handle<Map>(current->map())));
2604 DeoptimizeIf(ne, env); 2603 DeoptimizeIf(ne, env);
2605 current = HeapObject::cast(current->map()->prototype()); 2604 current =
2605 Handle<HeapObject>(HeapObject::cast(current->map()->prototype()));
2606 } 2606 }
2607 __ LoadRoot(result, Heap::kUndefinedValueRootIndex); 2607 __ LoadRoot(result, Heap::kUndefinedValueRootIndex);
2608 } 2608 }
2609 } 2609 }
2610 2610
2611 2611
2612 void LCodeGen::DoLoadNamedFieldPolymorphic(LLoadNamedFieldPolymorphic* instr) { 2612 void LCodeGen::DoLoadNamedFieldPolymorphic(LLoadNamedFieldPolymorphic* instr) {
2613 Register object = ToRegister(instr->object()); 2613 Register object = ToRegister(instr->object());
2614 Register result = ToRegister(instr->result()); 2614 Register result = ToRegister(instr->result());
2615 Register object_map = scratch0(); 2615 Register object_map = scratch0();
(...skipping 2781 matching lines...) Expand 10 before | Expand all | Expand 10 after
5397 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5397 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5398 __ ldr(result, FieldMemOperand(scratch, 5398 __ ldr(result, FieldMemOperand(scratch,
5399 FixedArray::kHeaderSize - kPointerSize)); 5399 FixedArray::kHeaderSize - kPointerSize));
5400 __ bind(&done); 5400 __ bind(&done);
5401 } 5401 }
5402 5402
5403 5403
5404 #undef __ 5404 #undef __
5405 5405
5406 } } // namespace v8::internal 5406 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698