| 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 1144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1155 __ jmp(&exit); | 1155 __ jmp(&exit); |
| 1156 | 1156 |
| 1157 // We got a fixed array in register v0. Iterate through that. | 1157 // We got a fixed array in register v0. Iterate through that. |
| 1158 Label non_proxy; | 1158 Label non_proxy; |
| 1159 __ bind(&fixed_array); | 1159 __ bind(&fixed_array); |
| 1160 | 1160 |
| 1161 Handle<Cell> cell = isolate()->factory()->NewCell( | 1161 Handle<Cell> cell = isolate()->factory()->NewCell( |
| 1162 Handle<Object>(Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker), | 1162 Handle<Object>(Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker), |
| 1163 isolate())); | 1163 isolate())); |
| 1164 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell); | 1164 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell); |
| 1165 __ LoadHeapObject(a1, cell); | 1165 __ li(a1, cell); |
| 1166 __ li(a2, Operand(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker))); | 1166 __ li(a2, Operand(Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker))); |
| 1167 __ sw(a2, FieldMemOperand(a1, Cell::kValueOffset)); | 1167 __ sw(a2, FieldMemOperand(a1, Cell::kValueOffset)); |
| 1168 | 1168 |
| 1169 __ li(a1, Operand(Smi::FromInt(1))); // Smi indicates slow check | 1169 __ li(a1, Operand(Smi::FromInt(1))); // Smi indicates slow check |
| 1170 __ lw(a2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object | 1170 __ lw(a2, MemOperand(sp, 0 * kPointerSize)); // Get enumerated object |
| 1171 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); | 1171 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); |
| 1172 __ GetObjectType(a2, a3, a3); | 1172 __ GetObjectType(a2, a3, a3); |
| 1173 __ Branch(&non_proxy, gt, a3, Operand(LAST_JS_PROXY_TYPE)); | 1173 __ Branch(&non_proxy, gt, a3, Operand(LAST_JS_PROXY_TYPE)); |
| 1174 __ li(a1, Operand(Smi::FromInt(0))); // Zero indicates proxy | 1174 __ li(a1, Operand(Smi::FromInt(0))); // Zero indicates proxy |
| 1175 __ bind(&non_proxy); | 1175 __ bind(&non_proxy); |
| (...skipping 3817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4993 Assembler::target_address_at(pc_immediate_load_address)) == | 4993 Assembler::target_address_at(pc_immediate_load_address)) == |
| 4994 reinterpret_cast<uint32_t>( | 4994 reinterpret_cast<uint32_t>( |
| 4995 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4995 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4996 return OSR_AFTER_STACK_CHECK; | 4996 return OSR_AFTER_STACK_CHECK; |
| 4997 } | 4997 } |
| 4998 | 4998 |
| 4999 | 4999 |
| 5000 } } // namespace v8::internal | 5000 } } // namespace v8::internal |
| 5001 | 5001 |
| 5002 #endif // V8_TARGET_ARCH_MIPS | 5002 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |