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

Side by Side Diff: runtime/vm/intermediate_language.h

Issue 19779011: Minor cleanup: use deopt-id instead od static call instruction as argument for MathSqrtInstr. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/ast.h" 9 #include "vm/ast.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 4575 matching lines...) Expand 10 before | Expand all | Expand 10 after
4586 4586
4587 virtual bool MayThrow() const { return false; } 4587 virtual bool MayThrow() const { return false; }
4588 4588
4589 private: 4589 private:
4590 DISALLOW_COPY_AND_ASSIGN(UnboxIntegerInstr); 4590 DISALLOW_COPY_AND_ASSIGN(UnboxIntegerInstr);
4591 }; 4591 };
4592 4592
4593 4593
4594 class MathSqrtInstr : public TemplateDefinition<1> { 4594 class MathSqrtInstr : public TemplateDefinition<1> {
4595 public: 4595 public:
4596 MathSqrtInstr(Value* value, StaticCallInstr* instance_call) { 4596 MathSqrtInstr(Value* value, intptr_t deopt_id) {
4597 SetInputAt(0, value); 4597 SetInputAt(0, value);
4598 deopt_id_ = instance_call->deopt_id(); 4598 deopt_id_ = deopt_id;
4599 } 4599 }
4600 4600
4601 Value* value() const { return inputs_[0]; } 4601 Value* value() const { return inputs_[0]; }
4602 4602
4603 virtual bool CanDeoptimize() const { return false; } 4603 virtual bool CanDeoptimize() const { return false; }
4604 4604
4605 virtual Representation representation() const { 4605 virtual Representation representation() const {
4606 return kUnboxedDouble; 4606 return kUnboxedDouble;
4607 } 4607 }
4608 4608
(...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after
6496 ForwardInstructionIterator* current_iterator_; 6496 ForwardInstructionIterator* current_iterator_;
6497 6497
6498 private: 6498 private:
6499 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 6499 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
6500 }; 6500 };
6501 6501
6502 6502
6503 } // namespace dart 6503 } // namespace dart
6504 6504
6505 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 6505 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698