| 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 27 matching lines...) Expand all Loading... |
| 38 namespace v8 { | 38 namespace v8 { |
| 39 namespace internal { | 39 namespace internal { |
| 40 | 40 |
| 41 | 41 |
| 42 CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor() | 42 CodeStubInterfaceDescriptor::CodeStubInterfaceDescriptor() |
| 43 : register_param_count_(-1), | 43 : register_param_count_(-1), |
| 44 stack_parameter_count_(no_reg), | 44 stack_parameter_count_(no_reg), |
| 45 hint_stack_parameter_count_(-1), | 45 hint_stack_parameter_count_(-1), |
| 46 function_mode_(NOT_JS_FUNCTION_STUB_MODE), | 46 function_mode_(NOT_JS_FUNCTION_STUB_MODE), |
| 47 register_params_(NULL), | 47 register_params_(NULL), |
| 48 register_param_representations_(NULL), |
| 48 deoptimization_handler_(NULL), | 49 deoptimization_handler_(NULL), |
| 49 handler_arguments_mode_(DONT_PASS_ARGUMENTS), | 50 handler_arguments_mode_(DONT_PASS_ARGUMENTS), |
| 50 miss_handler_(), | 51 miss_handler_(), |
| 51 has_miss_handler_(false) { } | 52 has_miss_handler_(false) { } |
| 52 | 53 |
| 53 | 54 |
| 54 bool CodeStub::FindCodeInCache(Code** code_out, Isolate* isolate) { | 55 bool CodeStub::FindCodeInCache(Code** code_out, Isolate* isolate) { |
| 55 UnseededNumberDictionary* stubs = isolate->heap()->code_stubs(); | 56 UnseededNumberDictionary* stubs = isolate->heap()->code_stubs(); |
| 56 int index = stubs->FindEntry(GetKey()); | 57 int index = stubs->FindEntry(GetKey()); |
| 57 if (index != UnseededNumberDictionary::kNotFound) { | 58 if (index != UnseededNumberDictionary::kNotFound) { |
| (...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 | 746 |
| 746 | 747 |
| 747 void FastNewContextStub::InstallDescriptors(Isolate* isolate) { | 748 void FastNewContextStub::InstallDescriptors(Isolate* isolate) { |
| 748 FastNewContextStub stub(FastNewContextStub::kMaximumSlots); | 749 FastNewContextStub stub(FastNewContextStub::kMaximumSlots); |
| 749 InstallDescriptor(isolate, &stub); | 750 InstallDescriptor(isolate, &stub); |
| 750 } | 751 } |
| 751 | 752 |
| 752 | 753 |
| 753 // static | 754 // static |
| 754 void FastCloneShallowArrayStub::InstallDescriptors(Isolate* isolate) { | 755 void FastCloneShallowArrayStub::InstallDescriptors(Isolate* isolate) { |
| 755 FastCloneShallowArrayStub stub(FastCloneShallowArrayStub::CLONE_ELEMENTS, | 756 FastCloneShallowArrayStub stub(DONT_TRACK_ALLOCATION_SITE); |
| 756 DONT_TRACK_ALLOCATION_SITE, 0); | |
| 757 InstallDescriptor(isolate, &stub); | 757 InstallDescriptor(isolate, &stub); |
| 758 } | 758 } |
| 759 | 759 |
| 760 | 760 |
| 761 // static | 761 // static |
| 762 void BinaryOpICStub::InstallDescriptors(Isolate* isolate) { | 762 void BinaryOpICStub::InstallDescriptors(Isolate* isolate) { |
| 763 BinaryOpICStub stub(Token::ADD, NO_OVERWRITE); | 763 BinaryOpICStub stub(Token::ADD, NO_OVERWRITE); |
| 764 InstallDescriptor(isolate, &stub); | 764 InstallDescriptor(isolate, &stub); |
| 765 } | 765 } |
| 766 | 766 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 InstallDescriptor(isolate, &stub3); | 816 InstallDescriptor(isolate, &stub3); |
| 817 } | 817 } |
| 818 | 818 |
| 819 InternalArrayConstructorStub::InternalArrayConstructorStub( | 819 InternalArrayConstructorStub::InternalArrayConstructorStub( |
| 820 Isolate* isolate) { | 820 Isolate* isolate) { |
| 821 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); | 821 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); |
| 822 } | 822 } |
| 823 | 823 |
| 824 | 824 |
| 825 } } // namespace v8::internal | 825 } } // namespace v8::internal |
| OLD | NEW |