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 |
683 class Testing { | 701 class Testing { |
684 public: | 702 public: |
685 static v8::Testing::StressType stress_type() { return stress_type_; } | 703 static v8::Testing::StressType stress_type() { return stress_type_; } |
686 static void set_stress_type(v8::Testing::StressType stress_type) { | 704 static void set_stress_type(v8::Testing::StressType stress_type) { |
687 stress_type_ = stress_type; | 705 stress_type_ = stress_type; |
688 } | 706 } |
689 | 707 |
690 private: | 708 private: |
691 static v8::Testing::StressType stress_type_; | 709 static v8::Testing::StressType stress_type_; |
692 }; | 710 }; |
693 | 711 |
694 } } // namespace v8::internal | 712 } } // namespace v8::internal |
695 | 713 |
696 #endif // V8_API_H_ | 714 #endif // V8_API_H_ |
OLD | NEW |