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

Side by Side Diff: src/hydrogen-instructions.h

Issue 82943005: Safe HGraphBuilder::Add<> and New<> (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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
« src/hydrogen.h ('K') | « src/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1427 } 1427 }
1428 1428
1429 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; 1429 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE;
1430 1430
1431 DECLARE_CONCRETE_INSTRUCTION(Goto) 1431 DECLARE_CONCRETE_INSTRUCTION(Goto)
1432 }; 1432 };
1433 1433
1434 1434
1435 class HDeoptimize V8_FINAL : public HTemplateControlInstruction<1, 0> { 1435 class HDeoptimize V8_FINAL : public HTemplateControlInstruction<1, 0> {
1436 public: 1436 public:
1437 static HInstruction* New(Zone* zone, 1437 static HDeoptimize* New(Zone* zone,
1438 HValue* context, 1438 HValue* context,
1439 const char* reason, 1439 const char* reason,
1440 Deoptimizer::BailoutType type, 1440 Deoptimizer::BailoutType type,
1441 HBasicBlock* unreachable_continuation) { 1441 HBasicBlock* unreachable_continuation) {
1442 return new(zone) HDeoptimize(reason, type, unreachable_continuation); 1442 return new(zone) HDeoptimize(reason, type, unreachable_continuation);
1443 } 1443 }
1444 1444
1445 virtual bool KnownSuccessorBlock(HBasicBlock** block) V8_OVERRIDE { 1445 virtual bool KnownSuccessorBlock(HBasicBlock** block) V8_OVERRIDE {
1446 *block = NULL; 1446 *block = NULL;
1447 return true; 1447 return true;
1448 } 1448 }
1449 1449
1450 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE { 1450 virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
1451 return Representation::None(); 1451 return Representation::None();
(...skipping 5975 matching lines...) Expand 10 before | Expand all | Expand 10 after
7427 virtual bool IsDeletable() const V8_OVERRIDE { return true; } 7427 virtual bool IsDeletable() const V8_OVERRIDE { return true; }
7428 }; 7428 };
7429 7429
7430 7430
7431 #undef DECLARE_INSTRUCTION 7431 #undef DECLARE_INSTRUCTION
7432 #undef DECLARE_CONCRETE_INSTRUCTION 7432 #undef DECLARE_CONCRETE_INSTRUCTION
7433 7433
7434 } } // namespace v8::internal 7434 } } // namespace v8::internal
7435 7435
7436 #endif // V8_HYDROGEN_INSTRUCTIONS_H_ 7436 #endif // V8_HYDROGEN_INSTRUCTIONS_H_
OLDNEW
« src/hydrogen.h ('K') | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698