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

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

Issue 616853002: More follow-up fixes to r24322. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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/common-operator.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 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 #include "src/compiler/generic-node-inl.h" 8 #include "src/compiler/generic-node-inl.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 switch (constant.type()) { 299 switch (constant.type()) {
300 case Constant::kInt32: 300 case Constant::kInt32:
301 return os << constant.ToInt32(); 301 return os << constant.ToInt32();
302 case Constant::kInt64: 302 case Constant::kInt64:
303 return os << constant.ToInt64() << "l"; 303 return os << constant.ToInt64() << "l";
304 case Constant::kFloat32: 304 case Constant::kFloat32:
305 return os << constant.ToFloat32() << "f"; 305 return os << constant.ToFloat32() << "f";
306 case Constant::kFloat64: 306 case Constant::kFloat64:
307 return os << constant.ToFloat64(); 307 return os << constant.ToFloat64();
308 case Constant::kExternalReference: 308 case Constant::kExternalReference:
309 return os << constant.ToExternalReference().address(); 309 return os << static_cast<const void*>(
310 constant.ToExternalReference().address());
310 case Constant::kHeapObject: 311 case Constant::kHeapObject:
311 return os << Brief(*constant.ToHeapObject()); 312 return os << Brief(*constant.ToHeapObject());
312 } 313 }
313 UNREACHABLE(); 314 UNREACHABLE();
314 return os; 315 return os;
315 } 316 }
316 317
317 318
318 Label* InstructionSequence::GetLabel(BasicBlock* block) { 319 Label* InstructionSequence::GetLabel(BasicBlock* block) {
319 return GetBlockStart(block)->label(); 320 return GetBlockStart(block)->label();
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 os << " B" << (*iter)->id(); 476 os << " B" << (*iter)->id();
476 } 477 }
477 os << "\n"; 478 os << "\n";
478 } 479 }
479 return os; 480 return os;
480 } 481 }
481 482
482 } // namespace compiler 483 } // namespace compiler
483 } // namespace internal 484 } // namespace internal
484 } // namespace v8 485 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698