| 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 #include "src/code-stub-assembler.h" | 4 #include "src/code-stub-assembler.h" |
| 5 #include "src/code-factory.h" | 5 #include "src/code-factory.h" |
| 6 #include "src/frames-inl.h" | 6 #include "src/frames-inl.h" |
| 7 #include "src/frames.h" | 7 #include "src/frames.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 3802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3813 GotoUnless(IsHeapNumberMap(map), &runtime); | 3813 GotoUnless(IsHeapNumberMap(map), &runtime); |
| 3814 | 3814 |
| 3815 // Cache entry's key must match the heap number value we're looking for. | 3815 // Cache entry's key must match the heap number value we're looking for. |
| 3816 Node* low_compare = LoadObjectField(number_key, HeapNumber::kValueOffset, | 3816 Node* low_compare = LoadObjectField(number_key, HeapNumber::kValueOffset, |
| 3817 MachineType::Int32()); | 3817 MachineType::Int32()); |
| 3818 Node* high_compare = LoadObjectField( | 3818 Node* high_compare = LoadObjectField( |
| 3819 number_key, HeapNumber::kValueOffset + kIntSize, MachineType::Int32()); | 3819 number_key, HeapNumber::kValueOffset + kIntSize, MachineType::Int32()); |
| 3820 GotoUnless(Word32Equal(low, low_compare), &runtime); | 3820 GotoUnless(Word32Equal(low, low_compare), &runtime); |
| 3821 GotoUnless(Word32Equal(high, high_compare), &runtime); | 3821 GotoUnless(Word32Equal(high, high_compare), &runtime); |
| 3822 | 3822 |
| 3823 // Heap number match, return value fro cache entry. | 3823 // Heap number match, return value from cache entry. |
| 3824 IncrementCounter(isolate()->counters()->number_to_string_native(), 1); | 3824 IncrementCounter(isolate()->counters()->number_to_string_native(), 1); |
| 3825 result.Bind(LoadFixedArrayElement(number_string_cache, index, kPointerSize)); | 3825 result.Bind(LoadFixedArrayElement(number_string_cache, index, kPointerSize)); |
| 3826 Goto(&done); | 3826 Goto(&done); |
| 3827 | 3827 |
| 3828 Bind(&runtime); | 3828 Bind(&runtime); |
| 3829 { | 3829 { |
| 3830 // No cache entry, go to the runtime. | 3830 // No cache entry, go to the runtime. |
| 3831 result.Bind(CallRuntime(Runtime::kNumberToString, context, argument)); | 3831 result.Bind(CallRuntime(Runtime::kNumberToString, context, argument)); |
| 3832 } | 3832 } |
| 3833 Goto(&done); | 3833 Goto(&done); |
| (...skipping 4533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8367 Heap::kUndefinedValueRootIndex); | 8367 Heap::kUndefinedValueRootIndex); |
| 8368 StoreObjectFieldRoot(result, PromiseReactionJobInfo::kDebugNameOffset, | 8368 StoreObjectFieldRoot(result, PromiseReactionJobInfo::kDebugNameOffset, |
| 8369 Heap::kUndefinedValueRootIndex); | 8369 Heap::kUndefinedValueRootIndex); |
| 8370 StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kContextOffset, | 8370 StoreObjectFieldNoWriteBarrier(result, PromiseReactionJobInfo::kContextOffset, |
| 8371 context); | 8371 context); |
| 8372 return result; | 8372 return result; |
| 8373 } | 8373 } |
| 8374 | 8374 |
| 8375 } // namespace internal | 8375 } // namespace internal |
| 8376 } // namespace v8 | 8376 } // namespace v8 |
| OLD | NEW |