| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_STUB_CACHE_H_ | 5 #ifndef V8_STUB_CACHE_H_ |
| 6 #define V8_STUB_CACHE_H_ | 6 #define V8_STUB_CACHE_H_ |
| 7 | 7 |
| 8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
| 9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 CodeHandleList* handlers); | 619 CodeHandleList* handlers); |
| 620 | 620 |
| 621 static void GenerateLoadDictionaryElement(MacroAssembler* masm); | 621 static void GenerateLoadDictionaryElement(MacroAssembler* masm); |
| 622 static void GenerateStoreDictionaryElement(MacroAssembler* masm); | 622 static void GenerateStoreDictionaryElement(MacroAssembler* masm); |
| 623 }; | 623 }; |
| 624 | 624 |
| 625 | 625 |
| 626 // Holds information about possible function call optimizations. | 626 // Holds information about possible function call optimizations. |
| 627 class CallOptimization BASE_EMBEDDED { | 627 class CallOptimization BASE_EMBEDDED { |
| 628 public: | 628 public: |
| 629 explicit CallOptimization(LookupResult* lookup); | |
| 630 | |
| 631 explicit CallOptimization(Handle<JSFunction> function); | 629 explicit CallOptimization(Handle<JSFunction> function); |
| 632 | 630 |
| 633 bool is_constant_call() const { | 631 bool is_constant_call() const { |
| 634 return !constant_function_.is_null(); | 632 return !constant_function_.is_null(); |
| 635 } | 633 } |
| 636 | 634 |
| 637 Handle<JSFunction> constant_function() const { | 635 Handle<JSFunction> constant_function() const { |
| 638 DCHECK(is_constant_call()); | 636 DCHECK(is_constant_call()); |
| 639 return constant_function_; | 637 return constant_function_; |
| 640 } | 638 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 Handle<JSFunction> constant_function_; | 674 Handle<JSFunction> constant_function_; |
| 677 bool is_simple_api_call_; | 675 bool is_simple_api_call_; |
| 678 Handle<FunctionTemplateInfo> expected_receiver_type_; | 676 Handle<FunctionTemplateInfo> expected_receiver_type_; |
| 679 Handle<CallHandlerInfo> api_call_info_; | 677 Handle<CallHandlerInfo> api_call_info_; |
| 680 }; | 678 }; |
| 681 | 679 |
| 682 | 680 |
| 683 } } // namespace v8::internal | 681 } } // namespace v8::internal |
| 684 | 682 |
| 685 #endif // V8_STUB_CACHE_H_ | 683 #endif // V8_STUB_CACHE_H_ |
| OLD | NEW |