OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
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 5856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5867 __ lw(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5867 __ lw(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
5868 // Index is equal to negated out of object property index plus 1. | 5868 // Index is equal to negated out of object property index plus 1. |
5869 __ Subu(scratch, result, scratch); | 5869 __ Subu(scratch, result, scratch); |
5870 __ lw(result, FieldMemOperand(scratch, | 5870 __ lw(result, FieldMemOperand(scratch, |
5871 FixedArray::kHeaderSize - kPointerSize)); | 5871 FixedArray::kHeaderSize - kPointerSize)); |
5872 __ bind(deferred->exit()); | 5872 __ bind(deferred->exit()); |
5873 __ bind(&done); | 5873 __ bind(&done); |
5874 } | 5874 } |
5875 | 5875 |
5876 | 5876 |
| 5877 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
| 5878 Register context = ToRegister(instr->context()); |
| 5879 __ sw(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
| 5880 } |
| 5881 |
| 5882 |
| 5883 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) { |
| 5884 Handle<ScopeInfo> scope_info = instr->scope_info(); |
| 5885 __ li(at, scope_info); |
| 5886 __ Push(at, ToRegister(instr->function())); |
| 5887 CallRuntime(Runtime::kHiddenPushBlockContext, 2, instr); |
| 5888 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 5889 } |
| 5890 |
| 5891 |
5877 #undef __ | 5892 #undef __ |
5878 | 5893 |
5879 } } // namespace v8::internal | 5894 } } // namespace v8::internal |
OLD | NEW |