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 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 | 465 |
466 Handle<Code> CompileLoadField(Handle<Name> name, FieldIndex index, | 466 Handle<Code> CompileLoadField(Handle<Name> name, FieldIndex index, |
467 Representation representation); | 467 Representation representation); |
468 | 468 |
469 Handle<Code> CompileLoadCallback(Handle<Name> name, | 469 Handle<Code> CompileLoadCallback(Handle<Name> name, |
470 Handle<ExecutableAccessorInfo> callback); | 470 Handle<ExecutableAccessorInfo> callback); |
471 | 471 |
472 Handle<Code> CompileLoadCallback(Handle<Name> name, | 472 Handle<Code> CompileLoadCallback(Handle<Name> name, |
473 const CallOptimization& call_optimization); | 473 const CallOptimization& call_optimization); |
474 | 474 |
475 Handle<Code> CompileLoadConstant(Handle<Name> name, Handle<Object> value); | 475 Handle<Code> CompileLoadConstant(Handle<Name> name, int constant_index); |
476 | 476 |
477 Handle<Code> CompileLoadInterceptor(Handle<Name> name); | 477 Handle<Code> CompileLoadInterceptor(Handle<Name> name); |
478 | 478 |
479 Handle<Code> CompileLoadViaGetter(Handle<Name> name, | 479 Handle<Code> CompileLoadViaGetter(Handle<Name> name, |
480 Handle<JSFunction> getter); | 480 Handle<JSFunction> getter); |
481 | 481 |
482 Handle<Code> CompileLoadGlobal(Handle<PropertyCell> cell, Handle<Name> name, | 482 Handle<Code> CompileLoadGlobal(Handle<PropertyCell> cell, Handle<Name> name, |
483 bool is_configurable); | 483 bool is_configurable); |
484 | 484 |
485 // Static interface | 485 // Static interface |
(...skipping 29 matching lines...) Expand all Loading... |
515 virtual Register FrontendHeader(Register object_reg, Handle<Name> name, | 515 virtual Register FrontendHeader(Register object_reg, Handle<Name> name, |
516 Label* miss); | 516 Label* miss); |
517 | 517 |
518 virtual void FrontendFooter(Handle<Name> name, Label* miss); | 518 virtual void FrontendFooter(Handle<Name> name, Label* miss); |
519 | 519 |
520 private: | 520 private: |
521 Handle<Code> CompileLoadNonexistent(Handle<Name> name); | 521 Handle<Code> CompileLoadNonexistent(Handle<Name> name); |
522 void GenerateLoadField(Register reg, | 522 void GenerateLoadField(Register reg, |
523 FieldIndex field, | 523 FieldIndex field, |
524 Representation representation); | 524 Representation representation); |
| 525 void GenerateLoadConstant(Register reg, int constant_index); |
525 void GenerateLoadConstant(Handle<Object> value); | 526 void GenerateLoadConstant(Handle<Object> value); |
526 void GenerateLoadCallback(Register reg, | 527 void GenerateLoadCallback(Register reg, |
527 Handle<ExecutableAccessorInfo> callback); | 528 Handle<ExecutableAccessorInfo> callback); |
528 void GenerateLoadCallback(const CallOptimization& call_optimization, | 529 void GenerateLoadCallback(const CallOptimization& call_optimization, |
529 Handle<Map> receiver_map); | 530 Handle<Map> receiver_map); |
530 void GenerateLoadInterceptor(Register holder_reg, | 531 void GenerateLoadInterceptor(Register holder_reg, |
531 LookupResult* lookup, | 532 LookupResult* lookup, |
532 Handle<Name> name); | 533 Handle<Name> name); |
533 void GenerateLoadPostInterceptor(Register reg, | 534 void GenerateLoadPostInterceptor(Register reg, |
534 Handle<Name> name, | 535 Handle<Name> name, |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 Handle<JSFunction> constant_function_; | 682 Handle<JSFunction> constant_function_; |
682 bool is_simple_api_call_; | 683 bool is_simple_api_call_; |
683 Handle<FunctionTemplateInfo> expected_receiver_type_; | 684 Handle<FunctionTemplateInfo> expected_receiver_type_; |
684 Handle<CallHandlerInfo> api_call_info_; | 685 Handle<CallHandlerInfo> api_call_info_; |
685 }; | 686 }; |
686 | 687 |
687 | 688 |
688 } } // namespace v8::internal | 689 } } // namespace v8::internal |
689 | 690 |
690 #endif // V8_STUB_CACHE_H_ | 691 #endif // V8_STUB_CACHE_H_ |
OLD | NEW |