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 14 matching lines...) Expand all Loading... |
25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #ifndef V8_HEAP_INL_H_ | 28 #ifndef V8_HEAP_INL_H_ |
29 #define V8_HEAP_INL_H_ | 29 #define V8_HEAP_INL_H_ |
30 | 30 |
31 #include "heap.h" | 31 #include "heap.h" |
32 #include "isolate.h" | 32 #include "isolate.h" |
33 #include "list-inl.h" | 33 #include "list-inl.h" |
34 #include "objects.h" | 34 #include "objects.h" |
35 #include "platform.h" | |
36 #include "v8-counters.h" | 35 #include "v8-counters.h" |
37 #include "store-buffer.h" | 36 #include "store-buffer.h" |
38 #include "store-buffer-inl.h" | 37 #include "store-buffer-inl.h" |
39 | 38 |
40 namespace v8 { | 39 namespace v8 { |
41 namespace internal { | 40 namespace internal { |
42 | 41 |
43 void PromotionQueue::insert(HeapObject* target, int size) { | 42 void PromotionQueue::insert(HeapObject* target, int size) { |
44 if (emergency_stack_ != NULL) { | 43 if (emergency_stack_ != NULL) { |
45 emergency_stack_->Add(Entry(target, size)); | 44 emergency_stack_->Add(Entry(target, size)); |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 | 651 |
653 double TranscendentalCache::SubCache::Calculate(double input) { | 652 double TranscendentalCache::SubCache::Calculate(double input) { |
654 switch (type_) { | 653 switch (type_) { |
655 case ACOS: | 654 case ACOS: |
656 return acos(input); | 655 return acos(input); |
657 case ASIN: | 656 case ASIN: |
658 return asin(input); | 657 return asin(input); |
659 case ATAN: | 658 case ATAN: |
660 return atan(input); | 659 return atan(input); |
661 case COS: | 660 case COS: |
662 return fast_cos(input); | 661 return cos(input); |
663 case EXP: | 662 case EXP: |
664 return exp(input); | 663 return exp(input); |
665 case LOG: | 664 case LOG: |
666 return fast_log(input); | 665 return log(input); |
667 case SIN: | 666 case SIN: |
668 return fast_sin(input); | 667 return sin(input); |
669 case TAN: | 668 case TAN: |
670 return fast_tan(input); | 669 return tan(input); |
671 default: | 670 default: |
672 return 0.0; // Never happens. | 671 return 0.0; // Never happens. |
673 } | 672 } |
674 } | 673 } |
675 | 674 |
676 | 675 |
677 MaybeObject* TranscendentalCache::SubCache::Get(double input) { | 676 MaybeObject* TranscendentalCache::SubCache::Get(double input) { |
678 Converter c; | 677 Converter c; |
679 c.dbl = input; | 678 c.dbl = input; |
680 int hash = Hash(c); | 679 int hash = Hash(c); |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 AssertNoAllocation::~AssertNoAllocation() { } | 782 AssertNoAllocation::~AssertNoAllocation() { } |
784 DisableAssertNoAllocation::DisableAssertNoAllocation() { } | 783 DisableAssertNoAllocation::DisableAssertNoAllocation() { } |
785 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } | 784 DisableAssertNoAllocation::~DisableAssertNoAllocation() { } |
786 | 785 |
787 #endif | 786 #endif |
788 | 787 |
789 | 788 |
790 } } // namespace v8::internal | 789 } } // namespace v8::internal |
791 | 790 |
792 #endif // V8_HEAP_INL_H_ | 791 #endif // V8_HEAP_INL_H_ |
OLD | NEW |