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

Side by Side Diff: src/interface-descriptors.cc

Issue 2777203007: [builtins] Introduce new TFC macro and auto-generate TFS descriptors (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « src/interface-descriptors.h ('k') | src/isolate.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 #include "src/interface-descriptors.h" 5 #include "src/interface-descriptors.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 10
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 } 37 }
38 } 38 }
39 39
40 const char* CallInterfaceDescriptor::DebugName(Isolate* isolate) const { 40 const char* CallInterfaceDescriptor::DebugName(Isolate* isolate) const {
41 CallInterfaceDescriptorData* start = isolate->call_descriptor_data(0); 41 CallInterfaceDescriptorData* start = isolate->call_descriptor_data(0);
42 size_t index = data_ - start; 42 size_t index = data_ - start;
43 DCHECK(index < CallDescriptors::NUMBER_OF_DESCRIPTORS); 43 DCHECK(index < CallDescriptors::NUMBER_OF_DESCRIPTORS);
44 CallDescriptors::Key key = static_cast<CallDescriptors::Key>(index); 44 CallDescriptors::Key key = static_cast<CallDescriptors::Key>(index);
45 switch (key) { 45 switch (key) {
46 #define DEF_CASE(NAME) \ 46 #define DEF_CASE(NAME, ...) \
47 case CallDescriptors::NAME: \ 47 case CallDescriptors::NAME: \
48 return #NAME " Descriptor"; 48 return #NAME " Descriptor";
49 INTERFACE_DESCRIPTOR_LIST(DEF_CASE) 49 INTERFACE_DESCRIPTOR_LIST(DEF_CASE)
50 #undef DEF_CASE 50 #undef DEF_CASE
51 case CallDescriptors::NUMBER_OF_DESCRIPTORS: 51 case CallDescriptors::NUMBER_OF_DESCRIPTORS:
52 break; 52 break;
53 } 53 }
54 return ""; 54 return "";
55 } 55 }
56 56
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent( 649 void FrameDropperTrampolineDescriptor::InitializePlatformIndependent(
650 CallInterfaceDescriptorData* data) { 650 CallInterfaceDescriptorData* data) {
651 // New FP value. 651 // New FP value.
652 MachineType machine_types[] = {MachineType::Pointer()}; 652 MachineType machine_types[] = {MachineType::Pointer()};
653 data->InitializePlatformIndependent(arraysize(machine_types), 0, 653 data->InitializePlatformIndependent(arraysize(machine_types), 0,
654 machine_types); 654 machine_types);
655 } 655 }
656 656
657 } // namespace internal 657 } // namespace internal
658 } // namespace v8 658 } // namespace v8
OLDNEW
« no previous file with comments | « src/interface-descriptors.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698