| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 __ movzx_b(esi, FieldOperand(eax, Map::kUnusedPropertyFieldsOffset)); | 244 __ movzx_b(esi, FieldOperand(eax, Map::kUnusedPropertyFieldsOffset)); |
| 245 __ neg(esi); | 245 __ neg(esi); |
| 246 __ lea(esi, Operand(edi, esi, times_pointer_size, 0)); | 246 __ lea(esi, Operand(edi, esi, times_pointer_size, 0)); |
| 247 // esi: offset of first field after pre-allocated fields | 247 // esi: offset of first field after pre-allocated fields |
| 248 if (FLAG_debug_code) { | 248 if (FLAG_debug_code) { |
| 249 __ cmp(ecx, esi); | 249 __ cmp(ecx, esi); |
| 250 __ Assert(less_equal, | 250 __ Assert(less_equal, |
| 251 kUnexpectedNumberOfPreAllocatedPropertyFields); | 251 kUnexpectedNumberOfPreAllocatedPropertyFields); |
| 252 } | 252 } |
| 253 __ InitializeFieldsWithFiller(ecx, esi, edx); | 253 __ InitializeFieldsWithFiller(ecx, esi, edx); |
| 254 |
| 255 // To allow truncation fill the remaining fields with one pointer |
| 256 // filler map. |
| 254 __ mov(edx, factory->one_pointer_filler_map()); | 257 __ mov(edx, factory->one_pointer_filler_map()); |
| 255 // Fill the remaining fields with one pointer filler map. | |
| 256 | 258 |
| 257 __ bind(&no_inobject_slack_tracking); | 259 __ bind(&no_inobject_slack_tracking); |
| 258 } | 260 } |
| 259 | 261 |
| 260 __ InitializeFieldsWithFiller(ecx, edi, edx); | 262 __ InitializeFieldsWithFiller(ecx, edi, edx); |
| 261 | 263 |
| 262 // Add the object tag to make the JSObject real, so that we can continue | 264 // Add the object tag to make the JSObject real, so that we can continue |
| 263 // and jump into the continuation code at any time from now on. | 265 // and jump into the continuation code at any time from now on. |
| 264 // ebx: JSObject (untagged) | 266 // ebx: JSObject (untagged) |
| 265 __ or_(ebx, Immediate(kHeapObjectTag)); | 267 __ or_(ebx, Immediate(kHeapObjectTag)); |
| (...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1852 | 1854 |
| 1853 __ bind(&ok); | 1855 __ bind(&ok); |
| 1854 __ ret(0); | 1856 __ ret(0); |
| 1855 } | 1857 } |
| 1856 | 1858 |
| 1857 #undef __ | 1859 #undef __ |
| 1858 } // namespace internal | 1860 } // namespace internal |
| 1859 } // namespace v8 | 1861 } // namespace v8 |
| 1860 | 1862 |
| 1861 #endif // V8_TARGET_ARCH_IA32 | 1863 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |