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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 if (spare_ != NULL) { | 655 if (spare_ != NULL) { |
656 DeleteArray(spare_); | 656 DeleteArray(spare_); |
657 } | 657 } |
658 spare_ = block_start; | 658 spare_ = block_start; |
659 } | 659 } |
660 ASSERT((blocks_.is_empty() && prev_limit == NULL) || | 660 ASSERT((blocks_.is_empty() && prev_limit == NULL) || |
661 (!blocks_.is_empty() && prev_limit != NULL)); | 661 (!blocks_.is_empty() && prev_limit != NULL)); |
662 } | 662 } |
663 | 663 |
664 | 664 |
| 665 // Interceptor functions called from generated inline caches to notify |
| 666 // CPU profiler that external callbacks are invoked. |
| 667 v8::Handle<v8::Value> InvokeAccessorGetter( |
| 668 v8::Local<v8::String> property, |
| 669 const v8::AccessorInfo& info, |
| 670 v8::AccessorGetter getter); |
| 671 |
| 672 |
| 673 void InvokeAccessorGetterCallback( |
| 674 v8::Local<v8::String> property, |
| 675 const v8::PropertyCallbackInfo<v8::Value>& info, |
| 676 v8::AccessorGetterCallback getter); |
| 677 |
| 678 v8::Handle<v8::Value> InvokeInvocationCallback(const v8::Arguments& args, |
| 679 v8::InvocationCallback callback); |
| 680 void InvokeFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>& info, |
| 681 v8::FunctionCallback callback); |
| 682 |
665 class Testing { | 683 class Testing { |
666 public: | 684 public: |
667 static v8::Testing::StressType stress_type() { return stress_type_; } | 685 static v8::Testing::StressType stress_type() { return stress_type_; } |
668 static void set_stress_type(v8::Testing::StressType stress_type) { | 686 static void set_stress_type(v8::Testing::StressType stress_type) { |
669 stress_type_ = stress_type; | 687 stress_type_ = stress_type; |
670 } | 688 } |
671 | 689 |
672 private: | 690 private: |
673 static v8::Testing::StressType stress_type_; | 691 static v8::Testing::StressType stress_type_; |
674 }; | 692 }; |
675 | 693 |
676 } } // namespace v8::internal | 694 } } // namespace v8::internal |
677 | 695 |
678 #endif // V8_API_H_ | 696 #endif // V8_API_H_ |
OLD | NEW |