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 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 __ Drop(1); | 1157 __ Drop(1); |
1158 __ jmp(&exit); | 1158 __ jmp(&exit); |
1159 | 1159 |
1160 // We got a fixed array in register r0. Iterate through that. | 1160 // We got a fixed array in register r0. Iterate through that. |
1161 Label non_proxy; | 1161 Label non_proxy; |
1162 __ bind(&fixed_array); | 1162 __ bind(&fixed_array); |
1163 | 1163 |
1164 Handle<JSGlobalPropertyCell> cell = | 1164 Handle<JSGlobalPropertyCell> cell = |
1165 isolate()->factory()->NewJSGlobalPropertyCell( | 1165 isolate()->factory()->NewJSGlobalPropertyCell( |
1166 Handle<Object>( | 1166 Handle<Object>( |
1167 Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker))); | 1167 Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker), |
| 1168 isolate())); |
1168 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell); | 1169 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell); |
1169 __ LoadHeapObject(r1, cell); | 1170 __ LoadHeapObject(r1, cell); |
1170 __ mov(r2, Operand(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker))); | 1171 __ mov(r2, Operand(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker))); |
1171 __ str(r2, FieldMemOperand(r1, JSGlobalPropertyCell::kValueOffset)); | 1172 __ str(r2, FieldMemOperand(r1, JSGlobalPropertyCell::kValueOffset)); |
1172 | 1173 |
1173 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check | 1174 __ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check |
1174 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object | 1175 __ ldr(r2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object |
1175 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); | 1176 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); |
1176 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE); | 1177 __ CompareObjectType(r2, r3, r3, LAST_JS_PROXY_TYPE); |
1177 __ b(gt, &non_proxy); | 1178 __ b(gt, &non_proxy); |
(...skipping 3384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4562 *context_length = 0; | 4563 *context_length = 0; |
4563 return previous_; | 4564 return previous_; |
4564 } | 4565 } |
4565 | 4566 |
4566 | 4567 |
4567 #undef __ | 4568 #undef __ |
4568 | 4569 |
4569 } } // namespace v8::internal | 4570 } } // namespace v8::internal |
4570 | 4571 |
4571 #endif // V8_TARGET_ARCH_ARM | 4572 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |