Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(394)

Side by Side Diff: src/code-stubs.cc

Issue 256873007: Revert r20974: Unify and simplify the FastCloneShallowArrayStub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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),
49 deoptimization_handler_(NULL), 48 deoptimization_handler_(NULL),
50 handler_arguments_mode_(DONT_PASS_ARGUMENTS), 49 handler_arguments_mode_(DONT_PASS_ARGUMENTS),
51 miss_handler_(), 50 miss_handler_(),
52 has_miss_handler_(false) { } 51 has_miss_handler_(false) { }
53 52
54 53
55 bool CodeStub::FindCodeInCache(Code** code_out) { 54 bool CodeStub::FindCodeInCache(Code** code_out) {
56 UnseededNumberDictionary* stubs = isolate()->heap()->code_stubs(); 55 UnseededNumberDictionary* stubs = isolate()->heap()->code_stubs();
57 int index = stubs->FindEntry(GetKey()); 56 int index = stubs->FindEntry(GetKey());
58 if (index != UnseededNumberDictionary::kNotFound) { 57 if (index != UnseededNumberDictionary::kNotFound) {
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 745
747 746
748 void FastNewContextStub::InstallDescriptors(Isolate* isolate) { 747 void FastNewContextStub::InstallDescriptors(Isolate* isolate) {
749 FastNewContextStub stub(isolate, FastNewContextStub::kMaximumSlots); 748 FastNewContextStub stub(isolate, FastNewContextStub::kMaximumSlots);
750 InstallDescriptor(isolate, &stub); 749 InstallDescriptor(isolate, &stub);
751 } 750 }
752 751
753 752
754 // static 753 // static
755 void FastCloneShallowArrayStub::InstallDescriptors(Isolate* isolate) { 754 void FastCloneShallowArrayStub::InstallDescriptors(Isolate* isolate) {
756 FastCloneShallowArrayStub stub(isolate, DONT_TRACK_ALLOCATION_SITE); 755 FastCloneShallowArrayStub stub(isolate,
756 FastCloneShallowArrayStub::CLONE_ELEMENTS,
757 DONT_TRACK_ALLOCATION_SITE, 0);
757 InstallDescriptor(isolate, &stub); 758 InstallDescriptor(isolate, &stub);
758 } 759 }
759 760
760 761
761 // static 762 // static
762 void BinaryOpICStub::InstallDescriptors(Isolate* isolate) { 763 void BinaryOpICStub::InstallDescriptors(Isolate* isolate) {
763 BinaryOpICStub stub(isolate, Token::ADD, NO_OVERWRITE); 764 BinaryOpICStub stub(isolate, Token::ADD, NO_OVERWRITE);
764 InstallDescriptor(isolate, &stub); 765 InstallDescriptor(isolate, &stub);
765 } 766 }
766 767
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 InstallDescriptor(isolate, &stub3); 818 InstallDescriptor(isolate, &stub3);
818 } 819 }
819 820
820 InternalArrayConstructorStub::InternalArrayConstructorStub( 821 InternalArrayConstructorStub::InternalArrayConstructorStub(
821 Isolate* isolate) : PlatformCodeStub(isolate) { 822 Isolate* isolate) : PlatformCodeStub(isolate) {
822 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate); 823 InternalArrayConstructorStubBase::GenerateStubsAheadOfTime(isolate);
823 } 824 }
824 825
825 826
826 } } // namespace v8::internal 827 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.h ('k') | src/code-stubs-hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698