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

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

Issue 300283003: FastCloneShallowArrayStub should not be used it the length of the array is too big as it could even… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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/arm64/full-codegen-arm64.cc ('k') | src/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 // 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_CODE_STUBS_H_ 5 #ifndef V8_CODE_STUBS_H_
6 #define V8_CODE_STUBS_H_ 6 #define V8_CODE_STUBS_H_
7 7
8 #include "allocation.h" 8 #include "allocation.h"
9 #include "assembler.h" 9 #include "assembler.h"
10 #include "codegen.h" 10 #include "codegen.h"
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 // Parameters accessed via CodeStubGraphBuilder::GetParameter() 579 // Parameters accessed via CodeStubGraphBuilder::GetParameter()
580 static const int kFunction = 0; 580 static const int kFunction = 0;
581 581
582 private: 582 private:
583 int slots_; 583 int slots_;
584 }; 584 };
585 585
586 586
587 class FastCloneShallowArrayStub : public HydrogenCodeStub { 587 class FastCloneShallowArrayStub : public HydrogenCodeStub {
588 public: 588 public:
589 // Maximum length of copied elements array.
590 static const int kMaximumInlinedCloneLength = 8;
591
592 FastCloneShallowArrayStub(Isolate* isolate, 589 FastCloneShallowArrayStub(Isolate* isolate,
593 AllocationSiteMode allocation_site_mode) 590 AllocationSiteMode allocation_site_mode)
594 : HydrogenCodeStub(isolate), 591 : HydrogenCodeStub(isolate),
595 allocation_site_mode_(allocation_site_mode) {} 592 allocation_site_mode_(allocation_site_mode) {}
596 593
597 AllocationSiteMode allocation_site_mode() const { 594 AllocationSiteMode allocation_site_mode() const {
598 return allocation_site_mode_; 595 return allocation_site_mode_;
599 } 596 }
600 597
601 virtual Handle<Code> GenerateCode(); 598 virtual Handle<Code> GenerateCode();
(...skipping 1907 matching lines...) Expand 10 before | Expand all | Expand 10 after
2509 2506
2510 2507
2511 class CallDescriptors { 2508 class CallDescriptors {
2512 public: 2509 public:
2513 static void InitializeForIsolate(Isolate* isolate); 2510 static void InitializeForIsolate(Isolate* isolate);
2514 }; 2511 };
2515 2512
2516 } } // namespace v8::internal 2513 } } // namespace v8::internal
2517 2514
2518 #endif // V8_CODE_STUBS_H_ 2515 #endif // V8_CODE_STUBS_H_
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698