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

Side by Side Diff: src/compiler/pipeline.cc

Issue 1307223007: Version 4.6.85.9 (cherry-pick) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@4.6
Patch Set: Created 5 years, 3 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 | « include/v8-version.h ('k') | src/frames.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/pipeline.h" 5 #include "src/compiler/pipeline.h"
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/base/adapters.h" 10 #include "src/base/adapters.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 } 259 }
260 260
261 void InitializeRegisterAllocationData(const RegisterConfiguration* config, 261 void InitializeRegisterAllocationData(const RegisterConfiguration* config,
262 CallDescriptor* descriptor, 262 CallDescriptor* descriptor,
263 const char* debug_name) { 263 const char* debug_name) {
264 DCHECK(frame_ == nullptr); 264 DCHECK(frame_ == nullptr);
265 DCHECK(register_allocation_data_ == nullptr); 265 DCHECK(register_allocation_data_ == nullptr);
266 int fixed_frame_size = 0; 266 int fixed_frame_size = 0;
267 if (descriptor != nullptr) { 267 if (descriptor != nullptr) {
268 fixed_frame_size = (descriptor->kind() == CallDescriptor::kCallAddress) 268 fixed_frame_size = (descriptor->kind() == CallDescriptor::kCallAddress)
269 ? StandardFrameConstants::kFixedSlotCountAboveFp 269 ? StandardFrameConstants::kFixedSlotCountAboveFp +
270 StandardFrameConstants::kCPSlotCount
270 : StandardFrameConstants::kFixedSlotCount; 271 : StandardFrameConstants::kFixedSlotCount;
271 } 272 }
272 frame_ = new (instruction_zone()) Frame(fixed_frame_size); 273 frame_ = new (instruction_zone()) Frame(fixed_frame_size);
273 register_allocation_data_ = new (register_allocation_zone()) 274 register_allocation_data_ = new (register_allocation_zone())
274 RegisterAllocationData(config, register_allocation_zone(), frame(), 275 RegisterAllocationData(config, register_allocation_zone(), frame(),
275 sequence(), debug_name); 276 sequence(), debug_name);
276 } 277 }
277 278
278 private: 279 private:
279 Isolate* isolate_; 280 Isolate* isolate_;
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 tcf << AsC1VRegisterAllocationData("CodeGen", 1379 tcf << AsC1VRegisterAllocationData("CodeGen",
1379 data->register_allocation_data()); 1380 data->register_allocation_data());
1380 } 1381 }
1381 1382
1382 data->DeleteRegisterAllocationZone(); 1383 data->DeleteRegisterAllocationZone();
1383 } 1384 }
1384 1385
1385 } // namespace compiler 1386 } // namespace compiler
1386 } // namespace internal 1387 } // namespace internal
1387 } // namespace v8 1388 } // namespace v8
OLDNEW
« no previous file with comments | « include/v8-version.h ('k') | src/frames.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698