| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 #include "src/code-stub-assembler.h" | 5 #include "src/code-stub-assembler.h" |
| 6 #include "src/code-factory.h" | 6 #include "src/code-factory.h" |
| 7 #include "src/frames-inl.h" | 7 #include "src/frames-inl.h" |
| 8 #include "src/frames.h" | 8 #include "src/frames.h" |
| 9 #include "src/ic/handler-configuration.h" | 9 #include "src/ic/handler-configuration.h" |
| 10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
| (...skipping 4314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4325 property_storage = LoadObjectField(property_storage, offset); | 4325 property_storage = LoadObjectField(property_storage, offset); |
| 4326 // Store the double value into it. | 4326 // Store the double value into it. |
| 4327 offset = HeapNumber::kValueOffset; | 4327 offset = HeapNumber::kValueOffset; |
| 4328 } | 4328 } |
| 4329 } | 4329 } |
| 4330 } | 4330 } |
| 4331 | 4331 |
| 4332 if (store_value_as_double) { | 4332 if (store_value_as_double) { |
| 4333 StoreObjectFieldNoWriteBarrier(property_storage, offset, value, | 4333 StoreObjectFieldNoWriteBarrier(property_storage, offset, value, |
| 4334 MachineRepresentation::kFloat64); | 4334 MachineRepresentation::kFloat64); |
| 4335 } else if (representation.IsSmi()) { |
| 4336 StoreObjectFieldNoWriteBarrier(property_storage, offset, value); |
| 4335 } else { | 4337 } else { |
| 4336 StoreObjectField(property_storage, offset, value); | 4338 StoreObjectField(property_storage, offset, value); |
| 4337 } | 4339 } |
| 4338 } | 4340 } |
| 4339 | 4341 |
| 4340 Node* CodeStubAssembler::EnumLength(Node* map) { | 4342 Node* CodeStubAssembler::EnumLength(Node* map) { |
| 4341 Node* bitfield_3 = LoadMapBitField3(map); | 4343 Node* bitfield_3 = LoadMapBitField3(map); |
| 4342 Node* enum_length = BitFieldDecode<Map::EnumLengthBits>(bitfield_3); | 4344 Node* enum_length = BitFieldDecode<Map::EnumLengthBits>(bitfield_3); |
| 4343 return SmiTag(enum_length); | 4345 return SmiTag(enum_length); |
| 4344 } | 4346 } |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4417 Heap::kTheHoleValueRootIndex); | 4419 Heap::kTheHoleValueRootIndex); |
| 4418 | 4420 |
| 4419 // Store the WeakCell in the feedback vector. | 4421 // Store the WeakCell in the feedback vector. |
| 4420 StoreFixedArrayElement(feedback_vector, slot, cell, UPDATE_WRITE_BARRIER, | 4422 StoreFixedArrayElement(feedback_vector, slot, cell, UPDATE_WRITE_BARRIER, |
| 4421 CodeStubAssembler::SMI_PARAMETERS); | 4423 CodeStubAssembler::SMI_PARAMETERS); |
| 4422 return cell; | 4424 return cell; |
| 4423 } | 4425 } |
| 4424 | 4426 |
| 4425 } // namespace internal | 4427 } // namespace internal |
| 4426 } // namespace v8 | 4428 } // namespace v8 |
| OLD | NEW |