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