| 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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 __ addq(rsp, Immediate(kPointerSize)); | 1128 __ addq(rsp, Immediate(kPointerSize)); |
| 1129 __ jmp(&exit); | 1129 __ jmp(&exit); |
| 1130 | 1130 |
| 1131 // We got a fixed array in register rax. Iterate through that. | 1131 // We got a fixed array in register rax. Iterate through that. |
| 1132 Label non_proxy; | 1132 Label non_proxy; |
| 1133 __ bind(&fixed_array); | 1133 __ bind(&fixed_array); |
| 1134 | 1134 |
| 1135 Handle<JSGlobalPropertyCell> cell = | 1135 Handle<JSGlobalPropertyCell> cell = |
| 1136 isolate()->factory()->NewJSGlobalPropertyCell( | 1136 isolate()->factory()->NewJSGlobalPropertyCell( |
| 1137 Handle<Object>( | 1137 Handle<Object>( |
| 1138 Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker))); | 1138 Smi::FromInt(TypeFeedbackCells::kForInFastCaseMarker), |
| 1139 isolate())); |
| 1139 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell); | 1140 RecordTypeFeedbackCell(stmt->ForInFeedbackId(), cell); |
| 1140 __ LoadHeapObject(rbx, cell); | 1141 __ LoadHeapObject(rbx, cell); |
| 1141 __ Move(FieldOperand(rbx, JSGlobalPropertyCell::kValueOffset), | 1142 __ Move(FieldOperand(rbx, JSGlobalPropertyCell::kValueOffset), |
| 1142 Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker)); | 1143 Smi::FromInt(TypeFeedbackCells::kForInSlowCaseMarker)); |
| 1143 | 1144 |
| 1144 __ Move(rbx, Smi::FromInt(1)); // Smi indicates slow check | 1145 __ Move(rbx, Smi::FromInt(1)); // Smi indicates slow check |
| 1145 __ movq(rcx, Operand(rsp, 0 * kPointerSize)); // Get enumerated object | 1146 __ movq(rcx, Operand(rsp, 0 * kPointerSize)); // Get enumerated object |
| 1146 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); | 1147 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_SPEC_OBJECT_TYPE); |
| 1147 __ CmpObjectType(rcx, LAST_JS_PROXY_TYPE, rcx); | 1148 __ CmpObjectType(rcx, LAST_JS_PROXY_TYPE, rcx); |
| 1148 __ j(above, &non_proxy); | 1149 __ j(above, &non_proxy); |
| (...skipping 3377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4526 *context_length = 0; | 4527 *context_length = 0; |
| 4527 return previous_; | 4528 return previous_; |
| 4528 } | 4529 } |
| 4529 | 4530 |
| 4530 | 4531 |
| 4531 #undef __ | 4532 #undef __ |
| 4532 | 4533 |
| 4533 } } // namespace v8::internal | 4534 } } // namespace v8::internal |
| 4534 | 4535 |
| 4535 #endif // V8_TARGET_ARCH_X64 | 4536 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |