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