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