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

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

Issue 442253002: Add deoptimization translations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressing review comments. Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector.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/instruction.h" 5 #include "src/compiler/instruction.h"
6 6
7 #include "src/compiler/common-operator.h" 7 #include "src/compiler/common-operator.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 387
388 388
389 void InstructionSequence::AddGapMove(int index, InstructionOperand* from, 389 void InstructionSequence::AddGapMove(int index, InstructionOperand* from,
390 InstructionOperand* to) { 390 InstructionOperand* to) {
391 GapAt(index)->GetOrCreateParallelMove(GapInstruction::START, zone())->AddMove( 391 GapAt(index)->GetOrCreateParallelMove(GapInstruction::START, zone())->AddMove(
392 from, to, zone()); 392 from, to, zone());
393 } 393 }
394 394
395 395
396 int InstructionSequence::AddDeoptimizationEntry( 396 int InstructionSequence::AddDeoptimizationEntry(
397 const FrameStateDescriptor& descriptor) { 397 FrameStateDescriptor* descriptor) {
398 int deoptimization_id = static_cast<int>(deoptimization_entries_.size()); 398 int deoptimization_id = static_cast<int>(deoptimization_entries_.size());
399 deoptimization_entries_.push_back(descriptor); 399 deoptimization_entries_.push_back(descriptor);
400 return deoptimization_id; 400 return deoptimization_id;
401 } 401 }
402 402
403 FrameStateDescriptor InstructionSequence::GetDeoptimizationEntry( 403 FrameStateDescriptor* InstructionSequence::GetDeoptimizationEntry(
404 int deoptimization_id) { 404 int deoptimization_id) {
405 return deoptimization_entries_[deoptimization_id]; 405 return deoptimization_entries_[deoptimization_id];
406 } 406 }
407 407
408 408
409 int InstructionSequence::GetDeoptimizationEntryCount() { 409 int InstructionSequence::GetDeoptimizationEntryCount() {
410 return static_cast<int>(deoptimization_entries_.size()); 410 return static_cast<int>(deoptimization_entries_.size());
411 } 411 }
412 412
413 413
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 os << " B" << (*iter)->id(); 474 os << " B" << (*iter)->id();
475 } 475 }
476 os << "\n"; 476 os << "\n";
477 } 477 }
478 return os; 478 return os;
479 } 479 }
480 480
481 } // namespace compiler 481 } // namespace compiler
482 } // namespace internal 482 } // namespace internal
483 } // namespace v8 483 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698