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

Side by Side Diff: src/lithium.h

Issue 10831172: Introduced TypeFeedbackId and BailoutId types. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Incorporated review feedback. Created 8 years, 4 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/ia32/macro-assembler-ia32.cc ('k') | src/lithium.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 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 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 ZoneList<LOperand*> untagged_operands_; 448 ZoneList<LOperand*> untagged_operands_;
449 int position_; 449 int position_;
450 int lithium_position_; 450 int lithium_position_;
451 }; 451 };
452 452
453 453
454 class LEnvironment: public ZoneObject { 454 class LEnvironment: public ZoneObject {
455 public: 455 public:
456 LEnvironment(Handle<JSFunction> closure, 456 LEnvironment(Handle<JSFunction> closure,
457 FrameType frame_type, 457 FrameType frame_type,
458 int ast_id, 458 BailoutId ast_id,
459 int parameter_count, 459 int parameter_count,
460 int argument_count, 460 int argument_count,
461 int value_count, 461 int value_count,
462 LEnvironment* outer, 462 LEnvironment* outer,
463 Zone* zone) 463 Zone* zone)
464 : closure_(closure), 464 : closure_(closure),
465 frame_type_(frame_type), 465 frame_type_(frame_type),
466 arguments_stack_height_(argument_count), 466 arguments_stack_height_(argument_count),
467 deoptimization_index_(Safepoint::kNoDeoptimizationIndex), 467 deoptimization_index_(Safepoint::kNoDeoptimizationIndex),
468 translation_index_(-1), 468 translation_index_(-1),
469 ast_id_(ast_id), 469 ast_id_(ast_id),
470 parameter_count_(parameter_count), 470 parameter_count_(parameter_count),
471 pc_offset_(-1), 471 pc_offset_(-1),
472 values_(value_count, zone), 472 values_(value_count, zone),
473 is_tagged_(value_count, zone), 473 is_tagged_(value_count, zone),
474 spilled_registers_(NULL), 474 spilled_registers_(NULL),
475 spilled_double_registers_(NULL), 475 spilled_double_registers_(NULL),
476 outer_(outer), 476 outer_(outer),
477 zone_(zone) { } 477 zone_(zone) { }
478 478
479 Handle<JSFunction> closure() const { return closure_; } 479 Handle<JSFunction> closure() const { return closure_; }
480 FrameType frame_type() const { return frame_type_; } 480 FrameType frame_type() const { return frame_type_; }
481 int arguments_stack_height() const { return arguments_stack_height_; } 481 int arguments_stack_height() const { return arguments_stack_height_; }
482 int deoptimization_index() const { return deoptimization_index_; } 482 int deoptimization_index() const { return deoptimization_index_; }
483 int translation_index() const { return translation_index_; } 483 int translation_index() const { return translation_index_; }
484 int ast_id() const { return ast_id_; } 484 BailoutId ast_id() const { return ast_id_; }
485 int parameter_count() const { return parameter_count_; } 485 int parameter_count() const { return parameter_count_; }
486 int pc_offset() const { return pc_offset_; } 486 int pc_offset() const { return pc_offset_; }
487 LOperand** spilled_registers() const { return spilled_registers_; } 487 LOperand** spilled_registers() const { return spilled_registers_; }
488 LOperand** spilled_double_registers() const { 488 LOperand** spilled_double_registers() const {
489 return spilled_double_registers_; 489 return spilled_double_registers_;
490 } 490 }
491 const ZoneList<LOperand*>* values() const { return &values_; } 491 const ZoneList<LOperand*>* values() const { return &values_; }
492 LEnvironment* outer() const { return outer_; } 492 LEnvironment* outer() const { return outer_; }
493 493
494 void AddValue(LOperand* operand, Representation representation) { 494 void AddValue(LOperand* operand, Representation representation) {
(...skipping 28 matching lines...) Expand all
523 void PrintTo(StringStream* stream); 523 void PrintTo(StringStream* stream);
524 524
525 Zone* zone() const { return zone_; } 525 Zone* zone() const { return zone_; }
526 526
527 private: 527 private:
528 Handle<JSFunction> closure_; 528 Handle<JSFunction> closure_;
529 FrameType frame_type_; 529 FrameType frame_type_;
530 int arguments_stack_height_; 530 int arguments_stack_height_;
531 int deoptimization_index_; 531 int deoptimization_index_;
532 int translation_index_; 532 int translation_index_;
533 int ast_id_; 533 BailoutId ast_id_;
534 int parameter_count_; 534 int parameter_count_;
535 int pc_offset_; 535 int pc_offset_;
536 ZoneList<LOperand*> values_; 536 ZoneList<LOperand*> values_;
537 BitVector is_tagged_; 537 BitVector is_tagged_;
538 538
539 // Allocation index indexed arrays of spill slot operands for registers 539 // Allocation index indexed arrays of spill slot operands for registers
540 // that are also in spill slots at an OSR entry. NULL for environments 540 // that are also in spill slots at an OSR entry. NULL for environments
541 // that do not correspond to an OSR entry. 541 // that do not correspond to an OSR entry.
542 LOperand** spilled_registers_; 542 LOperand** spilled_registers_;
543 LOperand** spilled_double_registers_; 543 LOperand** spilled_double_registers_;
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 ZoneList<Handle<JSFunction> > inlined_closures_; 684 ZoneList<Handle<JSFunction> > inlined_closures_;
685 }; 685 };
686 686
687 687
688 int ElementsKindToShiftSize(ElementsKind elements_kind); 688 int ElementsKindToShiftSize(ElementsKind elements_kind);
689 689
690 690
691 } } // namespace v8::internal 691 } } // namespace v8::internal
692 692
693 #endif // V8_LITHIUM_H_ 693 #endif // V8_LITHIUM_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698