| OLD | NEW |
| 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 4918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4929 current_prototype = | 4929 current_prototype = |
| 4930 Handle<JSObject>(JSObject::cast(current_prototype->GetPrototype())); | 4930 Handle<JSObject>(JSObject::cast(current_prototype->GetPrototype())); |
| 4931 // Load next prototype object. | 4931 // Load next prototype object. |
| 4932 __ LoadHeapObject(temp1, current_prototype); | 4932 __ LoadHeapObject(temp1, current_prototype); |
| 4933 } | 4933 } |
| 4934 | 4934 |
| 4935 // Check the holder map. | 4935 // Check the holder map. |
| 4936 DoCheckMapCommon(temp1, temp2, | 4936 DoCheckMapCommon(temp1, temp2, |
| 4937 Handle<Map>(current_prototype->map()), | 4937 Handle<Map>(current_prototype->map()), |
| 4938 ALLOW_ELEMENT_TRANSITION_MAPS, instr->environment()); | 4938 ALLOW_ELEMENT_TRANSITION_MAPS, instr->environment()); |
| 4939 DeoptimizeIf(ne, instr->environment()); | |
| 4940 } | 4939 } |
| 4941 | 4940 |
| 4942 | 4941 |
| 4943 void LCodeGen::DoAllocateObject(LAllocateObject* instr) { | 4942 void LCodeGen::DoAllocateObject(LAllocateObject* instr) { |
| 4944 class DeferredAllocateObject: public LDeferredCode { | 4943 class DeferredAllocateObject: public LDeferredCode { |
| 4945 public: | 4944 public: |
| 4946 DeferredAllocateObject(LCodeGen* codegen, LAllocateObject* instr) | 4945 DeferredAllocateObject(LCodeGen* codegen, LAllocateObject* instr) |
| 4947 : LDeferredCode(codegen), instr_(instr) { } | 4946 : LDeferredCode(codegen), instr_(instr) { } |
| 4948 virtual void Generate() { codegen()->DoDeferredAllocateObject(instr_); } | 4947 virtual void Generate() { codegen()->DoDeferredAllocateObject(instr_); } |
| 4949 virtual LInstruction* instr() { return instr_; } | 4948 virtual LInstruction* instr() { return instr_; } |
| (...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5680 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5679 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 5681 __ ldr(result, FieldMemOperand(scratch, | 5680 __ ldr(result, FieldMemOperand(scratch, |
| 5682 FixedArray::kHeaderSize - kPointerSize)); | 5681 FixedArray::kHeaderSize - kPointerSize)); |
| 5683 __ bind(&done); | 5682 __ bind(&done); |
| 5684 } | 5683 } |
| 5685 | 5684 |
| 5686 | 5685 |
| 5687 #undef __ | 5686 #undef __ |
| 5688 | 5687 |
| 5689 } } // namespace v8::internal | 5688 } } // namespace v8::internal |
| OLD | NEW |