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_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 Loading... |
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 Loading... |
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_ |
OLD | NEW |