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

Side by Side Diff: src/hydrogen.h

Issue 7167006: Merge arguments branch to bleeding merge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix test arguments.js." 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,
555 HBasicBlock* if_true, 554 HBasicBlock* if_true,
556 HBasicBlock* if_false) 555 HBasicBlock* if_false)
557 : AstContext(owner, Expression::kTest), 556 : AstContext(owner, Expression::kTest),
558 condition_(condition),
559 if_true_(if_true), 557 if_true_(if_true),
560 if_false_(if_false) { 558 if_false_(if_false) {
561 } 559 }
562 560
563 virtual void ReturnValue(HValue* value); 561 virtual void ReturnValue(HValue* value);
564 virtual void ReturnInstruction(HInstruction* instr, int ast_id); 562 virtual void ReturnInstruction(HInstruction* instr, int ast_id);
565 563
566 static TestContext* cast(AstContext* context) { 564 static TestContext* cast(AstContext* context) {
567 ASSERT(context->IsTest()); 565 ASSERT(context->IsTest());
568 return reinterpret_cast<TestContext*>(context); 566 return reinterpret_cast<TestContext*>(context);
569 } 567 }
570 568
571 Expression* condition() const { return condition_; }
572 HBasicBlock* if_true() const { return if_true_; } 569 HBasicBlock* if_true() const { return if_true_; }
573 HBasicBlock* if_false() const { return if_false_; } 570 HBasicBlock* if_false() const { return if_false_; }
574 571
575 private: 572 private:
576 // Build the shared core part of the translation unpacking a value into 573 // Build the shared core part of the translation unpacking a value into
577 // control flow. 574 // control flow.
578 void BuildBranch(HValue* value); 575 void BuildBranch(HValue* value);
579 576
580 Expression* condition_;
581 HBasicBlock* if_true_; 577 HBasicBlock* if_true_;
582 HBasicBlock* if_false_; 578 HBasicBlock* if_false_;
583 }; 579 };
584 580
585 581
586 class FunctionState BASE_EMBEDDED { 582 class FunctionState BASE_EMBEDDED {
587 public: 583 public:
588 FunctionState(HGraphBuilder* owner, 584 FunctionState(HGraphBuilder* owner,
589 CompilationInfo* info, 585 CompilationInfo* info,
590 TypeFeedbackOracle* oracle); 586 TypeFeedbackOracle* oracle);
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1197 const char* filename_; 1193 const char* filename_;
1198 HeapStringAllocator string_allocator_; 1194 HeapStringAllocator string_allocator_;
1199 StringStream trace_; 1195 StringStream trace_;
1200 int indent_; 1196 int indent_;
1201 }; 1197 };
1202 1198
1203 1199
1204 } } // namespace v8::internal 1200 } } // namespace v8::internal
1205 1201
1206 #endif // V8_HYDROGEN_H_ 1202 #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