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

Side by Side Diff: src/lithium.cc

Issue 1145893003: [crankshaft] Record inlined shared function infos instead of closures. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix test failures. Created 5 years, 7 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/lithium.h ('k') | src/liveedit.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/lithium.h" 5 #include "src/lithium.h"
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/scopes.h" 9 #include "src/scopes.h"
10 10
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 } 265 }
266 } 266 }
267 267
268 268
269 LChunk::LChunk(CompilationInfo* info, HGraph* graph) 269 LChunk::LChunk(CompilationInfo* info, HGraph* graph)
270 : spill_slot_count_(0), 270 : spill_slot_count_(0),
271 info_(info), 271 info_(info),
272 graph_(graph), 272 graph_(graph),
273 instructions_(32, info->zone()), 273 instructions_(32, info->zone()),
274 pointer_maps_(8, info->zone()), 274 pointer_maps_(8, info->zone()),
275 inlined_closures_(1, info->zone()), 275 inlined_functions_(1, info->zone()),
276 deprecation_dependencies_(MapLess(), MapAllocator(info->zone())), 276 deprecation_dependencies_(MapLess(), MapAllocator(info->zone())),
277 stability_dependencies_(MapLess(), MapAllocator(info->zone())) {} 277 stability_dependencies_(MapLess(), MapAllocator(info->zone())) {}
278 278
279 279
280 LLabel* LChunk::GetLabel(int block_id) const { 280 LLabel* LChunk::GetLabel(int block_id) const {
281 HBasicBlock* block = graph_->blocks()->at(block_id); 281 HBasicBlock* block = graph_->blocks()->at(block_id);
282 int first_instruction = block->first_instruction_index(); 282 int first_instruction = block->first_instruction_index();
283 return LLabel::cast(instructions_[first_instruction]); 283 return LLabel::cast(instructions_[first_instruction]);
284 } 284 }
285 285
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 720
721 721
722 LPhase::~LPhase() { 722 LPhase::~LPhase() {
723 if (ShouldProduceTraceOutput()) { 723 if (ShouldProduceTraceOutput()) {
724 isolate()->GetHTracer()->TraceLithium(name(), chunk_); 724 isolate()->GetHTracer()->TraceLithium(name(), chunk_);
725 } 725 }
726 } 726 }
727 727
728 728
729 } } // namespace v8::internal 729 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/lithium.h ('k') | src/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698