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

Side by Side Diff: runtime/vm/intermediate_language.h

Issue 9523001: Teach the flow graph compiler to play nice with the debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_
6 #define VM_INTERMEDIATE_LANGUAGE_H_ 6 #define VM_INTERMEDIATE_LANGUAGE_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/handles_impl.h" 10 #include "vm/handles_impl.h"
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 const intptr_t temp_index_; 422 const intptr_t temp_index_;
423 Computation* computation_; 423 Computation* computation_;
424 Instruction* successor_; 424 Instruction* successor_;
425 425
426 DISALLOW_COPY_AND_ASSIGN(BindInstr); 426 DISALLOW_COPY_AND_ASSIGN(BindInstr);
427 }; 427 };
428 428
429 429
430 class ReturnInstr : public Instruction { 430 class ReturnInstr : public Instruction {
431 public: 431 public:
432 explicit ReturnInstr(Value* value) : Instruction(), value_(value) { } 432 explicit ReturnInstr(Value* value, intptr_t token_index)
srdjan 2012/02/28 21:37:40 Remove explicit
hausner 2012/02/28 21:42:34 Done.
433 : Instruction(), value_(value), token_index_(token_index) { }
433 434
434 DECLARE_INSTRUCTION(Return) 435 DECLARE_INSTRUCTION(Return)
435 436
436 Value* value() const { return value_; } 437 Value* value() const { return value_; }
438 intptr_t token_index() const { return token_index_; }
437 439
438 virtual void SetSuccessor(Instruction* instr) { UNREACHABLE(); } 440 virtual void SetSuccessor(Instruction* instr) { UNREACHABLE(); }
439 441
440 virtual void Postorder(GrowableArray<BlockEntryInstr*>* block_entries); 442 virtual void Postorder(GrowableArray<BlockEntryInstr*>* block_entries);
441 443
442 private: 444 private:
443 Value* value_; 445 Value* value_;
446 intptr_t token_index_;
444 447
445 DISALLOW_COPY_AND_ASSIGN(ReturnInstr); 448 DISALLOW_COPY_AND_ASSIGN(ReturnInstr);
446 }; 449 };
447 450
448 451
449 class BranchInstr : public Instruction { 452 class BranchInstr : public Instruction {
450 public: 453 public:
451 explicit BranchInstr(Value* value) 454 explicit BranchInstr(Value* value)
452 : Instruction(), 455 : Instruction(),
453 value_(value), 456 value_(value),
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 #undef DECLARE_VISIT_INSTRUCTION 507 #undef DECLARE_VISIT_INSTRUCTION
505 508
506 private: 509 private:
507 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); 510 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor);
508 }; 511 };
509 512
510 513
511 } // namespace dart 514 } // namespace dart
512 515
513 #endif // VM_INTERMEDIATE_LANGUAGE_H_ 516 #endif // VM_INTERMEDIATE_LANGUAGE_H_
OLDNEW
« runtime/vm/flow_graph_compiler_x64.cc ('K') | « runtime/vm/flow_graph_compiler_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698