| 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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 if (spare_ != NULL) { | 673 if (spare_ != NULL) { |
| 674 DeleteArray(spare_); | 674 DeleteArray(spare_); |
| 675 } | 675 } |
| 676 spare_ = block_start; | 676 spare_ = block_start; |
| 677 } | 677 } |
| 678 ASSERT((blocks_.is_empty() && prev_limit == NULL) || | 678 ASSERT((blocks_.is_empty() && prev_limit == NULL) || |
| 679 (!blocks_.is_empty() && prev_limit != NULL)); | 679 (!blocks_.is_empty() && prev_limit != NULL)); |
| 680 } | 680 } |
| 681 | 681 |
| 682 | 682 |
| 683 // Interceptor functions called from generated inline caches to notify | |
| 684 // CPU profiler that external callbacks are invoked. | |
| 685 v8::Handle<v8::Value> InvokeAccessorGetter( | |
| 686 v8::Local<v8::String> property, | |
| 687 const v8::AccessorInfo& info, | |
| 688 v8::AccessorGetter getter); | |
| 689 | |
| 690 | |
| 691 void InvokeAccessorGetterCallback( | |
| 692 v8::Local<v8::String> property, | |
| 693 const v8::PropertyCallbackInfo<v8::Value>& info, | |
| 694 v8::AccessorGetterCallback getter); | |
| 695 | |
| 696 v8::Handle<v8::Value> InvokeInvocationCallback(const v8::Arguments& args, | |
| 697 v8::InvocationCallback callback); | |
| 698 void InvokeFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>& info, | |
| 699 v8::FunctionCallback callback); | |
| 700 | |
| 701 class Testing { | 683 class Testing { |
| 702 public: | 684 public: |
| 703 static v8::Testing::StressType stress_type() { return stress_type_; } | 685 static v8::Testing::StressType stress_type() { return stress_type_; } |
| 704 static void set_stress_type(v8::Testing::StressType stress_type) { | 686 static void set_stress_type(v8::Testing::StressType stress_type) { |
| 705 stress_type_ = stress_type; | 687 stress_type_ = stress_type; |
| 706 } | 688 } |
| 707 | 689 |
| 708 private: | 690 private: |
| 709 static v8::Testing::StressType stress_type_; | 691 static v8::Testing::StressType stress_type_; |
| 710 }; | 692 }; |
| 711 | 693 |
| 712 } } // namespace v8::internal | 694 } } // namespace v8::internal |
| 713 | 695 |
| 714 #endif // V8_API_H_ | 696 #endif // V8_API_H_ |
| OLD | NEW |