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

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

Issue 688633002: [turbofan] add configuration parameters for register allocator (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 6 years, 1 month 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
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/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/interface-descriptors.h" 7 #include "src/interface-descriptors.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 24 matching lines...) Expand all
35 // If there is a context register, the representation must be tagged. 35 // If there is a context register, the representation must be tagged.
36 DCHECK( 36 DCHECK(
37 i != 0 || 37 i != 0 ||
38 register_param_representations[i].Equals(Representation::Tagged())); 38 register_param_representations[i].Equals(Representation::Tagged()));
39 register_param_representations_[i] = register_param_representations[i]; 39 register_param_representations_[i] = register_param_representations[i];
40 } 40 }
41 } 41 }
42 } 42 }
43 43
44 44
45 const char* CallInterfaceDescriptor::DebugName(Isolate* isolate) { 45 const char* CallInterfaceDescriptor::DebugName(Isolate* isolate) const {
46 CallInterfaceDescriptorData* start = isolate->call_descriptor_data(0); 46 CallInterfaceDescriptorData* start = isolate->call_descriptor_data(0);
47 size_t index = data_ - start; 47 size_t index = data_ - start;
48 DCHECK(index < CallDescriptors::NUMBER_OF_DESCRIPTORS); 48 DCHECK(index < CallDescriptors::NUMBER_OF_DESCRIPTORS);
49 CallDescriptors::Key key = static_cast<CallDescriptors::Key>(index); 49 CallDescriptors::Key key = static_cast<CallDescriptors::Key>(index);
50 switch (key) { 50 switch (key) {
51 #define DEF_CASE(NAME) \ 51 #define DEF_CASE(NAME) \
52 case CallDescriptors::NAME: \ 52 case CallDescriptors::NAME: \
53 return #NAME " Descriptor"; 53 return #NAME " Descriptor";
54 INTERFACE_DESCRIPTOR_LIST(DEF_CASE) 54 INTERFACE_DESCRIPTOR_LIST(DEF_CASE)
55 #undef DEF_CASE 55 #undef DEF_CASE
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 142
143 143
144 void ContextOnlyDescriptor::Initialize(CallInterfaceDescriptorData* data) { 144 void ContextOnlyDescriptor::Initialize(CallInterfaceDescriptorData* data) {
145 Register registers[] = {ContextRegister()}; 145 Register registers[] = {ContextRegister()};
146 data->Initialize(arraysize(registers), registers, NULL); 146 data->Initialize(arraysize(registers), registers, NULL);
147 } 147 }
148 148
149 } 149 }
150 } // namespace v8::internal 150 } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698