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

Side by Side Diff: src/lithium.h

Issue 20680002: Rebase of partial ia32 implementation of optimized try/catch (started by Kevin Millikin, continued … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix detection of CATCH frames (fixes debuger exception reporting anf breaks another assertion...). Created 7 years, 5 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/isolate.cc ('k') | src/objects.h » ('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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 private: 505 private:
506 ZoneList<LOperand*> pointer_operands_; 506 ZoneList<LOperand*> pointer_operands_;
507 ZoneList<LOperand*> untagged_operands_; 507 ZoneList<LOperand*> untagged_operands_;
508 int position_; 508 int position_;
509 int lithium_position_; 509 int lithium_position_;
510 }; 510 };
511 511
512 512
513 class LEnvironment: public ZoneObject { 513 class LEnvironment: public ZoneObject {
514 public: 514 public:
515 LEnvironment(Handle<JSFunction> closure, 515 LEnvironment(HEnvironment* hydrogen, // Mutable! Do not store.
516 FrameType frame_type,
517 BailoutId ast_id,
518 int parameter_count,
519 int argument_count, 516 int argument_count,
520 int value_count, 517 int value_count,
521 LEnvironment* outer, 518 LEnvironment* outer,
522 HEnterInlined* entry, 519 HEnterInlined* entry,
523 Zone* zone) 520 Zone* zone)
524 : closure_(closure), 521 : closure_(hydrogen->closure()),
525 frame_type_(frame_type), 522 frame_type_(hydrogen->frame_type()),
526 arguments_stack_height_(argument_count), 523 arguments_stack_height_(argument_count),
524 handler_count_(hydrogen->handler_count()),
527 deoptimization_index_(Safepoint::kNoDeoptimizationIndex), 525 deoptimization_index_(Safepoint::kNoDeoptimizationIndex),
528 translation_index_(-1), 526 translation_index_(-1),
529 ast_id_(ast_id), 527 ast_id_(hydrogen->ast_id()),
530 translation_size_(value_count), 528 translation_size_(value_count), //FIXME(mmassi) Maybe this was "hydrogen ->parameter_count()"
531 parameter_count_(parameter_count), 529 parameter_count_(hydrogen->parameter_count()),
532 pc_offset_(-1), 530 pc_offset_(-1),
533 values_(value_count, zone), 531 values_(value_count, zone),
534 is_tagged_(value_count, zone), 532 is_tagged_(value_count, zone),
535 is_uint32_(value_count, zone), 533 is_uint32_(hydrogen->length(), zone),
536 spilled_registers_(NULL), 534 spilled_registers_(NULL),
537 spilled_double_registers_(NULL), 535 spilled_double_registers_(NULL),
538 outer_(outer), 536 outer_(outer),
539 entry_(entry), 537 entry_(entry),
540 zone_(zone) { } 538 zone_(zone) { }
541 539
542 Handle<JSFunction> closure() const { return closure_; } 540 Handle<JSFunction> closure() const { return closure_; }
543 FrameType frame_type() const { return frame_type_; } 541 FrameType frame_type() const { return frame_type_; }
544 int arguments_stack_height() const { return arguments_stack_height_; } 542 int arguments_stack_height() const { return arguments_stack_height_; }
543 int handler_count() const { return handler_count_; }
545 int deoptimization_index() const { return deoptimization_index_; } 544 int deoptimization_index() const { return deoptimization_index_; }
546 int translation_index() const { return translation_index_; } 545 int translation_index() const { return translation_index_; }
547 BailoutId ast_id() const { return ast_id_; } 546 BailoutId ast_id() const { return ast_id_; }
548 int translation_size() const { return translation_size_; } 547 int translation_size() const { return translation_size_; }
549 int parameter_count() const { return parameter_count_; } 548 int parameter_count() const { return parameter_count_; }
550 int pc_offset() const { return pc_offset_; } 549 int pc_offset() const { return pc_offset_; }
551 LOperand** spilled_registers() const { return spilled_registers_; } 550 LOperand** spilled_registers() const { return spilled_registers_; }
552 LOperand** spilled_double_registers() const { 551 LOperand** spilled_double_registers() const {
553 return spilled_double_registers_; 552 return spilled_double_registers_;
554 } 553 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 spilled_registers_ = registers; 595 spilled_registers_ = registers;
597 spilled_double_registers_ = double_registers; 596 spilled_double_registers_ = double_registers;
598 } 597 }
599 598
600 void PrintTo(StringStream* stream); 599 void PrintTo(StringStream* stream);
601 600
602 private: 601 private:
603 Handle<JSFunction> closure_; 602 Handle<JSFunction> closure_;
604 FrameType frame_type_; 603 FrameType frame_type_;
605 int arguments_stack_height_; 604 int arguments_stack_height_;
605 int handler_count_;
606 int deoptimization_index_; 606 int deoptimization_index_;
607 int translation_index_; 607 int translation_index_;
608 BailoutId ast_id_; 608 BailoutId ast_id_;
609 int translation_size_; 609 int translation_size_;
610 int parameter_count_; 610 int parameter_count_;
611 int pc_offset_; 611 int pc_offset_;
612 612
613 // Value array: [parameters] [locals] [expression stack] [de-materialized]. 613 // Value array: [parameters] [locals] [expression stack] [de-materialized].
614 // |>--------- translation_size ---------<| 614 // |>--------- translation_size ---------<|
615 ZoneList<LOperand*> values_; 615 ZoneList<LOperand*> values_;
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 enum NumberUntagDMode { 774 enum NumberUntagDMode {
775 NUMBER_CANDIDATE_IS_SMI, 775 NUMBER_CANDIDATE_IS_SMI,
776 NUMBER_CANDIDATE_IS_ANY_TAGGED, 776 NUMBER_CANDIDATE_IS_ANY_TAGGED,
777 NUMBER_CANDIDATE_IS_ANY_TAGGED_CONVERT_HOLE 777 NUMBER_CANDIDATE_IS_ANY_TAGGED_CONVERT_HOLE
778 }; 778 };
779 779
780 780
781 } } // namespace v8::internal 781 } } // namespace v8::internal
782 782
783 #endif // V8_LITHIUM_H_ 783 #endif // V8_LITHIUM_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698