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

Side by Side Diff: src/hydrogen.cc

Issue 23781006: Add assertion to UniqueValueId constructor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/hydrogen-instructions.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 HConstant* HGraph::GetConstantMinus1() { 642 HConstant* HGraph::GetConstantMinus1() {
643 return GetConstant(&constant_minus1_, -1); 643 return GetConstant(&constant_minus1_, -1);
644 } 644 }
645 645
646 646
647 #define DEFINE_GET_CONSTANT(Name, name, htype, boolean_value) \ 647 #define DEFINE_GET_CONSTANT(Name, name, htype, boolean_value) \
648 HConstant* HGraph::GetConstant##Name() { \ 648 HConstant* HGraph::GetConstant##Name() { \
649 if (!constant_##name##_.is_set()) { \ 649 if (!constant_##name##_.is_set()) { \
650 HConstant* constant = new(zone()) HConstant( \ 650 HConstant* constant = new(zone()) HConstant( \
651 isolate()->factory()->name##_value(), \ 651 isolate()->factory()->name##_value(), \
652 UniqueValueId(isolate()->heap()->name##_value()), \ 652 UniqueValueId::name##_value(isolate()->heap()), \
653 Representation::Tagged(), \ 653 Representation::Tagged(), \
654 htype, \ 654 htype, \
655 false, \ 655 false, \
656 true, \ 656 true, \
657 false, \ 657 false, \
658 boolean_value); \ 658 boolean_value); \
659 constant->InsertAfter(GetConstantUndefined()); \ 659 constant->InsertAfter(GetConstantUndefined()); \
660 constant_##name##_.set(constant); \ 660 constant_##name##_.set(constant); \
661 } \ 661 } \
662 return constant_##name##_.get(); \ 662 return constant_##name##_.get(); \
(...skipping 9016 matching lines...) Expand 10 before | Expand all | Expand 10 after
9679 if (ShouldProduceTraceOutput()) { 9679 if (ShouldProduceTraceOutput()) {
9680 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 9680 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
9681 } 9681 }
9682 9682
9683 #ifdef DEBUG 9683 #ifdef DEBUG
9684 graph_->Verify(false); // No full verify. 9684 graph_->Verify(false); // No full verify.
9685 #endif 9685 #endif
9686 } 9686 }
9687 9687
9688 } } // namespace v8::internal 9688 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698