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

Side by Side Diff: src/hydrogen.h

Issue 7172030: Revert "Merge arguments branch to bleeding merge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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/heap-profiler.h ('k') | src/hydrogen.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 bool arguments_allowed() { return flag_ == ARGUMENTS_ALLOWED; } 544 bool arguments_allowed() { return flag_ == ARGUMENTS_ALLOWED; }
545 545
546 private: 546 private:
547 ArgumentsAllowedFlag flag_; 547 ArgumentsAllowedFlag flag_;
548 }; 548 };
549 549
550 550
551 class TestContext: public AstContext { 551 class TestContext: public AstContext {
552 public: 552 public:
553 TestContext(HGraphBuilder* owner, 553 TestContext(HGraphBuilder* owner,
554 Expression* condition,
554 HBasicBlock* if_true, 555 HBasicBlock* if_true,
555 HBasicBlock* if_false) 556 HBasicBlock* if_false)
556 : AstContext(owner, Expression::kTest), 557 : AstContext(owner, Expression::kTest),
558 condition_(condition),
557 if_true_(if_true), 559 if_true_(if_true),
558 if_false_(if_false) { 560 if_false_(if_false) {
559 } 561 }
560 562
561 virtual void ReturnValue(HValue* value); 563 virtual void ReturnValue(HValue* value);
562 virtual void ReturnInstruction(HInstruction* instr, int ast_id); 564 virtual void ReturnInstruction(HInstruction* instr, int ast_id);
563 565
564 static TestContext* cast(AstContext* context) { 566 static TestContext* cast(AstContext* context) {
565 ASSERT(context->IsTest()); 567 ASSERT(context->IsTest());
566 return reinterpret_cast<TestContext*>(context); 568 return reinterpret_cast<TestContext*>(context);
567 } 569 }
568 570
571 Expression* condition() const { return condition_; }
569 HBasicBlock* if_true() const { return if_true_; } 572 HBasicBlock* if_true() const { return if_true_; }
570 HBasicBlock* if_false() const { return if_false_; } 573 HBasicBlock* if_false() const { return if_false_; }
571 574
572 private: 575 private:
573 // Build the shared core part of the translation unpacking a value into 576 // Build the shared core part of the translation unpacking a value into
574 // control flow. 577 // control flow.
575 void BuildBranch(HValue* value); 578 void BuildBranch(HValue* value);
576 579
580 Expression* condition_;
577 HBasicBlock* if_true_; 581 HBasicBlock* if_true_;
578 HBasicBlock* if_false_; 582 HBasicBlock* if_false_;
579 }; 583 };
580 584
581 585
582 class FunctionState BASE_EMBEDDED { 586 class FunctionState BASE_EMBEDDED {
583 public: 587 public:
584 FunctionState(HGraphBuilder* owner, 588 FunctionState(HGraphBuilder* owner,
585 CompilationInfo* info, 589 CompilationInfo* info,
586 TypeFeedbackOracle* oracle); 590 TypeFeedbackOracle* oracle);
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1193 const char* filename_; 1197 const char* filename_;
1194 HeapStringAllocator string_allocator_; 1198 HeapStringAllocator string_allocator_;
1195 StringStream trace_; 1199 StringStream trace_;
1196 int indent_; 1200 int indent_;
1197 }; 1201 };
1198 1202
1199 1203
1200 } } // namespace v8::internal 1204 } } // namespace v8::internal
1201 1205
1202 #endif // V8_HYDROGEN_H_ 1206 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/heap-profiler.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698